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

ClearFoundation

Forums
ClearOS ClearFoundation and ClearCenter have moved to the new website ClearOS.com (https://clearos.com). We are making this change in order to improve search and exposure of ClearOS to the world. There are several improvements that are being made and some that are still on the table for development. The forums are now live on clearos.com and locked on this site until all the redirects are in place. If you have issues using the new site, feel free to ask on the #clearfoundation room in IRC chat on freenode.net or engage with a chat agent on the site if they are around. Our goal is to complete this step so that we can be properly ready for the types of communication that will be essential for the release of ClearOS 7!
Welcome, Guest
Install Sun Java? Forum is locked
(1 viewing) 1 Guest
Go to bottomPage: 1
TOPIC: Install Sun Java?
#11266
Install Sun Java? 4 Years, 11 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 topic has been locked.
 
#11267
Re:Install Sun Java? 4 Years, 11 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 topic has been locked.
 
#11270
Re:Install Sun Java? 4 Years, 11 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 topic has been locked.
 
#11272
Re:Install Sun Java? 4 Years, 11 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 topic has been locked.
 
Go to topPage: 1
  get the latest posts directly to your desktop