LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Swiftfox and Java on 64-bit install (https://www.linuxquestions.org/questions/linux-software-2/swiftfox-and-java-on-64-bit-install-621730/)

Jongi 02-17-2008 12:45 AM

Swiftfox and Java on 64-bit install
 
Hi.

If firefox is already working wrt java and flash, should it be a simple matter of loading up swiftfox and away I go?

I ask because I seem to be having problems with java related sites.

When using http://www.java.com/en/download/help/testvm.xml in FF, I can see the little fella dancing. However in Swiftfox nothing.

Below is my ~/.mozilla/plugins directory

Code:

[jongi:~#] ls -la ~/.mozilla/
total 2
drwx------  4 jongi jongi  128 2008-02-17 08:33 .
drwx------ 48 jongi jongi 2128 2008-02-17 08:25 ..
drwx------  3 jongi jongi  104 2008-02-16 08:02 extensions
drwx------  2 jongi jongi  112 2008-02-14 23:02 firefox
lrwxrwxrwx  1 jongi jongi  35 2008-02-17 08:33 plugins -> /usr/lib64/mozilla/plugins-wrapped/
[jongi:~#] ls -la ~/.mozilla/plugins/
total 1177
drwxr-xr-x 2 root root    864 2008-02-16 16:09 .
drwxr-xr-x 5 root root    136 2008-01-28 15:12 ..
lrwxrwxrwx 1 root root    43 2008-02-14 23:39 libjavaplugin.so -> /usr/lib64/mozilla/plugins/libjavaplugin.so
lrwxrwxrwx 1 root root    39 2008-02-14 23:39 npwrapper.so -> /usr/lib64/nspluginwrapper/npwrapper.so
-rwxr-xr-x 1 root root  83200 2008-02-16 09:20 nswrapper_32_64.libflashplayer.so
-rwxr-xr-x 1 root jongi 83200 2008-02-16 09:20 nswrapper_32_64.mozplugger.so
-rwxr-xr-x 1 root jongi 83200 2008-02-16 09:20 nswrapper_32_64.mplayerplug-in-dvx.so
-rwxr-xr-x 1 root jongi 83200 2008-02-16 09:20 nswrapper_32_64.mplayerplug-in-qt.so
-rwxr-xr-x 1 root jongi 83200 2008-02-16 09:20 nswrapper_32_64.mplayerplug-in-rm.so
-rwxr-xr-x 1 root jongi 83200 2008-02-16 09:20 nswrapper_32_64.mplayerplug-in.so
-rwxr-xr-x 1 root jongi 83200 2008-02-16 09:20 nswrapper_32_64.mplayerplug-in-wmp.so
-rwxr-xr-x 1 root jongi 83200 2008-02-16 16:09 nswrapper_32_64.nppdf.so
-rwxr-xr-x 1 root root  83200 2008-02-16 09:20 nswrapper_64_64.mozplugger.so
-rwxr-xr-x 1 root root  83200 2008-02-16 09:20 nswrapper_64_64.mplayerplug-in-dvx.so
-rwxr-xr-x 1 root root  83200 2008-02-16 09:20 nswrapper_64_64.mplayerplug-in-qt.so
-rwxr-xr-x 1 root root  83200 2008-02-16 09:20 nswrapper_64_64.mplayerplug-in-rm.so
-rwxr-xr-x 1 root root  83200 2008-02-16 09:20 nswrapper_64_64.mplayerplug-in.so
-rwxr-xr-x 1 root root  83200 2008-02-16 09:20 nswrapper_64_64.mplayerplug-in-wmp.so

This is all on Fedora 8 x86_64 using swiftfox v2.0.0.13pre. I'm using icedtea Java btw.

Jongi 02-19-2008 01:37 PM

So after some time, it struck me. Why not load it up from the console and see if any error messages appear. Sure as Bob there we have them:

Code:

LoadPlugin: failed to initialize shared library /usr/lib64/nspluginwrapper/npwrapper.so [/usr/lib64/nspluginwrapper/npwrapper.so: wrong ELF class: ELFCLASS64]
LoadPlugin: failed to initialize shared library /usr/lib/jvm/java-1.7.0-icedtea-1.7.0.0.x86_64/jre/lib/amd64/gcjwebplugin.so [/usr/lib/jvm/java-1.7.0-icedtea-1.7.0.0.x86_64/jre/lib/amd64/gcjwebplugin.so: wrong ELF class: ELFCLASS64]
LoadPlugin: failed to initialize shared library /usr/lib64/mozilla/plugins-wrapped/nswrapper_32_64.libflashplayer.so [/usr/lib64/mozilla/plugins-wrapped/nswrapper_32_64.libflashplayer.so: wrong ELF class: ELFCLASS64]
LoadPlugin: failed to initialize shared library /usr/lib64/nspluginwrapper/npwrapper.so [/usr/lib64/nspluginwrapper/npwrapper.so: wrong ELF class: ELFCLASS64]
LoadPlugin: failed to initialize shared library /usr/lib/jvm/java-1.7.0-icedtea-1.7.0.0.x86_64/jre/lib/amd64/gcjwebplugin.so [/usr/lib/jvm/java-1.7.0-icedtea-1.7.0.0.x86_64/jre/lib/amd64/gcjwebplugin.so: wrong ELF class: ELFCLASS64]
LoadPlugin: failed to initialize shared library /usr/lib64/mozilla/plugins-wrapped/nswrapper_32_64.libflashplayer.so [/usr/lib64/mozilla/plugins-wrapped/nswrapper_32_64.libflashplayer.so: wrong ELF class: ELFCLASS64]
LoadPlugin: failed to initialize shared library /usr/lib/jvm/java-1.7.0-icedtea-1.7.0.0.x86_64/jre/lib/amd64/gcjwebplugin.so [/usr/lib/jvm/java-1.7.0-icedtea-1.7.0.0.x86_64/jre/lib/amd64/gcjwebplugin.so: wrong ELF class: ELFCLASS64]
LoadPlugin: failed to initialize shared library /usr/lib/jvm/java-1.7.0-icedtea-1.7.0.0.x86_64/jre/lib/amd64/gcjwebplugin.so [/usr/lib/jvm/java-1.7.0-icedtea-1.7.0.0.x86_64/jre/lib/amd64/gcjwebplugin.so: wrong ELF class: ELFCLASS64]
LoadPlugin: failed to initialize shared library /usr/lib64/nspluginwrapper/npwrapper.so [/usr/lib64/nspluginwrapper/npwrapper.so: wrong ELF class: ELFCLASS64]
LoadPlugin: failed to initialize shared library /usr/lib/jvm/java-1.7.0-icedtea-1.7.0.0.x86_64/jre/lib/amd64/gcjwebplugin.so [/usr/lib/jvm/java-1.7.0-icedtea-1.7.0.0.x86_64/jre/lib/amd64/gcjwebplugin.so: wrong ELF class: ELFCLASS64]
LoadPlugin: failed to initialize shared library /usr/lib/jvm/java-1.7.0-icedtea-1.7.0.0.x86_64/jre/lib/amd64/gcjwebplugin.so [/usr/lib/jvm/java-1.7.0-icedtea-1.7.0.0.x86_64/jre/lib/amd64/gcjwebplugin.so: wrong ELF class: ELFCLASS64]


Jongi 02-20-2008 04:10 PM

Ha. Figured this mother out.

Went to this site

Downloaded the Linux self-extracting file under Linux Platform - Java(TM) SE Runtime Environment 6 to my home directory

As root I then did,

Code:

# cd /opt
# cp /home/<user>/jre-6-linux-i586.bin .
# chmod +x jre-6-linux-i586.bin
# ./jre-6-linux-i586.bin
# cd /home/<user>/.mozilla/plugins (you might not have this folder so you you might need to create it
# ln -s /opt/jre1.6.0/plugin/i386/ns7/libjavaplugin_oji.so libjavaplugin_oji.so

And that is how I got Java to work in Swiftfox under x86_64.

javaunixsolaris 03-09-2009 11:44 PM

Thanks Jongi for taking the time to post your solution. I just did this today, it's great to have Java working(:


All times are GMT -5. The time now is 12:23 PM.