Find the answer to your Linux question:
Results 1 to 8 of 8
I'm running 10.04 LTS with these Java packages installed: sun-java6-bin sun-java6-jre java-common sun-java6-plug I can't get some software to run: it says it needs JRE6. But when I look into ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2010
    Posts
    2

    Confused by Java information


    I'm running 10.04 LTS with these Java packages installed:
    • sun-java6-bin
    • sun-java6-jre
    • java-common
    • sun-java6-plug
    I can't get some software to run: it says it needs JRE6. But when I look into it, the terminal shows this:

    Code:
    java -version
    java version "1.5.0"
    gij (GNU libgcj) version 4.4.3
    My Java knowledge is now exhausted.

    What do I need to do to get JRE6 running?

  2. #2
    Linux User
    Join Date
    Nov 2009
    Location
    France
    Posts
    292
    You have JAVA 1.5 installed somewhere and is in the 'path', you can locate the java 1.5 executable by running
    Code:
    which java
    You have to find out where JAVA 1.6 is installed. I don't know Ubuntu, so I don't know where packages are installed. Your package manager will inform you about it.

    Alternatively, you can look for JAVA 1.6 in a 'brute find' way :
    Code:
    find / -type f -name "java"
    This will give you, amongst many outputs,
    /<path_to_java_1.6>/bin/java
    .
    If you are running your client program from a shell, just adjust the PATH variable :
    Code:
    export PATH="/<path_to_java_1.6>/bin:$PATH"
    /<path_to_your_program>your_program
    If you want to havt the path variable to always point to JAVA 1.6, Ubuntu knowledgeable forum members will tell you which file to tweak for this purpose.
    On Mandriva, it's /etc/profile, where we can add
    Code:
    export PATH="/<path_to_java_1.6>/bin:$PATH"
    You'll have to reboot after this.
    0 + 1 = 1 != 2 <> 3 != 4 ...
    Until the camel can pass though the eye of the needle.

  3. #3
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    None of this is necessary due to the use of alternatives.

    What you need is to run update alternatives command. Just google for update alternatives java ubuntu and ubuntu doc should be high on the list

  4. #4
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149

  5. #5
    Just Joined!
    Join Date
    Sep 2010
    Posts
    2

    Now Java 6 is running - but the original error remains...

    Thanks for your help, guys. I'm getting there (slowly).

  6. #6
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    which error, that which command output is showing gcj?

  7. #7
    Just Joined!
    Join Date
    Dec 2009
    Location
    Maryland, USA
    Posts
    82
    Quote Originally Posted by coopstah13 View Post
    which error, that which command output is showing gcj?
    (Lengthening ). . . Huh?

  8. #8
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    i'm asking op if the error to which they are referring is that of the which command output as posted above

Posting Permissions

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