1. Store
  2. Apps
  3. Hardware
  4. Support
  5. Solutions

ClearFoundation

Forums
Welcome, Guest
Install Sun Java?
(1 viewing) 1 Guest
Go to bottomPage: 1
TOPIC: Install Sun Java?
#11266
Install Sun Java? 4 Years, 7 Months ago  
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?
sbn
Senior Boarder
Posts: 49
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#11267
Re:Install Sun Java? 4 Years, 7 Months ago  
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:
Code:

# ls -l


Greetings,

John
John
Platinum Boarder
Posts: 1392
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/05/15 11:08 By Blanco.
The administrator has disabled public write access.
 
#11270
Re:Install Sun Java? 4 Years, 7 Months ago  
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")
sbn
Senior Boarder
Posts: 49
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#11272
Re:Install Sun Java? 4 Years, 7 Months ago  
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!
sbn
Senior Boarder
Posts: 49
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
  get the latest posts directly to your desktop