Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Wrong Java version showing after Upgrading

Discussion in 'General Discussion' started by intertac, Feb 13, 2008.

  1. intertac

    intertac Registered

    Joined:
    Mar 16, 2006
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    151
    When I issue a java -version cmd, I get version 1.4.2. I just recently manually upgraded to 1.6..04 so I am at a loss as to why the system is telling me it still has 1.4.2

    In searching/google I came a cross a few things such as modifying the /etc/profile and putting in the following lines:

    export PATH=$PATH:/usr/java/jdk1.6.0_04/bin:/usr/java/jdk1.6.0_04/jre/bin
    export JAVA_HOME=/usr/java/jdk1.6.0_04
    export CLASSPATH="./:/usr/java/jdk1.6.0_04/lib:/usr/java/jdk1.6.0_04/jre/lib

    then issuing the cmd: source /etc/profile

    but I still get the old version.

    What am I doing wrong? Is this a cPanel quirk and I need to change something else??
    I am at a loss.

    Any pointers/ideas would be much appreciated.
    Thanks
    tom
     
  2. jayh38

    jayh38 Well-Known Member

    Joined:
    Mar 3, 2006
    Messages:
    1,215
    Likes Received:
    0
    Trophy Points:
    166
    Remove the old java rpm/s
    rpm -qa | grep java

    Then reinstall the new bin if needed.
     
  3. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,563
    Likes Received:
    43
    Trophy Points:
    308
    cPanel Access Level:
    Root Administrator
    You can also use the update-alternatives command to switch to the different Java version.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice