LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 12-08-2004, 06:38 PM   #1
rhimbo
LQ Newbie
 
Registered: Dec 2004
Posts: 29

Rep: Reputation: 15
How to run Sun JDK 1.5 without conflict from libgcj?


Hello everyone,

I know this question is similar to other threads, but I haven't seen any that directly address my question.

I'm running Fedore Core 3. When I type "java -version" I get the output from the placeholder configured using alternatives(8). My goal is to use the Sun JDK 1.5.0 and remove any conflict from libgcj. I'm afraid I don't quite understand the dependencies.

The crux of my question is: how do I remove dependencies on libgcj so I can use the Sun JDK? Or, I should first ask, can I run without libgcj (not remove it, just circumvent it)? It seems to me that setting my PATH to point to the new Java installation should completely bypass the libgcj, correct?

Should I remove all configurations for java using the alternatives(8) utility? Do I need to do anything additionally?


Many thanks,

Vartan
 
Old 12-08-2004, 07:37 PM   #2
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
Hi.

All you have to do is make sure the Sun java bin location comes before the gcj bin location in your $PATH.

You can do this with e.g.:
PATH=/usr/local/lib/jdk1.5.0/bin:$PATH
in your ~/.bash_profile. You'll obviously have to alter that for wherever you install Java.

Dave
 
  


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
the problem of libgcj winpro Linux - Newbie 2 08-28-2005 02:18 PM
Problem with GCC 3.4.3 and libgcj Draco098 Linux - Software 2 03-01-2005 08:21 AM
knoppix (Debain) Installing SUN Jdk 1.4.0_01 freakhead Linux - Newbie 2 07-28-2004 05:15 PM
sun webserver6.1 run flawlessly on slack9.1+ linuxJaver Slackware 1 10-31-2003 05:20 AM
Sun jdk 1.4.1 crashes on compilation juby Programming 1 06-28-2003 06:36 AM


All times are GMT -5. The time now is 03:57 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