LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 06-11-2011, 12:51 AM   #1
nuttynibbles
Member
 
Registered: Apr 2010
Posts: 59

Rep: Reputation: 0
Java JRE and JDK on CentOs


Hi,

Im looking to install subversion on my CentOs (Linux version 2.6.18-238.9.1.el5 (mockbuild@builder10.centos.org) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-50)))

For me to do that, im required to install the following:
1) Java 6 JRE
2) Set the JAVA_HOME environment variable, and point it to your Java 6 JRE home. For example:

export JAVA_HOME=/usr/lib/jvm/java-1.6.0-sun

3) Have python install.

The installation guide can be found @ here


When I did step 5 on the installation guide, i got an error Unable to start CSVN Console: no Java executable found
Please make sure the variable JAVA_HOME is defined in your environment


I did java-version and it says bash: java-version: command not found


So I'm require java. But I'm able to run eclipse so there must be java installed correct??

If java is not installed, how do I install java JRE and JDK on CentOs.

Appreciate it. Tks in advance
 
Old 06-11-2011, 02:41 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,279

Rep: Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664
1) The jdk package from Scientific Linux
http://ftp.scientificlinux.org/linux...4-fcs.i586.rpm

Or from Sun / Oracle. 2) Install the package.

3)
# /usr/sbin/alternatives --install /usr/bin/java java /usr/java/jdk1.6.0_24/bin/java 2

4) # /usr/sbin/alternatives --config java


No "setting JAVA_HOME" is required.

..

Last edited by knudfl; 06-11-2011 at 02:43 AM.
 
  


Reply

Tags
centos5, java, jdk, jre


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to install Java jdk and jre in linux BuhRock Linux - Newbie 2 03-27-2011 05:28 PM
[SOLVED] Fedora 14 remove all java jdk jre and reinstall PIN700060 Linux - Newbie 1 03-06-2011 10:01 AM
[SOLVED] Java Woes: A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available ... chytraeus Slackware 10 11-27-2010 11:04 AM
Please help me install latest JDK & JRE on my CentOS server xNuManx Linux - General 5 10-04-2008 05:49 AM
How to install a very specific subversion of Java (JDK/JRE) rose_bud4201 Linux - Software 2 06-16-2008 10:45 AM


All times are GMT -5. The time now is 01:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration