LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-21-2009, 10:13 PM   #1
mrouble
LQ Newbie
 
Registered: Jan 2009
Posts: 2

Rep: Reputation: 0
Problem installing JAVA on redhat


Hello,

Could someone please help me to configure my Java-version on redhat!

java -version returns the old version and I'm not able to migrate to new version ("1.6.0_11") already installed:


# java -version
java version "1.4.2"

However:
# /usr/java/jdk1.6.0_11/bin/java -version
java version "1.6.0_11"

Please see bellow for more details!

Thanks in advance



echo 2 | sudo /usr/sbin/alternatives --config java

There is 1 program that provides 'java'.

Selection Command
-----------------------------------------------
*+ 1 /usr/lib/jvm/jre-1.4.2-gcj/bin/java

Enter to keep the current selection[+], or type selection number:
There is 1 program that provides 'java'.

-------------------------------------------------------------

# java -version
java version "1.4.2"
gij (GNU libgcj) version 4.1.2 20070626 (Red Hat 4.1.2-14)

Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

----------------------------------------------------------------------

# /usr/java/jdk1.6.0_11/bin/java -version
java version "1.6.0_11"
Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
Java HotSpot(TM) Client VM (build 11.0-b16, mixed mode, sharing)
 
Old 01-22-2009, 03:02 PM   #2
indienick
Senior Member
 
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
Perhaps, try removing GCJ? The package name might be something like "gcc-java".
 
Old 01-22-2009, 04:07 PM   #3
mrouble
LQ Newbie
 
Registered: Jan 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by indienick View Post
Perhaps, try removing GCJ? The package name might be something like "gcc-java".

I tried, I've no package name gcc-java !!!
 
Old 01-24-2009, 08:51 AM   #4
renjithrajasekaran
Member
 
Registered: Jan 2009
Posts: 29

Rep: Reputation: 15
Check your path settings. You might have given the location to the 1.4.2 version java in your path.

Hope this helps!


Linux Archive

Last edited by renjithrajasekaran; 01-25-2009 at 03:02 AM.
 
  


Reply


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
Problems installing JAVA plugin for Firefox on RedHat / Scientific Linux linder Linux - Software 6 08-02-2010 11:53 AM
Having trouble installing Java 1.6 on Redhat via a SSH connection shellcrash Linux - Newbie 4 10-24-2008 06:54 AM
Installing java on redhat as 4 sunlinux Programming 2 06-28-2006 04:44 AM
Problem with PNG image in Java on Redhat Shariq Mustaquim Linux - Software 2 06-24-2005 06:37 AM
problem running java on redhat enterprise ws 3 wellblue88 Linux - Software 3 10-20-2004 04:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:07 PM.

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
Open Source Consulting | Domain Registration