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.

Unable to locate Java. Please set JAVA_HOME environment variable.

Discussion in 'General Discussion' started by DWHS.net, Oct 15, 2008.

  1. DWHS.net

    DWHS.net Well-Known Member
    PartnerNOC

    Joined:
    Jul 28, 2002
    Messages:
    1,569
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    LA, Costa RIca
    cPanel Access Level:
    Root Administrator
    I'm trying to install red5 and t need paths and I think variables to Java

    Anyone know this?

    When i ry to install I ge this: Unable to locate Java. Please set JAVA_HOME environment variable.

    I untared it in the opt folder

    Thanks,

    Charles
     
  2. DWHS.net

    DWHS.net Well-Known Member
    PartnerNOC

    Joined:
    Jul 28, 2002
    Messages:
    1,569
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    LA, Costa RIca
    cPanel Access Level:
    Root Administrator
    anyone installed red5 with cpanel? or at least know the path to Java Tomcat
     
  3. amr ahmed

    amr ahmed Registered

    Joined:
    Aug 9, 2006
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
  4. DWHS.net

    DWHS.net Well-Known Member
    PartnerNOC

    Joined:
    Jul 28, 2002
    Messages:
    1,569
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    LA, Costa RIca
    cPanel Access Level:
    Root Administrator
    tomcat is installed from cpanel easy apache installs it.

    that was uses java, there is only one way to install this through cpanel.

    I guess I need a support ticket to cpanel. just seems so simple if someone has done it yet.
     
  5. DWHS.net

    DWHS.net Well-Known Member
    PartnerNOC

    Joined:
    Jul 28, 2002
    Messages:
    1,569
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    LA, Costa RIca
    cPanel Access Level:
    Root Administrator
    errr, this is so lame
     
  6. arunsv84

    arunsv84 Well-Known Member

    Joined:
    Oct 20, 2008
    Messages:
    373
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    127.0.0.1
    cPanel Access Level:
    Root Administrator
    Please follow the steps listed...

    You can locate java using the command " whereis java"

    edit .bash_profile file in your home direcory and append the lines.
    Code:
    
    export JAVA_HOME="/path/to/java/home"
    export PATH="/path/to/java/bin:$PATH"
    
    
    You can check the path using the command "echo $JAVA_HOME"

    Hope this helps...:)

    Please refer the links listed below if u hav any doubts....

    http://ubuntuforums.org/archive/index.php/t-111783.html

    http://forums.fedoraforum.org/showthread.php?t=85446

    http://www.mail-archive.com/slide-user@jakarta.apache.org/msg12820.html

    http://forums.sun.com/thread.jspa?threadID=567732
     
Loading...

Share This Page