Article View: borland.public.jbuilder.java.language
Article #16645Re: are java system calls possible?
From: Steve Schafer (TeamB)
Date: Mon, 08 Feb 1999 00:00
Date: Mon, 08 Feb 1999 00:00
20 lines
1499 bytes
1499 bytes
On Mon, 08 Feb 1999 08:53:20 -0500, Rody Cunningham <rodycunningham@lucent.com> wrote: >Is there any way to make a system call from a Java application? I would >like to execute an external program, much the same way you can with the >"system" command in C. Yes; you need to use native methods. How you go about doing it depends on which version of the JDK you're using (the techniques are quite different with JDK 1.1 vs. JDK 1.02) and whose VM (the Microsoft VM and Sun VM support different native method interfaces). If you want to learn how to do it with JDK 1.1 and the Sun VM, visit the Sun web site and get a copy of the Java Native Interface specification. If you want to learn how to do it with the Microsoft VM, visit the Microsoft web site and look for a document whose name I don't recall right now (the information is in MSDN, too, I believe). If you want to do it with JDK 1.02, I suggest you rethink it. :) -Steve
Technical Details
Message-ID:
<36e50370.45076382@90.0.0.40>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<36BEEC4F.2775AE4E@lucent.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,6e112df30c27e569 X-Google-Attributes: gidf74b3,public From: pandeng@telepath.com (Steve Schafer (TeamB)) Subject: Re: are java system calls possible? Date: 1999/02/08 Message-ID: <36e50370.45076382@90.0.0.40> X-Deja-AN: 441867511 Content-Transfer-Encoding: 7bit References: <36BEEC4F.2775AE4E@lucent.com> Content-Type: text/plain; charset=us-ascii Organization: TeamB Mime-Version: 1.0 Reply-To: pandeng@telepath.com Newsgroups: borland.public.jbuilder.java.language