Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How do I know which is the correct location of the JVM?

807567Nov 11 2009 — edited Nov 11 2009
How do I know which is the correct location of the JVM? What do I add to my PATH environment variable? I'm trying to install Sybase ASE on my Sun Fire v480 SPARC box, but keep getting the below error...

*"A suitable JVM could not be found. Please run the program again using the option -is:javahome <JAVA HOME DIR>"*

So I did the following...


STEP 01) To confirm that Java is installed, I ran the java -version command. I received the following output...

bash-3.00# java -version
java version "1.5.0_17"
Java(TM) Platform, Standard Edition for Business (build 1.5.0_17-b04)
Java HotSpot(TM) Server VM (build 1.5.0_17-b04, mixed mode)



STEP 02) Then I tried to locate the location of where Java was installed...

bash-3.00# which java
/usr/bin/java



STEP 03) Then I tried to confirm if it was a symbolic link or not...

bash-3.00# ls -al /usr/bin/java
lrwxrwxrwx 1 root other 16 Jun 24 01:54 /usr/bin/java -> ../java/bin/java



STEP 04) The symbolic link doesn't seem to match any of the output below. Which is the correct location / path of Java (JVM / JRE)?

bash-3.00# find / -name java -print;
/usr/share/lib/java
/usr/share/java
/usr/bin/java
/usr/sfw/include/mozilla/java
/usr/include/firefox/java
/usr/jdk/instances/jdk1.5.0/bin/java
/usr/jdk/instances/jdk1.5.0/bin/sparcv9/java
/usr/jdk/instances/jdk1.5.0/jre/bin/java
/usr/jdk/instances/jdk1.5.0/jre/bin/sparcv9/java
/usr/jdk/packages/javax.help-2.0/doc/api/com/sun/java
/usr/java
/usr/apache/tomcat/webapps/tomcat-docs/catalina/docs/api/org/apache/naming/java
/usr/apache/tomcat55/classes/org/apache/naming/java
/usr/apache/jserv/docs/api/org/apache/java
/usr/j2se/bin/java
/usr/j2se/bin/sparcv9/java
/usr/j2se/jre/bin/java
/usr/j2se/jre/bin/sparcv9/java
/usr/appserver/samples/blueprints/adventure1.0.4/project/apps/activitysupplier/activitysupplier-ejb/src/java
/usr/appserver/samples/blueprints/adventure1.0.4/project/apps/airlinesupplier/airlinesupplier-ejb/src/java
/usr/appserver/samples/blueprints/adventure1.0.4/project/apps/bank/bank-ejb/src/java
...............................................................................................
...........................................................
..........................
/usr/appserver/samples/webservices/security/web/apps/clientCert/clientCert-share/src/java
/usr/appserver/samples/webservices/security/web/apps/clientCert/clientCert-war/src/java
/usr/appserver/samples/webservices/security/web/apps/xms/xms-client/src/java
/usr/appserver/samples/webservices/security/web/apps/xms/xms-share/src/java
/usr/appserver/samples/webservices/security/web/apps/xms/xms-war/src/java
/usr/appserver/samples/xml/apps/dom/src/java
/usr/appserver/samples/xml/apps/sax/src/java
/usr/appserver/samples/xml/apps/xslt/src/java
/opt/staroffice8/share/Scripts/java
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 9 2009
Added on Nov 11 2009
2 comments
693 views