Find the answer to your Linux question:
Results 1 to 8 of 8
I am having a hard time trying to find the Java Runtime client on my RHEL system. Any help? Preferably, the whole path, like, /usr/local/lib....java...
  1. #1
    Just Joined! newbie56's Avatar
    Join Date
    Jan 2009
    Posts
    36

    RHEL-Java Runtime path

    I am having a hard time trying to find the Java Runtime client on my RHEL system. Any help? Preferably, the whole path, like, /usr/local/lib....java
    Last edited by newbie56; 04-23-2009 at 08:29 PM. Reason: Spelling errors

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    Quote Originally Posted by newbie56 View Post
    I am having a hard time trying to find the Java Runtime client on my RHEL system. Any help? Preferably, the whole path, like, /usr/local/lib....java
    Look in /usr/java. All the installed versions are there. The 'default' entry is a link to the one currently being used by default (naturally). The 'latest' entry is a link to the last version installed. Note that you can have a number of versions installed, so applications that are dependent upon deprecated ones can still work.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Linux Enthusiast
    Join Date
    Aug 2006
    Location
    Portsmouth, UK
    Posts
    539
    The which command may also help you out:

    Code:
    [user@host home]$ which java
    /usr/bin/java
    RHCE #100-015-395
    Please don't PM me with questions as no reply may offend, that's what the forums are for.

  4. #4
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    Quote Originally Posted by matonb View Post
    The which command may also help you out:

    Code:
    [user@host home]$ which java
    /usr/bin/java
    Except that in the case of RHEL/CentOS that is just a link to /usr/java/default/bin/java, and /usr/java/default is a link to the actual jre or jdk installation directory.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  5. #5
    Just Joined! newbie56's Avatar
    Join Date
    Jan 2009
    Posts
    36

    No luck

    I reinstalled java in the /usr/java directory like Sun requests. I have scoured in /usr/java/jre1.6.0_13 and I have no luck finding the jre program. I thought it was /usr/java/jre1.6.0_13/bin/java. I thought it was /usr/java/jre1.6.0_13/bin/jexec. No luck. Maybe it is the script that I'm pulling it from that has a problem. What do you think?

  6. #6
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    Quote Originally Posted by newbie56 View Post
    I reinstalled java in the /usr/java directory like Sun requests. I have scoured in /usr/java/jre1.6.0_13 and I have no luck finding the jre program. I thought it was /usr/java/jre1.6.0_13/bin/java. I thought it was /usr/java/jre1.6.0_13/bin/jexec. No luck. Maybe it is the script that I'm pulling it from that has a problem. What do you think?
    Well, you could use the 'find' command to search the /usr/java subdirectories.
    Code:
    find /usr/java -type f -name 'java' -print
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  7. #7
    Just Joined! newbie56's Avatar
    Join Date
    Jan 2009
    Posts
    36
    I was able to find java, but the script I am running is having file not found exception errors. At least, I found the Java runtime. Thanks, matonb and Rubberman.

  8. #8
    Just Joined!
    Join Date
    Dec 2008
    Posts
    1
    hey
    just run these commanda:
    # which java
    /usr/bin/java
    #java -version
    just create a soft link to where java or jdk installed
    #ln -s /opt/java/jdkXXX/bin/java /usr/bin/java
    coooolllll .......

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...