illegal argument error, HELP

Having trouble installing Oxygen? Got a bug to report? Post it all here.
pbrady
Posts: 1
Joined: Fri May 07, 2004 8:04 pm

illegal argument error, HELP

Post 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.
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post 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
Post Reply