File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Spring in Action this week in the Spring 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: 1509
    
    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


 
It is sorta covered in the JavaRanch Style Guide.
 
subject: shell script niggle