urgent !!! path issue or Netscape issue?

in my application, I have some buttons to launch browser, under solaris environment, i used the following statement to launch netscape:

Runtime.getRuntime().exec( new String[] {"netscape", "http://www.sun.com"});

it works as in standalone application, but if i integrate it with some other applications( i launch my own application by using registration file in which i have one line : java -jar -Duser.dir=/opt/app myapp.jar)

it can launch my app, but when i click the button, it can't launch browser netscape.

i tried to type the command in terminal window:

netscape http://www.sun.com, it works.

i can make sure in my PATH env, netscape is included.

anybody has any clue about it?

Thanks for replying!!!!

-Frank

[790 byte] By [chunyun] at [2007-9-26 2:11:15]
# 1

You may download (21.3 KB)

http://www.xlreader.com/archive/2browser.zip

It contains Java class and source files for launching a browser from a Java application.

-- Robert Della Malva

=====

robert@xlreader.com

XL-Reader Project

www.xlreader.com

=====

robdella at 2007-6-29 9:03:07 > top of Java-index,Desktop,Runtime Environment...