Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is this running any java program?

 
Gemini Moses
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is FILE1 defined to be?
 
Gemini Moses
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
FILE1=$HOME5/conf/rateConf.xml
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
$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
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Barry!! Your response will help me go ahead with understanding the flow further.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic