• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Is this running any java program?

 
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What is FILE1 defined to be?
 
Gemini Moses
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
FILE1=$HOME5/conf/rateConf.xml
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Barry!! Your response will help me go ahead with understanding the flow further.
 
I want my playground back. Here, I'll give you this tiny ad for it:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic