LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Unable to get Java to work in Firefox3 (https://www.linuxquestions.org/questions/linux-software-2/unable-to-get-java-to-work-in-firefox3-675630/)

xdunlapx 10-11-2008 02:17 AM

Unable to get Java to work in Firefox3
 
I cannot get java to be recognised in FF3. I've installed it several different ways, apt-get, website, several versions, etc. No-go.

There were no errors shown when installing java.

Can someone please help me figure out why it's not working?

I'm using Fluxbuntu 7.10.

xdunlapx

AuroraCA 10-12-2008 10:58 AM

Are you running 32 bit (i386) or 64 bit (AMD64) Fluxbuntu?

It does appear that the only version of Fluxbuntu is a release candidate and not a stable release.

xdunlapx 10-12-2008 05:12 PM

I'm using 32-bit fluxbuntu.

jay73 10-12-2008 05:33 PM

Can you post the output of java -version?

xdunlapx 10-12-2008 10:35 PM

java -version
 
java version "1.7.0"
IcedTea Runtime Environment (build 1.7.0-b21)
IcedTea Server VM (build 1.7.0-b21, mixed mode)

John VV 10-12-2008 10:46 PM

you may need to link the java plugin to your firefox3 plugin folder
i am not sure where it is on " Fluxbuntu " but for fedora8 it is
/usr/lib/jvm/jre-1.7.0-icedtea/lib/i386/gcjwebplugin.so
then start FF and type into the address bar
Code:

about:plugins
and you will get a list of installed plugins
-- excerpt --
Quote:

...
GCJ Web Browser Plugin 1.4

File name: /usr/lib/jvm/java-1.7.0-icedtea-1.7.0.0/jre/lib/i386/gcjwebplugin.so
The GCJ Web Browser Plugin executes Java applets.
...

xdunlapx 10-13-2008 01:00 AM

Tried
 
I tried that, but whenever I went to http://www.java.com/en/download/installed.jsp and clicked 'verify java version' button, FF immediately crashed.

I have FF 2.0.0.17 and 3.0a8 (Gran Paridiso beta). Both browsers immediately crash-killed at that verify site.

I them removed the java.so from the plugins folder and retried, no crash, but it doesn't detect I have java installed.

Contents of ~/.mozilla/plugins:
flashplayer.xpt libflashplayer.so

It seems I have two versions of java installed...?

Code:

j2se 1.4
/usr/lib/j2se/1.4/jre/plugin/i386/mozilla

libjavaplugin_oji.so

java-7-icedtea
/usr/lib/jvm/java-7-icedtea/jre/lib/i386

client            libj2pkcs11.so      libnet.so
headless          libjaas_unix.so      libnio.so
jli                libjava.so          libnpt.so
jvm.cfg            libjava_crw_demo.so  librmi.so
libattach.so      libjawt.so          libsaproc.so
libawt.so          libjdwp.so          libsplashscreen.so
libdcpr.so        libjpeg.so          libunpack.so
libdt_socket.so    libjsig.so          libverify.so
libfontmanager.so  libjsound.so        libzip.so
libhprof.so        libjsoundalsa.so    native_threads
libinstrument.so  libjsoundhs.so      server
libioser12.so      liblcms.so          xawt
libj2gss.so        libmanagement.so
libj2pcsc.so      libmlib_image.so

Any ideas how to get FF2 and FF3beta to understand and use java?

Thanks in advance!

jay73 10-13-2008 12:04 PM

Install sun-java6-jre and galternatives. Use the latter to switch java and the firefox and xulrunner java plugins to the sun java plug-in.

xdunlapx 10-13-2008 12:32 PM

Quote:

Originally Posted by jay73 (Post 3308825)
Install sun-java6-jre and galternatives. Use the latter to switch java and the firefox and xulrunner java plugins to the sun java plug-in.

That did not work for either browser (FF2 or 3beta).

Ugh. This is so frustrating.

jay73 10-13-2008 12:42 PM

Try sudo update-alternatives --config java

Quote:

jurgen@Selena:~$ sudo update-alternatives --config java
[sudo] password for jurgen:

There are 2 alternatives which provide `java'.

Selection Alternative
-----------------------------------------------
+ 1 /usr/lib/jvm/java-6-sun/jre/bin/java
* 2 /opt/jdk1.6.0_10rc/bin/java

Press enter to keep the default[*], or type selection number:
You may also want to remove any java providers other than the one from sun.

xdunlapx 10-13-2008 08:40 PM

I tried all of that. No luck.

I wonder what is wrong??

I removed all other instances of java, reinstalled it, did the config stuff, rebooted, and it still doesn't work.

:sigh:

craigevil 10-13-2008 08:51 PM

apt-get install sun-java6-plugin sun-java6-jre sun-java6-bin
then run update-alternatives --config java and choose sun-java

If none of that works, how did you install firefox? Using apt-/synaptic or are you using the Mozilla firefox? If your using the Mozilla Firefox and not the version available in your repos you need to link or copy the plugins to the appropriate dir.

xdunlapx 10-13-2008 09:00 PM

Problem Solved!
 
***Installing sun-java6-plugin worked!! Thank you for your help, all of you!!***

I installed firefox via apt-get as fluxbuntu comes with a japanese browser (kazehakase) that is quite stripped down and I did not like it.

I'm using both Mozilla Firefox 2.0.0.17 and Firefox Gran Paradiso 3.0a8.


All times are GMT -5. The time now is 06:46 AM.