🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #17774

Re: Unix platform problem

#17774
From: Brad Pepers
Date: Wed, 30 Sep 1998 00:00
33 lines
1866 bytes
Glad to hear you've got the CLASSPATH problem licked!  Sorry I
didn't think about the setenv vrs set.  I use bash on Linux
which works differently.

Lui Dussan wrote:
> 
> New problem, that runtime command
> 
>        Runtime r;   //set up the Runtime class parameters to output finalout
>        Process p;
>        r = Runtime.getRuntime();
>        try {
>        p = r.exec(finalout);
>        }
>        catch (Exception ex){
>        }
> 
> doesn't invoke my finishB c program.  The finalout buffer just has "/home/dussan/beacon/Gui/finishB"
> However it does work on my PC.  You have any ideas?
> lui

Is an exception getting thrown?  Add a line in the catch clause to
print out a stack trace if an error occurs.  Something like:

System.out.println("exec failed: " + ex.printStackTrace());

Can you run the finishB program manually at the shell prompt?

-- 
Brad Pepers
Linux Canada Inc.            Home of Linux products in Canada!
http://www.linuxcanada.com   Proud supporter of Cyclades, Red
brad@linuxcanada.com         Hat, and Caldera.
Technical Details
Message-ID: <36127B6C.8FB9F9DC@linuxcanada.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <360C2276.2DB69A32@zorba.jpl.nasa.gov> <360F14F2.B0A6DF4C@linuxcanada.com> <360FEA84.A45903F@zorba.jpl.nasa.gov> <3610174E.35C7F69A@linuxcanada.com> <36115F42.148602@zorba.jpl.nasa.gov> <36118E00.AB3A2CCC@zorba.jpl.nasa.gov> <3611901A.783A232C@zorba.jpl.nasa.gov> <36119FEC.A70C56EC@zorba.jpl.nasa.gov>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,8b812c7a4409a188
X-Google-Attributes: gidf74b3,public
From: Brad Pepers <brad@linuxcanada.com>
Subject: Re: Unix platform problem
Date: 1998/09/30
Message-ID: <36127B6C.8FB9F9DC@linuxcanada.com>
X-Deja-AN: 396424406
Content-Transfer-Encoding: 7bit
References: <360C2276.2DB69A32@zorba.jpl.nasa.gov> <360F14F2.B0A6DF4C@linuxcanada.com> <360FEA84.A45903F@zorba.jpl.nasa.gov> <3610174E.35C7F69A@linuxcanada.com> <36115F42.148602@zorba.jpl.nasa.gov> <36118E00.AB3A2CCC@zorba.jpl.nasa.gov> <3611901A.783A232C@zorba.jpl.nasa.gov> <36119FEC.A70C56EC@zorba.jpl.nasa.gov>
Content-Type: text/plain; charset=us-ascii
Organization: Linux Canada Inc
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language