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

How do I know which is the correct location of the JRE / 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

I've been racking my head against the wall, but can't seem to find the solution... I've even installed the latest JRE (in a new location), but still seem to have the same problem. Please see the notes below...
I installed the latest JRE in /export/home/jvm/jre1.6.0_17/
bash-3.00# /export/home/jvm/jre1.6.0_17/bin/java -version
java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
Java HotSpot(TM) Server VM (build 14.3-b01, mixed mode)
bash-3.00# PATH=/export/home/jvm/jre1.6.0_17/bin:$PATH
bash-3.00# export PATH
bash-3.00# echo $PATH
/export/home/jvm/jre1.6.0_17/bin:/usr/sbin:/usr/bin
bash-3.00# JAVA_HOME=/export/home/jvm/jre1.6.0_17/bin
bash-3.00# export JAVA_HOME
bash-3.00# echo $JAVA_HOME
/export/home/jvm/jre1.6.0_17/bin
bash-3.00# env
HZ=100
LC_MONETARY=en_CA.UTF-8
TERM=xterms
SHELL=/sbin/sh
LC_NUMERIC=en_CA.UTF-8
OLDPWD=/export/home/jvm/jre1.6.0_17
PATH=/export/home/jvm/jre1.6.0_17/bin:/usr/sbin:/usr/bin
MAIL=/var/mail/root
LC_MESSAGES=C
LC_COLLATE=en_CA.UTF-8
PWD=/export/home/jvm/jre1.6.0_17/bin
JAVA_HOME=/export/home/jvm/jre1.6.0_17/bin
EDITOR=vi
TZ=Japan
SHLVL=1
HOME=/
LOGNAME=root
LC_CTYPE=en_CA.UTF-8
LC_TIME=en_CA.UTF-8
_=/usr/bin/env
bash-3.00# cd /cdrom/disc1050709/
bash-3.00# ./setup -console
InstallShield Wizard
Initializing InstallShield Wizard...
Searching for Java(tm) Virtual Machine...
.........................A suitable JVM could not be found. Please run the program again using the option -is:javahome <JAVA HOME DIR>
Is there something I'm missing?
Thank you

Similar Messages

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

    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

    I've been racking my head against the wall, but can't seem to find the solution... I've even installed the latest JRE (in a new location), but still seem to have the same problem. Please see the notes below...
    I installed the latest JRE in /export/home/jvm/jre1.6.0_17/
    bash-3.00# /export/home/jvm/jre1.6.0_17/bin/java -version
    java version "1.6.0_17"
    Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
    Java HotSpot(TM) Server VM (build 14.3-b01, mixed mode)
    bash-3.00# PATH=/export/home/jvm/jre1.6.0_17/bin:$PATH
    bash-3.00# export PATH
    bash-3.00# echo $PATH
    /export/home/jvm/jre1.6.0_17/bin:/usr/sbin:/usr/bin
    bash-3.00# JAVA_HOME=/export/home/jvm/jre1.6.0_17/bin
    bash-3.00# export JAVA_HOME
    bash-3.00# echo $JAVA_HOME
    /export/home/jvm/jre1.6.0_17/bin
    bash-3.00# env
    HZ=100
    LC_MONETARY=en_CA.UTF-8
    TERM=xterms
    SHELL=/sbin/sh
    LC_NUMERIC=en_CA.UTF-8
    OLDPWD=/export/home/jvm/jre1.6.0_17
    PATH=/export/home/jvm/jre1.6.0_17/bin:/usr/sbin:/usr/bin
    MAIL=/var/mail/root
    LC_MESSAGES=C
    LC_COLLATE=en_CA.UTF-8
    PWD=/export/home/jvm/jre1.6.0_17/bin
    JAVA_HOME=/export/home/jvm/jre1.6.0_17/bin
    EDITOR=vi
    TZ=Japan
    SHLVL=1
    HOME=/
    LOGNAME=root
    LC_CTYPE=en_CA.UTF-8
    LC_TIME=en_CA.UTF-8
    _=/usr/bin/env
    bash-3.00# cd /cdrom/disc1050709/
    bash-3.00# ./setup -console
    InstallShield Wizard
    Initializing InstallShield Wizard...
    Searching for Java(tm) Virtual Machine...
    .........................A suitable JVM could not be found. Please run the program again using the option -is:javahome <JAVA HOME DIR>
    Is there something I'm missing?
    Thank you

  • How could I know which table the synonym points to now?

    I have two tables with the same structure, TableA and TableB
    I create a synonym which points to TableA. In some senario, the synonym should be switched to point to the other table.
    How could I know which table the synonym points to right now? So that I can switch the synonym to the other table.
    Thanks a lot!!!!!!

    How could I know which table the synonym points to right nowSee all_synonyms view.
    So that I can switch the synonym to the other tableNot without drop synonym. You need to drop and recreate the synonym to point to the new table.
    Nicolas.

  • My iTunes has multiple phones and computers with similar names associated with it. How do I know which are the right ones?

    I'm trying to clean up my iTunes account and I see several of the same phone or computer listed as authorized users. How do I figure out which are the correct phones/computers?

    Alvin777 wrote:
    Hi. I'd like to delete the Snow Leopard Snapshots in my Time Machine backup drive because it won't work with Lion
    I'm not sure what you mean . . . what won't work with Lion?  It sounds like it did do some backups.
    Is there a way or an app to know which are Lion snapshots? 
    There is a way, but it's rather cumbersome.  You have to start selecting a full system restore; there's a window showing all of the backups and the version of OSX. 
    Is there an app I could use to manage the snapshots if manually deleting them will cause problems and side effects later.
    It's best to use the Time Machine "Star Wars" display to delete backups, but you really shouldn't have to.  Let's figure out what's wrong first.

  • Adobe Cloud has 2 different Muse programs.... how do I know which one is the newer better version?

    So I am new to Muse, and my Adobe Cloud has 2 different programs from Muse... how do I know which one is the newer better version?
    One Must program (Muse CC 2014.2)  has a black background when working on it... it looks like other Adobe programs such as Photoshop.
    The other one is light color (Muse CC) very similar to the black color Muse on functions.....
    One of the difference I notice is that the light color Muse has a few widgets in the library, while the black background Muse seems to have an empty library
    So... why are there 2 different Muse programs in my Adobe Cloud?

    Hi
    The latest version of Muse is 2014.2, so you need to uninstall another version of Muse manually.
    regarding the items in Library, you can add items in your library manually, as shown in this article
    Adobe Muse Help | Organizing and reusing design elements using Library panel
    Please let me know if you have any other query.

  • HT1451 If I have two iTunes libraries on one computer, how do I know which one is opening when I click on the iTunes icon on the desktop?

    If I have two or more iTunes Libraries on one computer, how do I know which one is opening when I click on the iTunes icon on my desktop?

    You cannot.
    When you sync to a new library, it will erase the current content.
    Use your backup copy of the old computer to copy everything to the new one.

  • Can you have multiple Apple TV's in the same house and network? If so how do you know which one to pick from your Idevice?

    can you have multiple Apple TV's in the same house and network? If so how do you know which one to pick from your Idevice?

    Yes, there are even defaults for naming them, such as LivingRoom, Bedroom, etc, or you can even enter your own name with the remote for each AppleTV.

  • HT1635 How do I know which Hard Drive to get for my MacBook 2006? The old Hard Drive is a Toshiba (MK8034GSX) S/N Z6APT2XUT 9H5 EC. A?

    How do I know which Hard Drive to get for my MacBook 2006? The old Hard Drive is a Toshiba (MK8034GSX) S/N Z6APT2XUT 9H5 EC. A?

    I've put a 250gb 7200rpm drive in an Early 2006 with no problems.
    For a new hard drive try Newegg.com http://www.newegg.com/Store/SubCategory.aspx?SubCategory=380&name=Laptop-Hard-Dr ives&Order=PRICE
    Or OWC  http://eshop.macsales.com/shop/hard-drives/2.5-Notebook/
    Here are instructions on replacing the hard drive in a MacBook with a removable battery. http://creativemac.digitalmedianet.com/articles/viewarticle.jsp?id=45088
    To transfer your current hard drive I like the free application Carbon Copy Cloner. It makes a bootable copy of everything on your hard drive http://www.bombich.com/index.html You'll need a cheap SATA external hard drive case. Put the new drive in the case then format and partition the new drive and clone your old drive to the new one. Check that it's set up right by booting up from the external drive. Then replace your old hard drive with the new one and put your old one in the external case.
    Here's a cheap SATA external hard drive case on Amazon http://www.amazon.com/HDE-SATA-Hard-Drive-Enclosure/dp/B001AAVA08/ref=pd_bxgy_pc _text_b
    If you don’t have the tools to open up the MacBook OWC has a set for $5
    http://eshop.macsales.com/item/OWC/TOOLKITMHD/

  • How can I know which link was clicked in the link list

    Hi everyone
    I'm using list of links in my page to display list of the files in some directory.
    How can I know which link user was clicked. There are some code:
    <%
    String dir = "..//files//";
    File fin = new File(dir);
    File files[]=fin.listFiles();
    for(int i=0;i<files.length;i++)
    File x = files;
    %>
    <%=x.getName()%><br>
    <%
    %>
    Please help

    You need to pass some data on the querystring to the page you are linking to.
    <a href="Main_Work.jsp?file=<%=x.getName()%>"><%=x.getName()%></a><br>
    This will send a parameter called "file" with the value of the file name that the user clicked.
    Now in Main_Work.jsp you can access this data as follows:
    <%
    String s = request.getParameter("file");
    File f = new File("..//files//"+s);
    %>

  • I recently deleted many duplicate files. In the midst of it my Itunes songs are not in Itunes. They are in two different folders. One under 'Music' in my ID. And two under a MyMusic file in Documents. How do I know which one to import?

    I recently deleted many duplicate files. In the midst of it my Itunes songs are not in Itunes. They are in two different folders. One under 'Music' in my ID. And two under a MyMusic file in Documents. How do I know which one to import?

    Thanks, this is not an ideal answer but probably the most sensible one in my case.
    I will try it unless someone has a better suggestion, but I'll wait a bit as it will take me a few days anyway (I had actually tried to create a new smaller playlist or download by album, but at this stage the music app is not letting me queue a list of songs for download - I think I will have to disable and re-enable iTunes match which will probably delete all the songs).
    I have to say I am not very impressed with Apple here - having an online backup of all your data and beeing able to restore it to a new device easily was a strong selling point of iCloud. For music, they are Definitly not delivering at the stage.

  • On the Web Wiz Forum, id="gwProxy" ="" ="ifofjsCall==''jsCall;elsesetTimeout'jsCall',500;" id="jsProxy" ="" is added to every reply that I make. Safe mode cures it but how do I know which add-on is the problem?

    When I go to a reply window, sometimes it almost looks like there is a little window/box appears (with the 6 dots that allows the size to be changed) It appears to be the cause of the string/code?
    On the Web Wiz Forum, < id="gwProxy" ="">< ="ifofjsCall==''jsCall;elsesetTimeout'jsCall',500;" id="jsProxy" ="">
    to be added once the reply is posted, to every reply that I make. Safe mode cures it but how do I know which add-on is the problem? I have 25-30 add-ons.

    Disable all addons by going to Tools -> Addons and clicking the disable button in every entry under Extensions or Plugins panels.
    Restart Firefox.
    Confirm the problem isnt there.
    Enable each addon one by one by going to Tools -> Addons and clicking the enable button in every entry under Extensions or Plugins panels, in such a way that each time you enable ONE addon, you RESTART the browser and see if the problem STILL happens.
    AS SOON AS the problem happens, disable the last addon you enabled. That one is the culprit. You can now enable all the others, if needed.

  • How can i know which index will be used when executing the query ?

    1 ) I have query in which i have 3-4 tables but there multiple index on one column .
    so how can i know which index will be used when executing the query ?
    2) I have a query which ia taking too much time . how can i know which table is taking too much time ?
    3) Please Provide me some document of EXplain plan ?

    Hi Jimmy,
    Consider the below example
    /* Formatted on 2011/02/04 21:59 (Formatter Plus v4.8.8) */
    CREATE TABLE FIRST AS
    SELECT * FROM all_objects;
    UPDATE FIRST
    SET object_name = 'TEST'
    WHERE owner != 'SCOTT';
    CREATE INDEX idx_first ON FIRST(object_name);
    SELECT *
    FROM FIRST
    WHERE object_name = 'TEST';
    It has not used index
    Execution Plan
    Plan hash value: 2265626682
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | 58678 | 7334K| 163 (4)| 00:00:02 |
    |* 1 | TABLE ACCESS FULL| FIRST | 58678 | 7334K| 163 (4)| 00:00:02 |
    /* Formatted on 2011/02/04 21:59 (Formatter Plus v4.8.8) */
    SELECT *
    FROM FIRST
    WHERE object_name = 'emp';
    This has used the index
    Execution Plan
    Plan hash value: 1184810458
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | 1 | 128 | 1 (0)| 00:00:01 |
    | 1 | TABLE ACCESS BY INDEX ROWID| FIRST | 1 | 128 | 1 (0)| 00:00:01 |
    |* 2 | INDEX RANGE SCAN | IDX_FIRST | 1 | | 1 (0)| 00:00:01 |
    From this we can come to the conclusion that, whether to use one index or not by oracle
    would also depend on the data which is present in the table. This has to be this way as
    we see in the bind peeking, if oracle sticks to only one plan, say only use the full table
    scan, it would be a performance hit when it searches for the second query ie where object_name
    ='emp';
    2.
    If we have a query like below.
    select * from emp
    where upper(ename) = upper(:p_ename);
    Evenif we have the index on ename column, oracle wouldn't be able to use the index, as there is a function in the predicate column. If you need oracle to use the index, we need to create a function based index as below.
    Create index idx_ename on emp(upper(ename));
    Regards,
    Cool

  • How can I know which photos are in the library was used in each album I have created before.

    How can I know which photos are in the library was used in each album I have created before?
    I have many photos in the library folder of iPhoto, but actually I don't know which photos were used in my album.
    Is there any method to find this?
    Thanks.

    Album or Book?
    If Album you can find the ones not already used:
    File -> New Smart Album
    Album -> is not -> Any
    Regards
    TD

  • I have a second generation I Pod touch.  How do I know which games I can download from the Apple Store?

    I have a second generation I Pod touch.  How do I know which games I can download from the Apple Store?

    Hello, Suzanne. 
    Thank you for visiting Apple Support Communities. 
    Unfortunately there isn't a list available at this time for applications that are specific for your iOS/Software version.  However, once you know which iOS/Software version you have installed, you can browser various applications and look for ones that meet your system requirements.  I have included a screenshot below on how to look for this information. 
    iPhone, iPad, iPod: How to find the software version
    http://support.apple.com/kb/ht2188
    Cheers,
    Jason H. 

  • How can I know which file is using by the self-service workflow?

    Dear all:
    In my directory, there are two HRSSA.wft and How can I know which source is using by the workflow of the self-service ?
    my environment is oracle 11.5.9 | self-service 4.1 | workflow builder 2.6
    Thanks
    regards
    Terry

    One way would be to download the HRSSA workflow to a wft file (using the WFLOAD utility - see MOS Doc 578248.1), then comparing this downloaded wft file with the two files you have (using a utility such as diff in Unix). The comparison that reports no differences will identify the wft that was uploaded into the database.
    HTH
    Srini

Maybe you are looking for

  • SharePoint 2010 Report using a Shared Data Source Connection file (.rsds) is forcibly closed.

    Hi - When attempting to render a report (.rdl) in a SharePoint 2010 document library that has a Connection Type specified as a Shared data source (the connection succeeds when tested in the SharedDataSource.aspx page), the following error message is

  • Ipod Sounds Problem (Noise) OMG PLS HELP !!!

    Ok guys, I have a Ipod Classic 80G ... All the functions works fine, songs, sync, movies, pictures (yay) ! But i week ago my ipod start to make a noise sound when i play my musics/movies ! The noise sounds is similar when ur listening to a very bad q

  • Fix for the Aluminum Wire Keyboard?

    http://www.apple.com/support/downloads/bootcampupdate21forwindowsxp.html do the new bootcamp drivers have fixes for the new aluminum keyboards? Im setting up programs & applications using a new macpro, however eject key doesnt function, as i ahve mul

  • Powerbook 190 Series Transfer to PC

    A co-worker of mine has a PowerBook 190 which he just needs files from. I have connected twop Macs using an etherner crossover cable but never a Mac and PC. What I want to do is connect them and get then recognized and just transfer the files from th

  • Can i get Autodesk Inventor on a mac book pro

    I just got a macbook pro and I was wondering if I am able to get the autodesk inventor software with keeping the OS X version 10.8.3. If so how can i.