LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 01-11-2005, 06:51 PM   #1
salmanal
Member
 
Registered: Jan 2005
Location: Syracuse, NY
Distribution: Linux Mint 21
Posts: 265

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.
-D<name>=<value>
set a system property
-verbose[:class|gc|jni]
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
-ea[:<packagename>...|:<classname>]
-enableassertions[:<packagename>...|:<classname>]
enable assertions
-da[:<packagename>...|:<classname>]
-disableassertions[:<packagename>...|:<classname>]
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/libjavaplugin_oji.solibjavaplugin_oji.so

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
salmanal
Member
 
Registered: Jan 2005
Location: Syracuse, NY
Distribution: Linux Mint 21
Posts: 265

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
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
ln -s java/plugin/i386/ns610-gcc32/libjavaplugin_oji.solibjavaplugin_oji.so

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 ibjavaplugin_oji.solibjavaplugin_oji.so

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. http://www.fedoraforum.org/forum/sho...9&postcount=12

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 http://www.mozilla.org/products/firefox/
Mozilla can be found at http://www.mozilla.org/products/mozilla1.x/
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 http://java.sun.com/j2se/1.5.0/download.jsp

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/libgcj-java-placeholder.sh '
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/libjavaplugin_oji.so
b. /opt/jdk1.5.0_05/jre/plugin/i386/ns7-gcc29/libjavaplugin_oji.so
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/libjavaplugin_oji.so /usr/lib/firefox-1.0.7/plugins/libjavaplugin_oji.so

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

*** 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/libjavaplugin_oji.so /usr/lib/mozilla/plugins/libjavaplugin_oji.so
*************************************************************************

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/libjavaplugin_oji.so /usr/lib/firefox-1.0/plugins/libjavaplugin_oji.so

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/libjavaplugin_oji.so /usr/lib/mozilla/plugins/libjavaplugin_oji.so
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:
http://serios.net/content/debian/ja...ifyinstallation
http://www.webcamnow.com 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.


Brian1
" Google the Linux way @ http://www.google.com/linux "

Last edited by Brian1; 03-27-2006 at 05:10 PM.
 
Old 01-12-2005, 11:42 AM   #4
salmanal
Member
 
Registered: Jan 2005
Location: Syracuse, NY
Distribution: Linux Mint 21
Posts: 265

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
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Your very welcome.

Brian1
" Google the Linux way @ http://www.google.com/linux "
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 01:45 AM.

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
Open Source Consulting | Domain Registration