Re: F14: can't get java running

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

 



On Fri, Dec 3, 2010 at 6:46 PM, Tony Camuso <tcamuso@xxxxxxxxxx> wrote:
> OK, so in my fervor to delete IcedTea, I "yum erase"d java.
>
> So, to get java back, I did the following:
>
> # yum groupinstall Java
>
> I could not locate the libjavaplugin_oji.so file, so I installed
> the jre as follows.
>
> # yum localinstall --nogpgcheck jre-6u22-linux-i586.rpm
> # ln -sf /usr/java/jre1.6.0_22/plugin/i386/ns7/libjavaplugin_oji.so \
>  /usr/lib/mozilla/plugins
>

I'm going to guess that perhaps your instructions are out of date?

First remove any unnecessary symlinks you created.

Fix icedtea:
# yum install java-1.6.0-openjdk java-1.6.0-openjdk-plugin

Install Oracle/Sun Java:
# rpm -i jre-6u22-linux-i586.rpm

Make it the system default:
# alternatives --install /usr/bin/java java /usr/java/default/bin/java 20000
# alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so \
libjavaplugin.so /usr/java/default/lib/i386/libnpjp2.so 20000

To switch between IcedTea and Oracle/Sun (if necessary):
# alternatives --config java
# alternatives --config libjavaplugin.so

If you require path variables like $JAVA_HOME, make sure to use the
softlinked paths (eg. /usr/java/default/bin) instead of a hardcoded
version path.  Helps when you update/upgrade.

If you have SELinux issues, might want to read this:
https://bugzilla.redhat.com/show_bug.cgi?id=628031

These steps seem to cause minimal interference with Fedora and any
Java related dependencies.

Hope this helps.

-- 
Mauriat Miranda
http://www.mjmwired.net/linux
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines



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

  Powered by Linux