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
 
LinkBack Search this Thread
Old 05-10-2005, 01:53 PM   #1
JockVSJock
Member
 
Registered: Jan 2004
Posts: 602

Rep: Reputation: 31
How to install Java Virtual Machine for Mozilla?


Running the almighty Slackware w/Mozilla 1.7.7 and I'm trying to get JVM up and running so I can check and send email via a web based Lotus Notes that has java.

-I'm putting the jvm under .mozilla/plugins

-Turn it into ./ by chmod u+x

-Then ./the bin file...

What else do I need to do to get it working ok. It still isn't showing up in the plugins.

thanks
 
Old 05-10-2005, 03:14 PM   #2
Ice9
Member
 
Registered: Jun 2002
Location: Belgium
Distribution: Sidux
Posts: 313

Rep: Reputation: 30
You need to first install the java runtime and then create a symbolic link for libjavaplugin_oji.so into your Mozilla plugins directory.

There are detailed instructions on how to do this on my linux tips page, scroll down to a little below the middle of the page.
I wrote this some time ago and I was using I don't remember what version of RH back then but the jre install is quite similar on every distro.
 
Old 05-10-2005, 03:16 PM   #3
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Install it somewhere else and make a symbolic link pointing at jre1.5.*/plugin/i386/ns7/libjavaplugin_oji.so from ~/.mozilla/plugins
 
Old 05-10-2005, 06:50 PM   #4
JockVSJock
Member
 
Registered: Jan 2004
Posts: 602

Original Poster
Rep: Reputation: 31
For some reason under my /home/.mozilla/plugins, I can't delete this directory:

jre1.5.0_02

It has the following directory

.systemPrefs

And it won't let me delete it.

Other than that I've create a directory in my home directory call .java and then have created soft links that link to the plugins directory under .mozilla but they still are not working.
 
Old 05-20-2005, 10:16 AM   #5
JockVSJock
Member
 
Registered: Jan 2004
Posts: 602

Original Poster
Rep: Reputation: 31
***bump***

Still not getting the results that I need here, any ideas or help would be great.

thanks
 
Old 05-20-2005, 10:51 AM   #6
Nobber
Member
 
Registered: Jun 2002
Location: Nova Scotia
Distribution: Debian (home), Kubuntu 7.04 (work)
Posts: 265

Rep: Reputation: 30
You haven't said whether you've tried creating a symbolic link in ~/.mozilla/plugins pointing to the libjavaplugin_oji.so supplied with your java runtime environment. That's the way to go.
 
Old 05-20-2005, 04:05 PM   #7
JockVSJock
Member
 
Registered: Jan 2004
Posts: 602

Original Poster
Rep: Reputation: 31
Quote:
Originally posted by Nobber
You haven't said whether you've tried creating a symbolic link in ~/.mozilla/plugins pointing to the libjavaplugin_oji.so supplied with your java runtime environment. That's the way to go.
libjavaplugin_oji.so is in /home/.mozilla/plugins, why would I have to create a softlink for it?
 
Old 05-20-2005, 05:11 PM   #8
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,732
Blog Entries: 12

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
Because it is not supposed to be in the plugin directory. From Mozilla.


Java Runtime Environment
1. Install Java Runtime Environment.
2. Make a symbolic link to libjavaplugin_oji.so in your Mozilla Plugins directory. Unless you are using an old version of Mozilla, or one you compiled yourself with gcc 2.9x, use the copy located in the plugin/i386/ns7 directory of JRE 5.0, or plugin/i386/ns610-gcc32 if you are using JRE 1.4.2.

"Do not copy the plugin to your plugs directory. If you do, Mozilla will crash any time you attempt to view a page containing a Java applet. " http://plugindoc.mozdev.org/linux.html


"On Linux, Mozilla requires JRE 1.4.2 or later.
Mozilla 1.4 and later, and Mozilla Firefox, are compiled with gcc 3.x. A gcc 3.x compatible version of the Java plugin must be used. JRE 1.4.2 and later contain a compatible plugin.

If you installed the JRE 5.0 RPM, this plugin is /usr/java/j2re1.5.0/plugin/i386/ns7/libjavaplugin_oji.so - and to install it for Mozilla (including Mozilla Firefox), do the following:

* Open a terminal
* Change to your Mozilla (or Mozilla Firefox) plugins directory
* Issue the following command: ln -s /usr/java/j2re1.5.0/plugin/i386/ns7/libjavaplugin_oji.so

Important! If you install your JRE in a different way (self extracting package, debian package, etc), libjavaplugin_oji.so will quite likely be in a different location. Do not just blindly use the command listed above!

Note: In JRE 1.4.2, this file was in plugin/i386/ns610-gcc32

Important! Always make a symbolic link, as shown above, instead of copying the plugin. If you copy the plugin, your browser will crash every time you open a page containing a Java applet. You have been warned!

If you are using an older Linux distribution, you may need to install the gcc3 support libraries, as the gcc 3.2 version of the Java plugin requires libgcc_s.so.1 to operate. You may be able to find packages using Google.

If you are using an old or unofficial build of Mozilla (1.4a or later) or Mozilla Firefox, you can check which compiler was used by entering about:buildconfig in the location bar and pressing enter. You will see a line such as "gcc version 3.3.2", which will show the compiler that was used. If gcc2.9x was used, you need to use the ns7-gcc29 or ns610 plugin, not the ns7 or ns610-gcc32 plugin."
http://plugindoc.mozdev.org/faqs/java.html

Last edited by craigevil; 05-20-2005 at 05:13 PM.
 
Old 05-26-2005, 10:10 AM   #9
JockVSJock
Member
 
Registered: Jan 2004
Posts: 602

Original Poster
Rep: Reputation: 31
Ok, I think I really messed up this time...

I've got alot of junk under /.mozilla/plugins...and I'm not sure what I need to keep and get rid of

Code:
ls -a

.
..
classic
client
flashplayer.xpt
green_threads
hotspot
install_flash_player_7_linux.tar
jre1.5.0_02
libJdbcOdbc.so
libagent.so
libawt.so
libcmm.so
libdcpr.so
libdt_socket.so
libflashplayer.so
libfontmanager.so
libhprof.so
libioser12.so
libjava.so
libjavaplugin_jni.so
libjavaplugin_oji.so
libjawt.so
libjcov.so
libjdwp.so
libjpeg.so
libjsound.so
libmlib_image.so
libnet.so
libpreemptive_close.so
libverify.so
libzip.so
native_threads
server
Do I only want to get rid of the .so files and then create the softlinks to this directory? I want to ask this question before I screw it up further...

thanks
 
Old 05-26-2005, 10:37 AM   #10
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,732
Blog Entries: 12

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
If it helps I only have two files in my .mozilla/plugins directory.
nphelix.xpt
nphelix.so

The plugins that I have installed for Firefox are listed in /usr/lib/mozilla-firefox/plugins
Plugins (7):
* Helix DNA Plugin: RealPlayer G2 Plug-In Compatible
* DjVuLibre-3.5.14
* QuickTime Plug-in 6.0, Windows Media Player Plugin are supported by mplayerplug-in
* Shockwave Flash
* MozPlugger 1.7.1
* Adobe Reader 7.0
* Java(TM) Plug-in 1.4.2_06-b03

My java plugin is in /usr/lib/j2re1.4-sun/plugin/i386/ns610-gcc32/libjavaplugin_oji.so

None of this probably helps. I have never had to create symlinks. apt-get install seems to do it automatically.

Last edited by craigevil; 05-26-2005 at 12:19 PM.
 
Old 05-26-2005, 11:16 AM   #11
JockVSJock
Member
 
Registered: Jan 2004
Posts: 602

Original Poster
Rep: Reputation: 31
When trying to create the following softlink, I get the following error:

ln './libjavaplugin_oji.so': File exist


I only have the following under /.mozilla/plugins

flashplayer.xpt
libflashplayer.so
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Java Virtual Machine nodnarb Linux - Software 1 07-19-2004 04:41 PM
How to install java virtual machine package with apt-get? davidas Debian 5 04-15-2004 11:48 PM
how can i install java virtual machine red hat-ziggis Linux - Software 1 10-23-2003 12:43 PM
Anyone Know where I can get a Java Virtual Machine? pmorkert Linux - Software 2 07-29-2003 11:17 PM
Java Virtual Machine beajedi Linux - Newbie 4 07-09-2003 01:31 AM


All times are GMT -5. The time now is 04:32 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