The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

JDK 7

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

  1. 000

    000 Well-Known Member

    Joined:
    Jun 3, 2008
    Messages:
    150
    Likes Received:
    0
    Trophy Points:
    16
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     

Share This Page