LinuxQuestions.org
Visit the LQ Articles and Editorials 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
 
LinkBack Search this Thread
Old 04-12-2008, 05:25 PM   #1
mulersh
LQ Newbie
 
Registered: Jan 2008
Posts: 2

Rep: Reputation: 0
Sun JDK installed on Fedora 8 but it is not there


I installed the Sun JDK SE rpm package (as Sun says "RPM packages are the recommended method for installation on Linux" ) on my Fedora 8 machine with installation instructions from Sun site. But when I verify the installation by :
# java -version

I get,

java version "1.7.0"
IcedTea Runtime Environment (build 1.7.0-b21)
IcedTea Client VM (build 1.7.0-b21, mixed mode)

where as I expect (it shoud hhave been) something like:


java version "1.6.0_01"
Java(TM) SE Runtime Environment (build 1.6.0_01-b06)
Java HotSpot(TM) Client VM (build 1.6.0_01-b06, mixed mode, sharing)

The rpm query output shows me the installed JDK (jdk-1.6.0_05-fcs).

Have I missed something during installation? How can I get it working?
 
Old 04-12-2008, 11:29 PM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Debian, FreeBSD
Posts: 3,755
Blog Entries: 5

Rep: Reputation: Disabled
Use:
$ rpm -q --filesbypkg jdk | less
to see where the package files live.

It looks like you may need to update your PATH to include the bin directory installed by Sun java. Make sure it precedes the bin directory used by the other java.

Example (yours may differ): /usr/java/jdk1.6.0_05/bin

While you're at it you should probably update JAVA_HOME as well. Both can be set in ~/.profile or ~/.bash_profile.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How To Install Sun Java SE 6 JDK and NetBeans 5.5.1 - Fedora 7 LXer Syndicated Linux News 0 08-22-2007 06:51 PM
problem installing SUN JDK 1.5.10 eerpini Linux - Software 5 07-25-2007 07:20 AM
Sun JDK 6 and Fedora 7 problems RoughEdge Fedora 4 06-30-2007 11:59 AM
Installing Sun JDK naiveguy Linux - General 2 04-17-2006 02:15 PM
installing Sun JDK in FC5 fakie_flip Linux - Software 1 04-14-2006 05:28 PM


All times are GMT -5. The time now is 01:23 PM.

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