LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 05:38 PM   #1
rhimbo
Member
 
Registered: Dec 2004
Distribution: Ubuntu 19.04 on Lenova ThinkPad T440
Posts: 141

Rep: Reputation: 28
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, 06:37 PM   #2
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
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



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

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

All times are GMT -5. The time now is 02:07 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
Open Source Consulting | Domain Registration