How to run Sun JDK 1.5 without conflict from libgcj?
Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.