Community Forum

sbn
sbn
Offline
Resolved
0 votes
I have an application that requires java JRE 1.6, but am very hesitant about proceeding. Actually downright scared to begin. The last time I ever installed Java from Sun it was a nightmare. I suppose I can first try to install non-Sun java, but the problem I see now is that I can't find this through Yum. I would much prefer to have this as automated as possible. Has anyone built java 1.6 for ClearOS? Is there a repo I can use to get this through Yum?

Lastly, if I do have to do Sun Java directly from their site, has anyone done a Howto or guide?
Saturday, May 15 2010, 02:58 PM
Share this post:
Responses (3)
  • Accepted Answer

    sbn
    sbn
    Offline
    Saturday, May 15 2010, 04:48 PM - #Permalink
    Resolved
    0 votes
    Problem solved:

    I just had to add the following 2 lines:

    export JAVA_PATH="$JAVA_HOME"
    export PATH="$PATH:$JAVA_HOME"

    And it works, and the application runs!
    The reply is currently minimized Show
  • Accepted Answer

    sbn
    sbn
    Offline
    Saturday, May 15 2010, 04:00 PM - #Permalink
    Resolved
    0 votes
    Thanks for the reply, sadly the solution is not found in the Dolphin howto. I have the Sun Java installed, but not seen by the OS (i.e "java -version" shows nothing).

    The first step is I have to provide the path correct? So I did a Google search and saw a previous post at the old Clark Connect forum that say I had to add the following to the /etc/profile:

    # JAVA
    JAVA_HOME="/usr/java/jre1.6.0_20/bin"
    export JAVA_HOME

    If I run " echo $JAVA_HOME" I get the correct output:"/usr/java/jre1.6.0_20". However "java -version" does not work ("-bash: java: command not found")
    The reply is currently minimized Show
  • Accepted Answer

    John
    John
    Offline
    Saturday, May 15 2010, 03:08 PM - #Permalink
    Resolved
    0 votes
    Hi sbn,

    Maybe this manual will guide you in the right direction (copied from my "How 2 install Dolphin Community on ClearOS") ...

    Install Java:
    I was unable to install the ".rpm" version, so I used the ".bin" version.
    Download the "Linux (self-extracting file)" and follow the Instructions.
    Use to following command to confirm a successful extraction:
    # ls -l

    Greetings,

    John
    The reply is currently minimized Show
Your Reply