LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to run Sun JDK 1.5 without conflict from libgcj? (https://www.linuxquestions.org/questions/linux-software-2/how-to-run-sun-jdk-1-5-without-conflict-from-libgcj-264204/)

rhimbo 12-08-2004 05:38 PM

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

ilikejam 12-08-2004 06:37 PM

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


All times are GMT -5. The time now is 02:45 PM.