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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
03-30-2004, 06:03 PM
|
#1
|
Member
Registered: Mar 2004
Location: Netherland
Distribution: Fedora Core 2, Mandrake10.0
Posts: 62
Rep:
|
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
|
|
|
03-30-2004, 06:37 PM
|
#2
|
Member
Registered: Mar 2004
Location: US
Distribution: Redhat 9 - Linux 2.6.3
Posts: 836
Rep:
|
I would recommend www.google.com
|
|
|
03-30-2004, 06:47 PM
|
#3
|
Member
Registered: Mar 2004
Posts: 41
Rep:
|
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.
|
|
|
03-30-2004, 07:35 PM
|
#4
|
Member
Registered: Feb 2004
Location: NYC
Distribution: Suse Linux 9.3 Pro Red Hat 9 (long ago)
Posts: 37
Rep:
|
rename
Try renaming the files to just ***.so
*** means the normal file name without oji
|
|
|
03-31-2004, 12:41 AM
|
#5
|
Member
Registered: Mar 2004
Location: Netherland
Distribution: Fedora Core 2, Mandrake10.0
Posts: 62
Original Poster
Rep:
|
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
|
|
|
03-31-2004, 03:51 AM
|
#6
|
Member
Registered: Jan 2004
Location: Auckland, New Zealand
Distribution: Ubuntu
Posts: 686
Rep:
|
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.
|
|
|
03-31-2004, 09:37 AM
|
#7
|
Member
Registered: Aug 2003
Location: raleigh
Distribution: Gentoo 2005.1 x86_64
Posts: 931
Rep:
|
|
|
|
03-31-2004, 11:04 AM
|
#8
|
Senior Member
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679
Rep:
|
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.
|
|
|
03-31-2004, 12:20 PM
|
#9
|
Member
Registered: Jan 2004
Distribution: Slackware 10 ; Gentoo ; OpenBSD 3.6
Posts: 101
Rep:
|
http://plugindoc.mozdev.org/linux.html
This site is a pretty good resource for mozilla plugins
|
|
|
03-31-2004, 03:22 PM
|
#10
|
Member
Registered: Jan 2004
Location: Auckland, New Zealand
Distribution: Ubuntu
Posts: 686
Rep:
|
"never copy the file"
Sorry, I used te wrong wording.
|
|
|
03-31-2004, 03:40 PM
|
#11
|
Senior Member
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679
Rep:
|
Quote:
Originally posted by beejayzed
"never copy the file"
Sorry, I used te wrong wording.
|
So you got it?
|
|
|
All times are GMT -5. The time now is 06:10 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|