help in java options

help in java options

Page 1 of 1

2 Replies - 3199 Views - Last Post: 17 January 2006 - 08:19 AM Rate Topic: -----

#1 Adamking  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 7
  • Joined: 26-December 05

help in java options

Posted 16 January 2006 - 08:52 AM

Can anyone explain the java command line with options:

exec $JAVA_JRE_HOME/bin/java -Xmx128M -classpath $application_CLASSPATH $Application_JVM_OPT $serverClass
-hostName $hostNSDef -nsport $nsPortDef --config $logFileName.xml "$Application_PROPS"

Thanks
Is This A Good Question/Topic? 0
  • +

Replies To: help in java options

#2 1lacca  Icon User is offline

  • code.rascal
  • member icon

Reputation: 44
  • View blog
  • Posts: 3,822
  • Joined: 11-August 05

Re: help in java options

Posted 17 January 2006 - 07:55 AM

exec $JAVA_JRE_HOME/bin/java -starts the java interpreter that runs your program, where $JAVA_JRE_HOME is a variable containing the root folder where java is installed on your system (determined by a script?).
-Xmx128M -sets the maximum heap size to use to 128Megs
-classpath $application_CLASSPATH ( directory(ies) to look for additional Java classes used by your application. (again, $application_CLASSPATH is a variable determined by the script that generates you this commandline, and it should be a ; separated list of diretories)
From now on these are guesses based on the assumption that the variables are named correctly:
$Application_JVM_OPT - I think this contains additional options (like the 2 above) required by your application passed to the JVM
$serverClass - variable containing the main class of the program that is executed
The following options are needed by the application the script starts, and these are the parameters it receives at startup. If you let us know, what this scripts tries to start, we might help more precisely, but I think the names (hostName, s(erver)port, config ) speak for themselves. However note that these are all set before this line is executed, probably by your script.

This post has been edited by 1lacca: 17 January 2006 - 07:58 AM

Was This Post Helpful? 0
  • +
  • -

#3 1lacca  Icon User is offline

  • code.rascal
  • member icon

Reputation: 44
  • View blog
  • Posts: 3,822
  • Joined: 11-August 05

Re: help in java options

Posted 17 January 2006 - 08:19 AM

Taking another look, I guess its PHP. So If oyu want to know, what this line mans, first jsut befure the line make an
echo "$JAVA_JRE_HOME/bin/java -Xmx128M -classpath $application_CLASSPATH $Application_JVM_OPT $serverClass
-hostName $hostNSDef -nsport $nsPortDef --config $logFileName.xml \"$Application_PROPS\""

And see what you get. You can find out more about the JVM parameters by typing
java
or
java -X
at a command line.
Regarding the other parameters (those are after the class file of the program this script tries to run) check the program's documentation, or try running it with the command line that the output of the following line (put right in front of the line in question) produces
echo("$JAVA_JRE_HOME/bin/java -Xmx128M -classpath $application_CLASSPATH")
and hope that the guy who wrote it was kind enough to provide usage data if his program is run without parameters.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1