More Runtime.exec()

Patrick W. O'Neill oneill at capsl.udel.edu
Mon Sep 7 16:24:02 PDT 1998


Linux, Debian I believe.  I tried the exec you suggested, I recieved the 
same error...I haven't tried Kaffe on Solaris, on those systems the 
Admins have JDK installed.  The same code runs and works there too.

Pat

On Mon, 7 Sep 1998, Mike Boilen wrote:

> That's very interesting.  What system are you on?  I'm on Solaris 2.6
> and I don't have any problem with that code.  It executes gcc correctly
> on my machine (verified because it compiles a test.c I have in that
> directory).  I wonder if it is a platform specific problem.  You might
> want to try one of the other versions of exec (maybe
> exec(String,String[])) and see if one of those works.  If one of the
> other ones works, then we might have a better idea as to what is wrong.  
> Does anyone else have any suggestions?
> 
> Mike
> 
> On Mon, Sep 07, 1998 at 06:38:11PM -0400, Patrick W. O'Neill wrote:
> > 
> > > Do you have any more information?  Does it print a stack trace or
> > > anything that might be useful?  And also which version of exec did you
> > > use? (there are 4 I think)  And what were the arguments that you passed
> > > in?  Thanks
> > > 
> > > Mike
> > -----------------------------
> > 
> > No stack trace or anything useful, just that message.
> > 
> > public class Test {
> >   public static void main(String[] args) {
> >     try {
> >       Process p = Runtime.getRuntime().exec("gcc test.c");
> >     }
> >     catch (Exception e) {
> >         System.err.println(e);
> >     }
> >   }
> > }
> > 
> > Was my test code with various commands...I tried full paths too.  If you 
> > missed my previous email, before the latest snapshot was installed, I got 
> > an IOException: File not found, regardless of the command or paths.
> > 
> > Thanks
> > 
> > Pat
> > -----------------------------------------
> > > On Mon, Sep 07, 1998 at 06:24:34PM -0400, Patrick W. O'Neill wrote:
> > > > Downloaded the latest snapshot, now I get:
> > > > 
> > > > java.lang.NullPointerException: null
> > > > 
> > > > Full paths on the command or not.  Any ideas? 
> > > > 
> > > > Pat
> > > > 
> > > 
> > 
> 


More information about the kaffe mailing list