This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Beginning Java and the fly likes Is this running any java program? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Is this running any java program?" Watch "Is this running any java program?" New topic
Author

Is this running any java program?

Gemini Moses
Ranch Hand

Joined: Jan 04, 2001
Posts: 245
This a statment in one of the shell script in my project.
all the variables JAVA_HOME, HOME_PATH1 -4 and FILE1 are difined in the shell script.
Can someone please tell me how to interprete this statement? Is this running any java program?

$JAVA_HOME/bin/java �classpath $JAVA_HOME/lib:$HOME_PATH1/spin.jar:
$HOME_PATH2/route.jar:
$HOME_PATH3/crack.jar:
$HOME_PATH4/xmlparserv2.jar:
$HOME_PATH4/classes12.jar com/mech/proj/rate $FILE1
Edited by BFG to prevent over-wide line
[ April 05, 2003: Message edited by: Barry Gaunt ]
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
What is FILE1 defined to be?


Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
Gemini Moses
Ranch Hand

Joined: Jan 04, 2001
Posts: 245
FILE1=$HOME5/conf/rateConf.xml
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
$JAVA_HOME/bin/java is running the java interpreter (Java Virtual Machine - JVM)
com/mech/proj/rate is the program (rate.class)
$HOME5/conf/rateConf.xml is input file to the program ( could be some configuration file)
�classpath $JAVA_HOME/lib:
$HOME_PATH1/spin.jar:
$HOME_PATH2/route.jar:
$HOME_PATH3/crack.jar:
$HOME_PATH4/xmlparserv2.jar:
$HOME_PATH4/classes12.jar
-classpath is telling the JVM where to look for the program and/or the imported classes that it requires.
Gemini Moses
Ranch Hand

Joined: Jan 04, 2001
Posts: 245
Thanks Barry!! Your response will help me go ahead with understanding the flow further.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Is this running any java program?