wood burning stoves 2.0*
The moose likes Linux / UNIX and the fly likes shell script niggle 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 » Engineering » Linux / UNIX
Bookmark "shell script niggle" Watch "shell script niggle" New topic
Author

shell script niggle

Abhinav Srivastava
Ranch Hand

Joined: Nov 19, 2002
Posts: 349

Trying to execute Java from a shell script, any clues?


Anayonkar Shivalkar
Bartender

Joined: Dec 08, 2010
Posts: 1505
    
    5

I don't know whether
JAVA_HOME=/app/java_1.6.0_10

will set JAVA_HOME env variable.

Perhaps you'll need to use 'export' syntax.


Regards,
Anayonkar Shivalkar (SCJP, SCWCD, OCMJD, OCEEJBD)
Abhinav Srivastava
Ranch Hand

Joined: Nov 19, 2002
Posts: 349

Worked with explicitly set PATH


 
 
subject: shell script niggle