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!

JDK 7

Discussion in 'General Discussion' started by 000, Jun 9, 2013.

  1. 000

    000 Well-Known Member

    Joined:
    Jun 3, 2008
    Messages:
    158
    Likes Received:
    0
    Trophy Points:
    66
    Thanks Michael.

    And What I should put in /etc/profile after of I install my JDK 7:

    JAVA_HOME=/usr/java/jdk1.7.0_21
    JRE_HOME=/usr/java/jdk1.7.0_21/jre


    or

    JAVA_HOME=/usr/java/jdk1.7.0_21/
    JRE_HOME=/usr/java/jdk1.7.0_21/jre/


    ??
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,897
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    I moved this response into it's own thread. The following values are automatically configured in the /etc/bashrc file:
    Code:
    export JAVA_HOME=/usr/local/jdk
    export PATH=$JAVA_HOME/bin:$PATH
    export CLASSPATH=.:$JAVA_HOME/lib/classes.zip
    export PATH="$PATH:/usr/local/bin:/usr/X11R6/bin"
    The specific version numbers should not be required because a symbolic link automatically directs the location listed to the correct path.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

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