Re: Getting java to work?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



EirikH wrote:
I had the same problem.
I used the descriptions found here : http://www.linuxquestions.org/questions/answers/285 to make sure FC3 used the correct java (the how-to is for FC2 but it worked for FC3).
After I had finished the installation, I logged on and off, and java worked in firefox.

E




IMHO, the proper way:

====

alternatives \
--install /usr/bin/java java /usr/libexec/j2sdk1.4.2_05/bin/java 3 \
--slave /usr/bin/jar jar /usr/libexec/j2sdk1.4.2_05/bin/jar \
--slave /usr/bin/javac javac /usr/libexec/j2sdk1.4.2_05/bin/javac \
--slave /usr/bin/javadoc javadoc /usr/libexec/j2sdk1.4.2_05/bin/javadoc \
--slave /usr/bin/javah javah /usr/libexec/j2sdk1.4.2_05/bin/javah \
--slave /usr/lib/mozilla/plugins/libjavaplugin_oji.so javaplugin \


/usr/libexec/j2sdk1.4.2_05/jre/plugin/i386/ns610-gcc32/libjavaplugin_oji.so

====

[encijan /etc/alternatives]# alternatives --config java

There are 3 programs which provide 'java'.

  Selection    Command
-----------------------------------------------
   1           /usr/share/java/libgcj-java-placeholder.sh
*  2           /usr/lib/jvm/jre-1.4.2-gcj/bin/java
 + 3           /usr/libexec/j2sdk1.4.2_05/bin/java

Enter to keep the current selection[+], or type selection number:
[encijan /etc/alternatives]#

====

Restore:
alternatives --remove java /usr/libexec/j2sdk1.4.2_05/bin/java

====

man alternatives

Best regards, Bob
--
 Bob Marcan, Consultant                mailto:bob.marcan@xxxxxxxxxxxxxx
 S&T Hermes Plus d.d.                  tel:           +386 (1) 5895-300
 Slandrova ul. 2                       fax:           +386 (1) 5895-202
 1231 Ljubljana - Crnuce, Slovenia     url:   http://www.hermes-plus.si


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux