> Hi
>
> waitFor() method returns value 255 on HP Unix when I try to start
> netscape through Runtime.getRuntime().exec("netscape") method.
Most likely, this is a -1, but you don't say how you stored or printed it.
> I also tried to give the full path but same results.
> I am able to start netscape from C program or from commandline but it
> fails when I try to do same thing from Java application.
Post the code and say where the application is located on your system.
> It works fine on Solaris.
> What is the meaning of value 255. Where I can get the information
> regarding the value returned by the waitFor() method.
Uhh, the documentation?
http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Process.html#waitFor()

Signature
Paul Lutus
http://www.arachnoid.com
Jakir - 26 Aug 2004 17:58 GMT
import java.io.IOException;
class javaHello {
public static void main(String[] args) {
try
{
Process p = Runtime.getRuntime().exec("netscape");
/* Also tried full path */
try
{
int exitCode = p.waitFor();
if(exitCode != 0)
System.out.println(exitCode);
}
catch(InterruptedException x)
{
System.err.println("Caught:" + x);
}
}
catch(IOException e)
{
e.printStackTrace();
System.out.println("Failed to start.\n" + e);
}
}
}
> > Hi
> >
[quoted text clipped - 16 lines]
>
> http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Process.html#waitFor()
hi find some gread deals here.
great deals on games
http://www.find-a-great-deal.blogspot.com
find out how to earn free easy cash here
http://www.find-a-deal.blogspot.com
easy cash will show you the way to make fast easy cash
http://www.niceeasy-cash.blogspot.com