LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 03-30-2004, 05:03 PM   #1
Schmurff
Member
 
Registered: Mar 2004
Location: Netherland
Distribution: Fedora Core 2, Mandrake10.0
Posts: 62

Rep: Reputation: 15
Question Howto run a java-applet in Mozilla?


Hi folks,

I'm running Mdk9.2, and I have some problems to find the right stuff for running a java-applet in Mozilla.
If I want to view something, the space in the webpage remains empty.
Clicking on it results in this message:

cannot find "application/x-java-vm".

Where can I find this, and how do I get it working properly?

Thnx in advance for your replies...

Schmurff
 
Old 03-30-2004, 05:37 PM   #2
AutOPSY
Member
 
Registered: Mar 2004
Location: US
Distribution: Redhat 9 - Linux 2.6.3
Posts: 836

Rep: Reputation: 31
I would recommend www.google.com
 
Old 03-30-2004, 05:47 PM   #3
mgatny
Member
 
Registered: Mar 2004
Location: Ann Arbor, MI
Distribution: Debian, SuSE
Posts: 41

Rep: Reputation: 15
Do you have the java plugin installed? You can check by typing this into mozilla:
about: plugins

What version of mozilla? Do you have a java installed?

If you already have java installed, you can use the plugin that came with it -- as long as it was built with the same version of gcc that was used to build mozilla. The name of this file is libjavaplugin_oji.so, and it needs to be placed in your mozilla plugins directory. Try searching from the command line:
locate libjavaplugin_oji.so

... and if java is installed, you should see several search results similar to this one:
/opt/j2re1.4.2_02/plugin/i386/ns610-gcc32/libjavaplugin_oji.so

Copy or symlink that file to your mozilla plugins directory, which might be something like /usr/lib/mozilla/plugins or /opt/mozilla/plugins.
 
Old 03-30-2004, 06:35 PM   #4
seanmaggs
Member
 
Registered: Feb 2004
Location: NYC
Distribution: Suse Linux 9.3 Pro Red Hat 9 (long ago)
Posts: 37

Rep: Reputation: 15
rename

Try renaming the files to just ***.so

*** means the normal file name without oji
 
Old 03-30-2004, 11:41 PM   #5
Schmurff
Member
 
Registered: Mar 2004
Location: Netherland
Distribution: Fedora Core 2, Mandrake10.0
Posts: 62

Original Poster
Rep: Reputation: 15
Hi folks,

Thnx for your replies. It confuses me: I thought that Mozilla could not run without Java, and that it was already available with Mandrake 9.2.
I tried to find the file that mgatny told me to look for, but there was nothing.
So I tried "locate *java*" and I found a lot of java files, mostly kjava.
Now, can I just download Sun's JRE 1.4.2 and install it on my computer to enable java applets to be run?

Kind regards,

Schmurff
 
Old 03-31-2004, 02:51 AM   #6
beejayzed
Member
 
Registered: Jan 2004
Location: Auckland, New Zealand
Distribution: Ubuntu
Posts: 686

Rep: Reputation: 30
Check if /usr/java/ directory is there and that it has something seful in it. If it's not there then you can download Sun's JRE. Once it's installed go to /usr/java/jre???/plugin/i386/ns610-gcc32(or similar). You'll find the plugin there. Copy this to /usr/lib/mozilla-1.6/plugins/ you'll probly wanna do this as root.
 
Old 03-31-2004, 08:37 AM   #7
doralsoral
Member
 
Registered: Aug 2003
Location: raleigh
Distribution: Gentoo 2005.1 x86_64
Posts: 931

Rep: Reputation: 31
use www.blackdown.org java
 
Old 03-31-2004, 10:04 AM   #8
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Rep: Reputation: 45
Just get Java 1.2.4 from Sun's page, install it where ever you want, and add something like this to your /etc/profile (these are my settings):

Maybe somehing like this already is there, just add what you need for Java:
Code:
if [ $LD_LIBRARY_PATH ]
then
  if ! set | grep LD_LIBRARY_PATH | grep /usr/X11R6/lib:/usr/X11R6/lib/modules:/usr/share/java/j2sdk1.4.2 > /dev/null
  then
    LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/X11R6/lib:/usr/X11R6/lib/modules:/usr/share/java/j2sdk1.4.2
    export LD_LIBRARY_PATH
  fi
else
  LD_LIBRARY_PATH=/usr/X11R6/lib:/usr/X11R6/lib/modules:/usr/share/java/j2sdk1.4.2
  export LD_LIBRARY_PATH
fi

PATH=$PATH:/usr/share/java/j2sdk1.4.2/jre/bin
Now just create a symlink (*never* copy the file!) of your desired plugin to Mozilla's installation directory, restart Mozilla, and you're ready.
 
Old 03-31-2004, 11:20 AM   #9
skel
Member
 
Registered: Jan 2004
Distribution: Slackware 10 ; Gentoo ; OpenBSD 3.6
Posts: 101

Rep: Reputation: 15
http://plugindoc.mozdev.org/linux.html

This site is a pretty good resource for mozilla plugins
 
Old 03-31-2004, 02:22 PM   #10
beejayzed
Member
 
Registered: Jan 2004
Location: Auckland, New Zealand
Distribution: Ubuntu
Posts: 686

Rep: Reputation: 30
"never copy the file"

Sorry, I used te wrong wording.
 
Old 03-31-2004, 02:40 PM   #11
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Rep: Reputation: 45
Quote:
Originally posted by beejayzed
"never copy the file"

Sorry, I used te wrong wording.
So you got it?
 
  


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
My molliza can't run java applet... bluesgone Fedora 4 07-22-2005 01:59 PM
mozilla & java run time environment(applet) shivaligupta Linux - Software 0 02-23-2005 09:28 AM
Java Applet and Mozilla crash ralzyoud Linux - Software 3 12-15-2004 02:48 PM
how to run java applet in linux vijaysh Linux - Software 3 07-11-2004 06:51 AM
Java Applet in Konqueror and Mozilla Ciccio Linux - General 4 12-10-2002 08:13 PM


All times are GMT -5. The time now is 01:22 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration