LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Java plugin installed correctly for Firefox but not able to view any java applet (http://www.linuxquestions.org/questions/linux-software-2/java-plugin-installed-correctly-for-firefox-but-not-able-to-view-any-java-applet-258648/)

tvn 11-24-2004 12:36 AM

Java plugin installed correctly for Firefox but not able to view any java applet
 
Java's SDK 1.4.2_06 added to path, able to exec java, compile java apps fine. Firefox's plugin path has libjavaplugin_oji.so -> $java_path/jre/plugin/i386/ns610-gcc32/libjavaplugin_oji.so

in Firefox, about:plugins shows table contains java entries look just fine.

However, not able to view any java applet , e.g at this page


http://java.sun.com/docs/books/tutor...ofapplets.html





It shows up as a blank applet with a red X .


Suggestions ? Thanks

anurup 11-24-2004 01:35 AM

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 about:plugins)

daihard 11-24-2004 01:58 AM

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.

tvn 11-24-2004 05:52 PM

Quote:

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.

Brian1 11-24-2004 06:13 PM

My libjavaplugin_oji.so plugin under Firefox plugins is a soft link to file:/usr/java/jre1.5.0/plugin/i386/ns7/libjavaplugin_oji.so

No problem viewing the page.
Brian1

daihard 11-24-2004 07:42 PM

Quote:

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?

ssnkumar 08-23-2006 04:42 AM

Problem with java on firefox
 
Quote:

Originally Posted by daihard
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!

Any idea, what could be the problem?

Regards,
Narendra

odcheck 08-23-2006 05:11 AM

@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 08-23-2006 06:24 AM

Quote:

Originally Posted by odcheck
@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:
googol:plugins> pwd
/home/ns158690/.mozilla/plugins
googol:plugins> 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
googol:plugins> 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
googol:plugins>

malviyamahendra 10-18-2007 09:03 AM

unable to run applet
 
Hi all...

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....

plz help me out...
best of luck

With Best Regards

mahendra

iambrucelee 04-15-2010 02:13 AM

updated java instructions
 
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)

libnpjp2.so -> /usr/java/jre1.6.0_20/lib/i386/libnpjp2.so

heres the documentation from Sun:http://java.sun.com/javase/6/webnote...all-linux.html


Thanks


All times are GMT -5. The time now is 11:44 PM.