LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-16-2004, 12:51 PM   #1
coopns
Member
 
Registered: Jan 2004
Location: Scituate, MA
Distribution: Mandrake 10
Posts: 94

Rep: Reputation: 15
Default Java Plugin needed


Just visited a site and certain buttons weren't showing. I clicked on one and go the message....

This page contains info. of a type (application x java vm) that can only be viewed with the appropriate plug in.

Can someone 'Gently' point me in the right direction?

Thanks.
 
Old 02-16-2004, 12:57 PM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
visit www.java.sun.com , the home of Java if your distro/app doesn't provide you with any quick way to obtain the right file, then download the java runtime environment you need, the basic one, and install it...then just see your browser's help to get info on how to install java. usually it's just that you have to either copy or create symlink from java's file to your browser's plugin directory....

j2re (or whatever it was) should do, and if you use somekind of Mozilla, I guess Help-menu gives you what you need; locate the libjava-something.oji.so (was it that?) and symlink it to where/ever/your/browser/is/plugins/ and restart the bowser...

but first of all, you need to download the java file. I wonder if java.sun.com has help for you in their website?

Last edited by b0uncer; 02-16-2004 at 01:00 PM.
 
Old 02-16-2004, 07:03 PM   #3
coopns
Member
 
Registered: Jan 2004
Location: Scituate, MA
Distribution: Mandrake 10
Posts: 94

Original Poster
Rep: Reputation: 15
Thanks. I am on the site but not sure which one to download...

http://www.java.com/en/download/help/linux_install.jsp

t.he JRE v1.4.x is available in two installation formats.

* A self-extracting binary file, j2re-1_4_2_<version number>-linux-i586.bin which can be used to install the JRE in a location chosen by the user. If you are using this file, see Self-Extracting Binary.

* The file j2re-1_4_2_<version number>-linux-i586-rpm.bin that contains RPM packages comprising the JRE. If you are using this bundle, see Installation of RPM File.

I am awful at downloads, where they are going, how to extract them and the tar stuff. Please advise.

Thanks.
 
Old 02-17-2004, 01:41 PM   #4
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
hmm...if you're using a linux distro which can handle rmp packages, then I think you should obtain the rpm.bin -file. the bin is run in terminal like this (let's suppose you're in the same directory the file is in..)

Code:
./j2re-1_4_2_<version number>-linux-i586-rpm.bin
and, of course, if you aren't in the directory you downloaded it in, just type

Code:
/the/path/your/file/is/in/j2re-1_4_2_<version number>-linux-i586-rpm.bin
this should extract the rpm file for you, I guess. and possibly to the same directory you downloaded the bin-file...then just double-click the rpm or install it via terminal: "rpm -ivh j2re-1_4_2_<version number>-linux-i586-rpm" (without quotes, of course).

or, if you just want to get it installed and don't necessarily want to first extract & then install the rpm, download the first file (which doesn't have the rpm in it's filename) and open it via terminal:

Code:
./j2re-what-ever-the-name-is.bin
(that's if you're in the same directory the file is...and if you aren't then just use the full path name and don't start with the dot easy as that - just like I typed before)

this should install the necessary files quite automatically where they are needed...then just symlink the java-somethin.oji.so -file..don't remember it's exact name now. but install the bin-file first and I'll check out the filename/path you need to symlink the file in...
 
Old 02-17-2004, 09:45 PM   #5
PlatinumRik
Member
 
Registered: Feb 2003
Location: Buffalo, NY
Distribution: Novell Linux Desktop
Posts: 159

Rep: Reputation: 30
When ever i visit a site that requires java i get prompted by mozilla to install the plug in, i allow it to and it says it's a sucess. I restart the browser, even my computer, and still i get the same pop up and it appears that java hasn't been install. The site for testing purposes i was using was www.dameware.com.

and input will be helpful,

Rick
 
Old 02-18-2004, 08:08 AM   #6
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
hmm might it be that Mozilla did install the java (into your system) but didn't copy over the needed plugin file..? (if Plugins in your Mozilla's Help-menu doesn't show up any javasupport, then at least the file is missing).

and here's the guide on what to do, when you have installed java into your system, and you need to get your browser to "see" and use it:

1) if needed, update database and then locate the file we need ( libjavaplugin_oji.so) and browser's (mozilla here) plugin directory; in terminal, type

Code:
updatedb
locate libjavaplugin_oji.so
locate mozilla | grep plugin
first command updates database so we can find the files. the second one finds the java file we need (it can be, for example, in /usr/java/j2re1.4.2_03/plugin/i386/ns610-gcc32/ but this may vary) and the third one tells where the plugin dir of your browser is.

2) next (still in terminal) cd into your browser's plugin directory (path was located above):

Code:
cd /the/plugins/path/we/just/found
where you change the path to the one you found with locate.

3) when you're in it, symlink the .so file there as follows:

Code:
ln -s /the/path/to/the/javafile/we/found/libjavaplugin_oji.so
where the path is the one you found with locate above (the whole command could be like ln -s /usr/java/j2re1.4.2_03/plugin/i386/ns610-gcc32/libjavaplugin_oji.so if the file was in the given directory - it may vary depending on your settings so use the one you got with locate).

now after this we should have symlinked the libjavaplugin_oji.so to the plugin directory of the browser. next step is to close your browser and re-launch it - now open Mozilla's Help menu and see Plugins (this works for mozilla, but with other browsers you just have to see if all is right) and you should see line(s) telling you have java.

4) surf to a page which has java inside, and see if it works it really should.

EDIT: this is what the mozilla-dudes tell in their webpage: "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 contains a compatible plugin." it means that if you use M1.4 or Firefox, you need JRE1.4.2 or later or it won't work

hopefully you understood what I wrote...it got a bit long. but basic steps are just to find the file and symlink it to browser's plugin dir - easy, huh?

Last edited by b0uncer; 02-18-2004 at 08:11 AM.
 
Old 02-18-2004, 08:14 AM   #7
_KDF
Member
 
Registered: Oct 2003
Distribution: FC4/5 & RHEL4
Posts: 133

Rep: Reputation: 15
coopns, follow b0uncers instructions but after you download the file remember to

# chmod +x j2re-1_4_2_*-linux-i586-rpm.bin
 
Old 02-18-2004, 09:22 AM   #8
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
mm true it "might" cause some problems to try to run a file which isn't executable... heheh
 
  


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
Java plugin installed correctly for Firefox but not able to view any java applet tvn Linux - Software 10 04-15-2010 02:13 AM
Plugin needed for PCSX mykrob Linux - Software 3 04-26-2006 10:10 PM
firefox default plugin problems Xris718 Linux - General 6 11-04-2005 08:57 AM
java working, java plugin not provkitir *BSD 3 01-12-2005 05:49 PM
A very strange plugin needed RestInPieces Linux - Software 2 08-08-2004 05:05 PM


All times are GMT -5. The time now is 07:51 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration