launching jvm in solaris from java...

I have a problem launching jvm from java in solaris...

java.io.IOException: "/opt/XX/YY/jre/bin/java": not found

at java.lang.UNIXProcess.forkAndExec(Native Method)

at java.lang.UNIXProcess.<init>(UNIXProcess.java:53)

at java.lang.ProcessImpl.start(ProcessImpl.java:65)

at java.lang.ProcessBuilder.start(ProcessBuilder.java:451)

But when I give /opt/XX/YY/jre/bin/java from my console it's working fine...

what could be the problem ? (I mean the path is correct..)

Message was edited by:

chaos_begins_here

[574 byte] By [chaos_begins_herea] at [2007-11-26 19:19:29]
# 1

When I try to System.exec() a program that doesn't exist, I get the following:

java.io.IOException: foo: not found

...

Note that foo (the program I tried to exec) is not in quotes. Check the strings you are passing to exec() to make sure there are no extra quotes. It's possible the difference in format is due to different java versions, but the point is to sanity check the strings you're passing.

jxca at 2007-7-9 21:35:58 > top of Java-index,Desktop,Runtime Environment...
# 2
Thanks for pointing it out... Yes the problem is with the double quotes...when I removed the double quotes around the application it's working fine...Thanks a lot...
chaos_begins_herea at 2007-7-9 21:35:58 > top of Java-index,Desktop,Runtime Environment...