LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 11-24-2004, 12:36 AM   #1
tvn
Member
 
Registered: Mar 2004
Posts: 96

Rep: Reputation: 15
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, aboutlugins 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
 
Old 11-24-2004, 01:35 AM   #2
anurup
LQ Newbie
 
Registered: Nov 2004
Location: India
Distribution: Fedora Core 4 Test 3
Posts: 14

Rep: Reputation: 0
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)
 
Old 11-24-2004, 01:58 AM   #3
daihard
Member
 
Registered: Jul 2003
Location: Seattle, WA
Distribution: Kubuntu 14.04 LTS
Posts: 915

Rep: Reputation: 34
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.
 
Old 11-24-2004, 05:52 PM   #4
tvn
Member
 
Registered: Mar 2004
Posts: 96

Original Poster
Rep: Reputation: 15
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.
 
Old 11-24-2004, 06:13 PM   #5
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
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
 
Old 11-24-2004, 07:42 PM   #6
daihard
Member
 
Registered: Jul 2003
Location: Seattle, WA
Distribution: Kubuntu 14.04 LTS
Posts: 915

Rep: Reputation: 34
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?
 
Old 08-23-2006, 04:42 AM   #7
ssnkumar
LQ Newbie
 
Registered: Mar 2004
Location: Bangalore
Posts: 26

Rep: Reputation: 15
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
 
Old 08-23-2006, 05:11 AM   #8
odcheck
Member
 
Registered: Aug 2006
Distribution: Fedora, CentOS, RHEL, Debian
Posts: 978

Rep: Reputation: 31
@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.
 
Old 08-23-2006, 06:24 AM   #9
ssnkumar
LQ Newbie
 
Registered: Mar 2004
Location: Bangalore
Posts: 26

Rep: Reputation: 15
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:
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>
 
Old 10-18-2007, 09:03 AM   #10
malviyamahendra
LQ Newbie
 
Registered: Oct 2007
Posts: 1

Rep: Reputation: 0
Post 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
 
Old 04-15-2010, 02:13 AM   #11
iambrucelee
LQ Newbie
 
Registered: May 2009
Posts: 4

Rep: Reputation: 4
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

Last edited by iambrucelee; 04-15-2010 at 02:14 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't type in Java applet using Firefox? JamieBrown Linux - Software 12 07-26-2010 01:52 AM
Firefox 1.0.1 and Java 1.5 plugin: no go Kropotkin Linux - Software 8 03-19-2005 01:01 PM
Java Plugin for Firefox wiskic10_4 Linux - Software 3 12-17-2004 08:09 PM
java plugin for firefox wi_slacker Slackware 14 05-29-2004 02:06 PM
KDE W/ java doesn't display popup applet correctly gdsylvester Linux - Software 2 01-06-2004 11:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration