Need Help With Java Install
#1
Posted 17 November 2004 - 03:51 PM
Now, my problem is that when accessing many websites, I'm needing a Plugin for Firefox....for Java. I'm not sure how to go about downloading and installing Java. Also, not sure if this needs to be some sort of plugin associated with Firefox, or what.
Could someone please explain and give me a walk-through for downloading and installing Java, so it will be available for Firefox and anywhere else I may require it?
Thanks much,
zenarcher
#2
Posted 17 November 2004 - 04:16 PM
zenarcher
#3
Posted 17 November 2004 - 04:21 PM
Apparently, this is what I must do so Firefox can use the Java install, but not exactly sure how to do it..
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.
Thanks again,
zenarcher
#4
Posted 17 November 2004 - 06:20 PM
To find libjavaplugin_oji.so do:
find / -name libjavaplugin_oji.so
This starts from / and searches for file libjavaplugin_oji.so
Say it returns /foo/java/libjavaplugin_oji.so
Then, to do a symbolic link, goto the plugins folder (where ever it is the symlink needs to be) and type:
ln -s /foo/java/libjavaplugin_oji.so ./libjavaplugin_oji.so
BUT - I dont know what the name of the symlink should be (in this case its libjavaplugin_oji.so) which points to /foo/java/libjavaplugin_oji.so
#5
Posted 17 November 2004 - 06:53 PM
Here is what I got on the find:
[root@localhost zenarcher]# find / -name libjavaplugin_oji.so
/usr/lib/mozilla/plugins/libjavaplugin_oji.so
/usr/lib/jdk-1.4.2_05/jre/plugin/i386/ns610/libjavaplugin_oji.so
/usr/lib/jdk-1.4.2_05/jre/plugin/i386/ns610-gcc32/libjavaplugin_oji.so
/usr/java/jre1.5.0/plugin/i386/ns7/libjavaplugin_oji.so
/usr/java/jre1.5.0/plugin/i386/ns7-gcc29/libjavaplugin_oji.so
zenarcher
#6
Posted 17 November 2004 - 07:49 PM
You are on the right track already. The file you need is ..
<your_java_dir>/jre/plugins/i386/ns7/libjavaplugin_oji.so
As crazykillerman already suggested you can install the plugin by creating a symbolic link in the firefox-plugins folder in your home dir or you can install it into the main plugins folder of firefox. This directory is just where you installed firefox, e.g.: /usr/local/firefox/plugins.
Keep in mind that you _MUST_ use symbolic links (copying the file to the plugins folder will only give you trouble). Also note that if you link the java-plugin to the main plugins folder, everybody will have java-enabled by default. If you create the symlink in your home directory (~/.mozilla/plugins I think) only you will haveJava enabled.
hope that helps
#7
Posted 17 November 2004 - 08:00 PM
zenarcher
#8
Posted 17 November 2004 - 08:21 PM
/usr/lib/mozilla/plugins/libjavaplugin_oji.so
Goto this dir, and do ls -l
If the libjavaplugin_oji.so has an lrwxrwxrwx (note that the rwx's dont matter - l is important) it is already a symlink, and it should point to a location, if that location is one that you have found using the find command, try changing it with:
ln -s /foo/java/libjavaplugin_oji.so ./libjavaplugin_oji.so
In your case, for instance:
cd /usr/lib/mozilla/plugins/
mv ./libjavaplugin_oji.so ./libjavaplugin_oji.so.bak
ln -s /usr/java/jre1.5.0/plugin/i386/ns7/libjavaplugin_oji.so ./libjavaplugin_oji.so
For finding hidden files/folders, do a "ls -al"
or, even try "cd ./." (then hit tab after you type the last .)
The preceeding . is for current working directory. To see this, type in "pwd"
#9
Posted 17 November 2004 - 08:42 PM
zenarcher
#10
Posted 17 November 2004 - 10:25 PM
Happy to help.
Note that as blackpage noted, this will be a global install of the java plugin.
Just out of curiousity, was that .so file in the mozilla plugin dir the actual file (not a symlink)? If not, what was it pointing to if it was a symlink? If you remember...
If you followed my instructions, check out the ".bak" file you made in the second step.
#11
Posted 18 November 2004 - 03:08 PM
I don't know if this has any bearing on the problem, but I installed Firefox to home/zenarcher/ and I see there is a hidden mozilla/plugins/ folder there and it has two flashplayer files, but shows nothing else.
I did go into the usr/lib/mozilla/plugins and see the following two files:
libjavaplugin_oji.so
libjavaplugin_oji.so.bak
I hope that helps answer...but if I can check something else, please let me know.
zenarcher
[Edited by zenarcher on 2004-11-18 07:58:50]
[Edited by zenarcher on 2004-11-18 08:02:57]
#12
Posted 18 November 2004 - 06:55 PM
If java is not working in firefox yet, we may not have placed the symlink in the correct location. The 'lib' in the directory we are looking at only reinforces this to me. I think first, we should try your ~/.mozilla directory.
What are the contents of this directory??? Is there a plugins folder?
libjavaplugin_oji.so
libjavaplugin_oji.so.bak
I hope that helps answer...but if I can check something else, please let me know.
What I meant was, to check and see if they are symlinks and where they are pointing to. The 'ls -l' command should do it all for you. Just look at the two files, and see if they point somewhere. I bet they dont. Maybe we got the wrong dir alltogether.
Before we move any farther, I would feel more comfortable if we undid everything that we have done.
Type in a terminal window:
cd /usr/lib/mozilla/plugins
mv ./libjavaplugin_oji.so.bak ./libjavaplugin_oji.so
What this does, is it replaces the libjavaplugin_oji.so file with the original (that maybe shouldnt have been, or may not even be a symlink).
Lets start fresh. Waiting on your reply for the contents of ~/.mozilla
Thanks!
#13
Posted 18 November 2004 - 07:06 PM
So, lets try this (do above mv command first - just for kicks):
ln -s /usr/java/jre1.5.0/plugin/i386/ns7/libjavaplugin_oji.so ~/.mozilla/plugins/libjavaplugin_oji.so
#14
Posted 18 November 2004 - 07:25 PM
Now, here is what I have in the ~/.mozilla area, following your instructions.
[zenarcher@localhost zenarcher]$ cd ~/.mozilla
[zenarcher@localhost .mozilla]$ dir
appreg default firefox mozver.dat pluginreg.dat plugins
Hope I found the right info...
zenarcher
#15
Posted 18 November 2004 - 08:09 PM
Ok, I see (maybe see PS below - it might not be a dir) a firefox directory...go into that and get a directory listing. Is there another plugin folder in there??? If not, try doing what I had mentioned above:
**crosses fingers**
PS: Doing a "ls -l" instead of "dir" will give you WAY more info (if an entry is a file/dir/symlink, the permissions it has, etc).
#16
Posted 18 November 2004 - 08:13 PM
I just ssh'd into my box and went into ~/.mozilla/firefox/
There was a "pluginreg.dat" and I viewed it using:
less ./pluginred.dat
I see that firefox generates this file, and generates it most likely depending on the plugins that you install with the gui (in this case the firefox browser).
I am unsure if a manual install will work?
Again, I have never done this, I am just taking you through the process's that I would follow if I was stuck in a rutt.
I am VERY interested in the outcome!
#17
Posted 18 November 2004 - 08:48 PM
[root@localhost firefox-installer]# dir
browserconfig.properties icons libxpcom.so
chrome install.ini libxpistub.so
components install.log license.txt
components.ini libmozjs.so mozilla-xremote-client
config.ini libnspr4.so plugins
defaults libnss3.so registry
defaults.ini libnssckbi.so res
extensions libplc4.so run-mozilla.sh
firefox libplds4.so searchplugins
firefox-bin libsmime3.so watermark.png
firefox-installer libsoftokn3.chk xpi
firefox-installer-bin libsoftokn3.so xpicleanup
greprefs libssl3.so
header.png libxpcom_compat.so
[root@localhost firefox-installer]# cd plugins
[root@localhost plugins]# dir
libnullplugin.so
[root@localhost plugins]# ls -l
total 20
-rwxr-xr-x 1 zenarcher zenarcher 18840 Nov 7 13:27 libnullplugin.so*
I don't know...hopefully, someone will know how to manually install the Jave plugin for Firefox 1.0. There is no way to auto install it, as if you get the Need Additional Plugin at a Java page in Firefox, you are advised that it must be installed manually with Linux.
I'm not the brightest star in the sky when it comes to Linux, but I'm just wondering if that symbolic link has to be in the plugins located with the firefox-installer....in the home/zenarcher/ folder, rather than in the usr/lib/ area, due to my installing it in home?
Here's what they say on the Firefox site, but not sure how or where to do this.
On Linux
1. Download the Linux version of the Java SDK.
2. When the download is finished, execute the .bin file as root and follow the prompts.
3. When the installation has completed, run this command in the plugins directory of your Firefox installation:
ln -s /path/to/j2sdk_nb/j2sdk1.4.2/jre/plugin/i386/ns610-gcc32/libjavaplugin_oji.so libjavaplugin.so
zenarcher
#18
Posted 18 November 2004 - 10:09 PM
It seems that we are on the right track. The only thing I can think of is this:
Remember:
i think it should be (according to step 3 below that you defined):
ln -s /usr/java/jre1.5.0/plugin/i386/ns7/libjavaplugin_oji.so ~/.mozilla/plugins/libjavaplugin.so
" 3. When the installation has completed, run this command in the plugins directory of your Firefox installation:
ln -s /path/to/j2sdk_nb/j2sdk1.4.2/jre/plugin/i386/ns610-gcc32/libjavaplugin_oji.so libjavaplugin.so"
#19
Posted 18 November 2004 - 11:23 PM
If for some reason it doesn't work doing it from the command line. there is another way. You could do it with Nautilus as root. Go into the directory where the plugin is located, right click on it and choose, "make link." After it creates the link, cut it and move backwards into your ~/.mozilla/plugins directory and paste it. Just to keep things on the up and up, rename it so it doesn't have, "link to" in it's name.
Fire up Firefox and go here. If the coffee cup comes up followed by the clouds animation, you were successful!
#20
Posted 18 November 2004 - 11:29 PM
Good point!

Help










