aspose file tools
The moose likes Beginning Java and the fly likes Is this running any java program? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Reply 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: 244
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: 244
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: 244
Thanks Barry!! Your response will help me go ahead with understanding the flow further.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Is this running any java program?
 
Similar Threads
open shell script
running java program from a shell script
how to get result from java when java thread is running in background
Running a Java Class from a Unix Shell Script
What does @ do, as in: c:\java -classpath % c:\blalba\... A.B.C.Class %@