Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within GNU/Linux
Search Coderanch
Advance search
Google search
Register / Login
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
Paul Clapham
Ron McLeod
Jeanne Boyarsky
Tim Cooke
Sheriffs:
Liutauras Vilda
paul wheaton
Henry Wong
Saloon Keepers:
Tim Moores
Tim Holloway
Stephan van Hulst
Carey Brown
Frits Walraven
Bartenders:
Piet Souris
Himai Minh
Forum:
GNU/Linux
shell script niggle
Abhinav Srivastava
Ranch Hand
Posts: 354
I like...
posted 9 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Trying to execute
Java
from a shell script, any clues?
$/app/java_1.6.0_10/bin/java -version java version "1.6.0_10" Java(TM) SE Runtime Environment (build 1.6.0_10-b33) Java HotSpot(TM) 64-Bit Server VM (build 11.0-b15, mixed mode) $pwd /app/java_1.6.0_10/bin $ls -ltr java -rwxr-xr-x 1 root other 50714 Jan 26 2012 java $cat runjava.sh JAVA_HOME=/app/java_1.6.0_10 $JAVA_HOME/bin/java someClass $./runjava.sh /bin/java: not found: /app/java_1.6.0_10
Anayonkar Shivalkar
Bartender
Posts: 1558
5
I like...
posted 9 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
Posts: 354
I like...
posted 9 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Worked with explicitly set PATH
JAVA_HOME=/app/java_1.6.0_10 PATH=$JAVA_HOME/bin:$PATH java someClass
Hot dog! An advertiser loves us THIS much:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Passing Files in Web Services
another Eclipse issue
problem building with ant - no classdef found for javac.main
Unsupported major.minor version 50.0
How do I use a path as an argument without breaking the -classpath option?
More...