Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
SUSE / openSUSE This Forum is for the discussion of Suse Linux.


Search this Thread
Old 01-11-2005, 06:51 PM   #1
Registered: Jan 2005
Location: CaliforniaUSA
Distribution: openSUSE 13.1
Posts: 228

Rep: Reputation: 30
java again

I've re-installed java and I think it is working, but I still get a "download plugin" icon when visiting a site that depends on Java.

This is the output from typing java in a terminal window:

Usage: java [-options] class [args...]
(to execute a class)
or java [-options] -jar jarfile [args...]
(to execute a jar file)

where options include:
-client to select the "client" VM
-server to select the "server" VM
-hotspot is a synonym for the "client" VM [deprecated]
The default VM is client.

-cp <class search path of directories and zip/jar files>
-classpath <class search path of directories and zip/jar files>
A : separated list of directories, JAR archives,
and ZIP archives to search for class files.
set a system property
enable verbose output
-version print product version and exit
-showversion print product version and continue
-? -help print this help message
-X print help on non-standard options
enable assertions
disable assertions
-esa | -enablesystemassertions
enable system assertions
-dsa | -disablesystemassertions
disable system assertions

I also created a link in my Firefox Plugins folder like so:

ln -s java/plugin/i386/ns610-gcc32/

The website for Suse is not really helpful.
Running SuSe 9.0 Personal. In spite of this, Linux is so much better than MS Windows
Old 01-11-2005, 07:02 PM   #2
Registered: Jan 2005
Location: CaliforniaUSA
Distribution: openSUSE 13.1
Posts: 228

Original Poster
Rep: Reputation: 30
Oops.....I forgot to say Java is enabled globally via the control center and by using preferences in the browser.
Old 01-11-2005, 07:28 PM   #3
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 61
ln -s java/plugin/i386/ns610-gcc32/

This line looks very wrong to me. Are you sure that is where libjavaplugin_oji is. I beleive it was in /usr/java/jre-1.4.2/plugin/i386/*****. Don't hold me to that. Very old version of java. Also there is a space missing seperating the

Also I assume when you did issue that command you were in your firefox plugin directory. If not then that command is wrong.

For a Java install for 1.5.0_01 check out this post. I have been working on it and believe it is correct now. If something is wrong I will fix it.

The following is from the above post. Its that fedoraforum is up and down.

This is for either mozilla or firefox.
NOTE: In future post, I and others have found errors in the list below. This list below should have all corrections..
NOTE: An idea another person had for this post is have a viewer of the post cut and paste the whole post to a text file. Then one can read it easier if browser's fonts are small. It is easy to miss a space.
NOTE: One needs to know exactly where each file and directory is on thier machine. Especially if using older or newer java releases or using the sdk releases. I will try to keep this post updated as newer versions come out. Will be adding a sdk section. When time allows.
NOTE: If anyone sees anything I missed or thinks of something would help, please let me know.

I will start from the beginning.
I will be using firefox as web browser (version 1.0.7). Can be found here at
Mozilla can be found at
My plugin folder is located here /usr/lib/firefox-1.0.7/plugins . Your location maybe different. (standard for rpm version)
I will use jdk-1_5_0_05-nb-4_1-linux-ml.bin as the example. It can be found at

If you still have a clean install and have jjdk-1_5_0_05-nb-4_1-linux-ml.bin then lets start from the top.
1. Download your jdk-1_5_0_05-nb-4_1-linux-ml.bin file.
2. Open a terminal.
3. Login as root by ' su - '. hit enter. Enter password. hit enter.
4. Goto the location where the jdk-1_5_0_05-nb-4_1-linux-ml.bin is stored.
5. Type ' chmod 777 jdk-1_5_0_05-nb-4_1-linux-ml.bin ' hit enter
6. Type ' ./jdk-1_5_0_05-nb-4_1-linux-ml.bin ' hit enter ( This extracts the file and installs in /opt directory.)

*** The following is if the .bin file extracted and rpm file. Example using jre-1_5_0_01-linux-i586.rpm.bin
7. Now if you do not have Java installed follow steps 8 and 9. If you do goto step 10
8. Run a test to see if the rpm will install. It will not install it pretends it did. type ' rpm -ivh jre-1_5_0_01-linux-i586.rpm --test ' hit enter
9. If no errors then remove the --test part and install ' rpm -ivh jre-1_5_0_01-linux-i586.rpm ' goto step 12

10. If there was some error and have a previous version of java installed use ' rpm -Uvh jre-1_5_0_01-linux-i586.rpm --test '
11. Again if no problems remove the -- test and install using -Uvh ' rpm -Uvh jre-1_5_0_01-linux-i586.rpm '
*** The above is install if the .bin file is a rpm file when run.

12. Now type ' ./usr/java/jre1.5.0_o1/bin/java -version ' It should tell you version. If showing the wrong version then and older version exist. Do the option 3 in the next section. Or add the java directory to your path.

Additional things to do.
1. Type ' alternatives --remove java /usr/share/java/ '
2. Type ' alternatives --set java /opt/jdk1.5.0_05/jre/bin/java '
It's only really useful with some (very few) of the Fedora java applications (scripts really), the
two above commands are not really needed other wise.
3. Create soft link of java to /usr/bin ' ln -s /opt/jdk1.5.0_05/jre/bin/java /bin/java '
4. Type ' java -version ' to see what java version is running.

*** Now for the plugin. (NOTE: For java plugin requires to be a soft link, not a hard link.) ***
*** (Note option 8 in the following is the best place to put the plugin. Note this may not work on all systems, why I do not know, if it does fail you need to do it as option 7a)***

1. Do you know where your firefox plugin folder is?
2. If you installed firefox from and rpm then it should be at /usr/lib/firefox-1.0.7/plugins .
3. Lets be sure goto to that point and see that it exist.
4. Now you know where the plugin folder is? Correct?
5. Make sure there is no current link of a previous install in the plugin Folder. Correct?

6. Now there are two plugins ( NOTE: some older versions of Java relaeses contain 3 different one ) available, but only one will work. It all depends on the mozilla engine build.
a. /opt/jdk1.5.0_05/jre/plugin/i386/ns7/
b. /opt/jdk1.5.0_05/jre/plugin/i386/ns7-gcc29/
For fiefox the ns7 works most of the time. In mozilla the same but sometimes the ns7-gcc2 one. Depends on compiling options.

7a.Lets use the ns7 one for firefox-1.0
type ' ln -s /opt/jdk1.5.0_05/jre/plugin/i386/ns7/ /usr/lib/firefox-1.0.7/plugins/

7b. For Mozilla 1.7.3 using ns7 plugin
type ' ln -s /opt/jdk1.5.0_05/jre/plugin/i386/ns7/ /usr/lib/mozilla-1.7.3/plugins/

*** New place to put plugins no matter when system is updated ***
8. This usually works on most systems for both mozilla and firefox. By using /usr/lib/mozilla/plugins directory whether you are using mozilla or firefox, you do not need to move your plugins from say /usr/lib/firefox-1.0.4/plugins to /usr/lib/firefox-1.0.7/plugins.
type ' ln -s /opt/jdk1.5.0_05/jre/plugin/i386/ns7/ /usr/lib/mozilla/plugins/

9. If there is a previous soft link from an earlier version of java add the -f to the above command. This overwrite the previous soft link.
type ' ln -fs /opt/jdk1.5.0_05/jre/plugin/i386/ns7/ /usr/lib/firefox-1.0/plugins/

To the Browser.
8. Open Firefox
9. In the address bar type ' about: plugins ' There is no space in between : p in that command. I have to write it that way so you could see it.
10. Is java plugin there?

*** Konquorer Setup ***
1. Now if you are using KDE and konquorer this is the best way to add the java plugin. Use the point /usr/lib/mozilla/plugins. Do the same as above to create the softlink ln -s /opt/jdk1.5.0_05/jre/plugin/i386/ns7/ /usr/lib/mozilla/plugins/
2. Now open a Konquorer window.
3. Click on Settings tab
4. Now click on Configure Konquorer
5. Select Plugins
6. Now you see a section called Netscape Plugins
7. Below that it list where moziila/netscape/firefox plugins can be found. Make sure it list /usr/lib/mozilla/plugins. If it does not add it by selecting the New button.
8. Once defined hit the Scan for New Plugins button.
9. Hit the Plugins tab next to the Scan tab to see what it found.
10. Hit Apply at the bottom and OK to exit.
If browser crashes on startup:
Then you are using the wrong plugin try one of the other ones. Depending on what gcc version was used on the compiling of mozilla or firefox is how which plugin to use.

Test Site: This works better with java2 ver 1.5.0 or greater

To remove java: Note if it was installed using an rpm.
If it is an RPM file is to do ' rpm -e jre ' This command will remove all rpm's starting with jre.
If it was a source install then one needs to run the command ' make uninstall ', but only if source is still installed.

" Google the Linux way @ "

Last edited by Brian1; 03-27-2006 at 05:10 PM.
Old 01-12-2005, 11:42 AM   #4
Registered: Jan 2005
Location: CaliforniaUSA
Distribution: openSUSE 13.1
Posts: 228

Original Poster
Rep: Reputation: 30
Thanks for the reply and the S b S instructions. After some tinkering, I discovered Java is already installed. I wished the SuSe manual or support site could have had more information on this than 1 page telling me what Java is or does. I will do more studying on running Linux before I face this issue again.
Old 01-12-2005, 05:08 PM   #5
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 61
Your very welcome.

" Google the Linux way @ "


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
Java Programming: Java Runtime Environment not found when trying to compile murbz Linux - Software 2 03-26-2009 03:04 AM
Web start java not working (java works fine) powadha Debian 5 06-05-2004 12:57 PM
Updated Java... now java apps dont work zidane2010 Linux - Software 6 05-04-2004 08:02 PM
2 Questions: java calling system commands? PERL vs Java? randomx Programming 28 11-28-2003 08:24 PM

All times are GMT -5. The time now is 10:26 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration