Page 1 of 1

illegal argument error, HELP

Posted: Fri May 07, 2004 8:09 pm
by pbrady
HI,

I'm trying to evaluate oxygen for use on Solaris and am getting an error:

bash$ ./oxygen.sh
-Xmx256m: illegal argument
Usage: java [-options] class

2 questions, do I need to set a JAVA_HOME and CLASSPATH environment variable and if so, how do I do that?

Also, why am I getting an illegal argument running oxygen.sh from the command line???

Any help is appreciated. Note that I am not a java expert by any means so any help is appreciated.

Posted: Sun May 09, 2004 9:13 pm
by george
Hi,

Please make sure you have java 1.4.2 as the -Xmx option should be accepted, see:
http://java.sun.com/j2se/1.4.2/docs/too ... /java.html
All that is needed is to have the java executable in yout PATH so that from a terminal the following command should work:
java -version
and should display 1.4.2 as the version number. Otherwise you can edit the oxygen.sh script to contain the full path to the java executable.
To get Java 1.4.2 see:
http://java.sun.com/j2se/1.4.2/download.html

Best Regards,
George