The UNIX Forums
"Join the Network of UNIX System Users"


 
Subject: finding the java path in aix
delusion
Newbie
Rank: 1



UID 111
Digest Posts 0
Credits 0
Posts 21
Reading Access 10
Registered Apr 25, 2007
Status Offline
Post at May 25, 2007 04:27 AM  Profile | P.M. 
finding the java path in aix



finding the java path in aix



how to retrieve the path of java bin directory in aix (or any unix os)??

actually my problem is,
i have a jar file called app.jar. i want to execute it by calling the javaw executable.
my command is "/usr/java130/javaw -jar app.jar".

i've written this command into a shell script. now, when i run this shell script in another machine, the command fails because of the different java path.


my question,  
how to find the java path programmatically ??
dows java installer create any environmental varibles for the path ??

thanks & regards


Top
aznjason
Newbie
Rank: 1



UID 63
Digest Posts 0
Credits 0
Posts 45
Reading Access 10
Registered Apr 25, 2007
Status Offline
Post at May 25, 2007 04:28 AM  Profile | P.M. 
thanks dude.

i added the java path manually to path variable in my .profile file. after that the command javaw -jar dvdtool.jar works well. dont even have to mention which.
Top
 

 

All times are GMT, the time now is Jul 31, 2010 03:27 AM

Powered by Discuz! 5.0.0  © 2001-2006 UNIX Forums
Processed in 0.004729 second(s), 8 queries

Clear Cookies - Contact Us - UNIX Help - Archiver - WAP