Ticket #512 (new defect)

Opened 4 years ago

Last modified 4 years ago

Firefox Linux - ClassNotFoundException

Reported by: kmaclean Owned by: kmaclean
Priority: major Milestone:
Component: SpeechSubmission Version: Website 0.2
Keywords: Cc:

Description (last modified by kmaclean) (diff)

Get Application Error: ClassNotFoundException? speechrecorder.RecorderApplet?.class when tryin to run VF speechSubmission applet in Firefox 38.05

Exception in thread "CacheCleanUpThread" java.lang.NullPointerException
	at com.sun.deploy.cache.CleanupThread.getCacheResourceFiles(Unknown Source)
	at com.sun.deploy.cache.CleanupThread.getCurrentCacheSize(Unknown Source)
	at com.sun.deploy.cache.CleanupThread.run(Unknown Source)

Works in Seamonkey v 2.33.1

Change History

comment:1 Changed 4 years ago by kmaclean

using jdk-8u5-linux-x64.rpm and firefox x86_64 version 38.0.5

upgraded to jdk-8u66-linux-x64.rpm... no change

Last edited 4 years ago by kmaclean (previous) (diff)

comment:2 Changed 4 years ago by kmaclean

https://en.wikipedia.org/wiki/IcedTea

IcedTea? is a build and integration project for OpenJDK launched by Red Hat in June 2007.[1] IcedTea?-Web is a free software implementation of Java Web Start and the Java web browser plugin. IcedTea?-Sound is a collection of plugins for the Java sound subsystem, including the PulseAudio? provider which used to be included with IcedTea?.

comment:3 Changed 4 years ago by kmaclean

from: http://forums.fedoraforum.org/showthread.php?t=292632

  1. What is installed?

(This is for a x86_64 machine)

rpm -qa | grep jre # jre-1.7.0_40-fcs.x86_64

# check www.java.com # download newest

# last_jre: jre1.7.0_45

sudo rpm -Uvh jre-7u45-linux-x64.rpm

  1. The alternative part

# check which java is set sudo /usr/sbin/alternatives --config java

# check which plugin is set sudo /usr/sbin/alternatives --config libjavaplugin.so.x86_64

# if /usr/sbin/alternatives shows a wrong item remove it sudo /usr/sbin/alternatives --remove libjavaplugin.so.x86_64 /usr/java/jre1.7.0_40/lib/amd64/libnpjp2.so

# install the newest one sudo /usr/sbin/alternatives --install /usr/lib64/mozilla/plugins/libjavaplugin.so libjavaplugin.so.x86_64 /usr/java/jre1.7.0_45/lib/amd64/libnpjp2.so 1

Note: Remember, you've got to check alternatives --config java and alternatives --config libjavaplugin.so.x86_64 everytime you update java-1.7.0-openjdk and switch it back to java (oracle).

comment:4 Changed 4 years ago by kmaclean

  • Description modified (diff)

comment:5 Changed 4 years ago by kmaclean

this does not work: (from: http://snatverk.blogspot.ca/2015/06/enable-java-plugin-in-firefox-fedora-21.html)

 Enabling Java plugin in Firefox (Fedora 21)
If you have a local Java version installed is straightforward to configure the plugin for Firefox.

$ cd ~/.mozilla/plugins
$ ln -s /home/juan/bin/jdk1.7.0_79/jre/lib/amd64/libnpjp2.so


Then we open Firefox and verify the Java version. In Fedora, there is a problem with SeLinux. You can disabled it manually.

$ sudo setenforce 0

and then you can check if Java is working (https://www.java.com/verify).

when go to https://www.java.com/en/download/installed.jsp

get this error:

FailedDownloadExceptions
Unable to load resource
https://www.java.com/qa/applet/verify/JavaDetection.jar
Last edited 4 years ago by kmaclean (previous) (diff)

comment:7 Changed 4 years ago by kmaclean

Firefox: Type about:plugins in the Location bar to confirm that the Java Plugin is loaded.

Java(TM) Plug-in 11.66.2

    File: libnpjp2.so
    Path: /usr/java/jdk1.8.0_66/jre/lib/amd64/libnpjp2.so
    Version: 11.66.2
    State: Enabled
    Next Generation Java Plug-in 11.66.2 for Mozilla browsers
Note: See TracTickets for help on using tickets.