Java plugin installed correctly for Firefox but not able to view any java applet
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Java on Linux with Mozilla/Firefox has too many issues to pinpoint what your problem is. You could try the following though. No promises on these however.
1) Try SDK or JRE 1.5.0. As you must be knowing, your Java plugin and your browser would need to be compiled with the same major version of gcc. This is the single most important reason for Java refusing to work on Linux browsers. Firefox runs applets (reasonably) well using the 1.5.0 release
2) Remove the pluginreg.dat from your Firefox directory and restart Firefox. (You can try this with your current version of Java too just to ensure that the Java plugin info is registered correctly with your browser. Often this is not the case in spite of Firefox showing all the plugins in aboutlugins)
Both JRE 1.4.2 and 1.5.0 should work fine with Firefox 1.0 as long as you symlink the correct plugin file. The OP indicates he's using the GCC-3.2 version, which seems correct to me. His "about:plugin" screen shows Java as a valid plugin, too, as far as I can tell.
At this point, I'd suspect the "enable Java" option may be turned off. Go to Edit/Preferences, choose "Web Features" and make sure "Enable Java" is checked.
Originally posted by daihard
At this point, I'd suspect the "enable Java" option may be turned off. Go to Edit/Preferences, choose "Web Features" and make sure "Enable Java" is checked.
Enable Java is already checked. The strange part is I do see a broken gray shade with a red x, like a broken java applet. Normally if I don't have java plugin, then nothing will show.
Originally posted by tvn Enable Java is already checked. The strange part is I do see a broken gray shade with a red x, like a broken java applet. Normally if I don't have java plugin, then nothing will show.
Is that the only Web site you have trouble viewing Java applets on? Or do no other Java applets work?
Is that the only Web site you have trouble viewing Java applets on? Or do no other Java applets work?
I am also facing similar problem.
I get Java runtime error, when I load any webpage with java contents.
I tried this on both firefox and opera.
Both report the same problem.
But, if I run firefox as root user, I don't get this problem!
@ssnkumar I think you installed the java not in an user accessible location.
And like Brian1 said
/usr/java/jre1.5.0/plugin/i386/ns7/libjavaplugin_oji.so this "so" file must be linked using the "ln" command to your firefox plugin dir.
Sometimes there are funny mistakes that can happen.
I thought I did everything correctly even the symbolic link thing but
then I recognized that I linked it to an old path of previous firefox install dir.
Now I learned that I have to update this link everytime I update my firefox.
/usr/lib/firefox-1.5.0.1/plugins/ this was my old dir where I had to link the "blahfassel..so - file" to. and now It's /usr/lib/firefox-1.5.0.6/plugins/
maybe this hint helps.
@ssnkumar I think you installed the java not in an user accessible location.
And like Brian1 said
/usr/java/jre1.5.0/plugin/i386/ns7/libjavaplugin_oji.so this "so" file must be linked using the "ln" command to your firefox plugin dir.
Sometimes there are funny mistakes that can happen.
I thought I did everything correctly even the symbolic link thing but
then I recognized that I linked it to an old path of previous firefox install dir.
Now I learned that I have to update this link everytime I update my firefox.
/usr/lib/firefox-1.5.0.1/plugins/ this was my old dir where I had to link the "blahfassel..so - file" to. and now It's /usr/lib/firefox-1.5.0.6/plugins/
maybe this hint helps.
Here is the screen dump showing the link and also the permissions of the target file:
googollugins> pwd
/home/ns158690/.mozilla/plugins
googollugins> ls -l libjavaplugin_oji.so
lrwxrwxrwx 1 ns158690 staff 78 Aug 23 13:48 libjavaplugin_oji.so -> /usr/dist/share/java,v1.5.0/5.x-i86pc/jre/plugin/i386/ns7/libjavaplugin_oji.so
googollugins> ls -l /usr/dist/share/java,v1.5.0/5.x-i86pc/jre/plugin/i386/ns7/libjavaplugin_oji.so
-rwxr-xr-x 1 softdist softdist 101816 Sep 15 2004 /usr/dist/share/java,v1.5.0/5.x-i86pc/jre/plugin/i386/ns7/libjavaplugin_oji.so
googollugins>
I'm new in java under linux platform.
My all java programs are running succesfully ???
But I'm unable to view my applet. I have both Mozilla firefox as well as seamonkey browser.. as soon as i start my applet it is dispalying the height and width .. but at the same time it is asking for the plugins....
plz tell me what plugin should i install to run applet....
I'm adding to this post for anyone that comes across this, while trying to install the sun java plugin on firefox 3.6. (as I did)
In your .mozilla (/home/bob/.mozilla/plugins/) directory you need to add a softlink to 'libnpjp2.so'. If the plugins directory is not there, create it. The old plugin (javaplugin-oji.so) has been deprecated.
On a Redhat 5.4 server, here's what it looks like. (installed java from an RPM from Sun's website)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.