openSUSE Forums > New User How To/FAQ (read only) > Unreviewed How To and FAQ » Installing 32-bit Java from Java.com (rpm terminal yast)

Go Back   openSUSE Forums > New User How To/FAQ (read only) > Unreviewed How To and FAQ
Forums FAQ Members List Search Today's Posts Mark Forums Read


Unreviewed How To and FAQ POST HERE: Tips and solutions for SUSE Linux from the community. (Please do not post questions)

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 23-Mar-2009, 20:30
ijbreakey's Avatar
Wise Penguin
 
Join Date: Jan 2009
Location: USA Pennsylvania
Posts: 1,001
ijbreakey has great reputationijbreakey has great reputationijbreakey has great reputationijbreakey has great reputationijbreakey has great reputationijbreakey has great reputation
Send a message via ICQ to ijbreakey Send a message via AIM to ijbreakey Send a message via Skype™ to ijbreakey
Default Installing 32-bit Java from Java.com (rpm terminal yast)

If you're like me, at a new installation or upgrade of openSUSE, this webpage Verify Java Version will likely tell you that you need to install Java, or your Java is not up to date.

It will look like this.

This guide will help you to install the latest Java from Java.com. I will provide screenshots of my computer as I go through this step-by-step guide.

Let's get started shall we?

The first thing you'll need to do is go to Download Java software for Linux from Sun Microsystems and download the Linux RPM (self-extracting file). If you're using firefox it will automatically download to the Desktop, otherwise specify it to download to your Desktop folder to keep consistent with this guide.

Next, we'll need to open up dolphin or konqueror or nautilus and get into our Desktop folder. Then right click on the jre-6u12-linux-i586-rpm.bin file you just downloaded (or whatever version you just downloaded) and click properties. Click on the Permissions tab and check "Is executable".



Next we'll need to open up a terminal (Konsole for kde users, or GNOME Terminal for GNOME users) and type this:
Code:
sudo /home/username/Desktop/jre-6u12-linux-i586-rpm.bin
Enter your root password, hit the space bar to get to the bottom of the license agreeement, then type yes and this will create the .rpm file for you.



Next go into your /home directory and click on the .rpm file that was created for you. Enter your root password and this will open Yast2 up and it will take over as if you were installing any other .rpm file.



Next, you'll need to create a symbolic link so your web browser can use the java plugin. Open up a terminal and type this:
Code:
su
enter your root password

Code:
cd /usr/lib/browser-plugins
Code:
ln -s /usr/java/jre1.6.0_12/plugin/i386/ns7/libjavaplugin_oji.so
note: this is one line!



All done! Now you can verify that java is successfully installed on your computer and the plugin works. Go to this site again Verify Java Version and test it out.

It should now look like this

Hope this helps!

Ian
__________________
Laptop: Dell Inspiron E1505 | OpenSUSE 11.2/Windows XP | KDE 4.3.3 "3" | Intel CPU T2050 1.6 GHZ | Intel 945GM | 3.2GB RAM
Box: OpenSUSE 11.2/Windows XP | KDE 4.3.3 "3" | Intel Celeron 2.53 GHz | Intel 915G | 1.2 GB RAM
Reply With Quote
  #2 (permalink)  
Old 23-Mar-2009, 21:34
ijbreakey's Avatar
Wise Penguin
 
Join Date: Jan 2009
Location: USA Pennsylvania
Posts: 1,001
ijbreakey has great reputationijbreakey has great reputationijbreakey has great reputationijbreakey has great reputationijbreakey has great reputationijbreakey has great reputation
Send a message via ICQ to ijbreakey Send a message via AIM to ijbreakey Send a message via Skype™ to ijbreakey
Default Re: Installing 32-bit Java from Java.com (rpm terminal yast)

I've also written a How To for installing 32-bit Java using Yast (from the repositories). You can find that here:
Installing 32-bit Java the Yast way - openSUSE Forums
__________________
Laptop: Dell Inspiron E1505 | OpenSUSE 11.2/Windows XP | KDE 4.3.3 "3" | Intel CPU T2050 1.6 GHZ | Intel 945GM | 3.2GB RAM
Box: OpenSUSE 11.2/Windows XP | KDE 4.3.3 "3" | Intel Celeron 2.53 GHz | Intel 915G | 1.2 GB RAM
Reply With Quote
  #3 (permalink)  
Old 27-Mar-2009, 04:09
ijbreakey's Avatar
Wise Penguin
 
Join Date: Jan 2009
Location: USA Pennsylvania
Posts: 1,001
ijbreakey has great reputationijbreakey has great reputationijbreakey has great reputationijbreakey has great reputationijbreakey has great reputationijbreakey has great reputation
Send a message via ICQ to ijbreakey Send a message via AIM to ijbreakey Send a message via Skype™ to ijbreakey
Default Re: Installing 32-bit Java from Java.com (rpm terminal yast)

New update for java. Update 13. You can use the same method to install the update, just substitute 13 instead of 12.



This isn't in the repo's yet, so as I said before, you get the updates faster this way

Ian
__________________
Laptop: Dell Inspiron E1505 | OpenSUSE 11.2/Windows XP | KDE 4.3.3 "3" | Intel CPU T2050 1.6 GHZ | Intel 945GM | 3.2GB RAM
Box: OpenSUSE 11.2/Windows XP | KDE 4.3.3 "3" | Intel Celeron 2.53 GHz | Intel 915G | 1.2 GB RAM
Reply With Quote
  #4 (permalink)  
Old 27-Mar-2009, 06:13
Wise Penguin
 
Join Date: Mar 2009
Posts: 1,824
Akoellh is a reputation jewel in the roughAkoellh is a reputation jewel in the roughAkoellh is a reputation jewel in the roughAkoellh is a reputation jewel in the roughAkoellh is a reputation jewel in the rough
Default Re: Installing 32-bit Java from Java.com (rpm terminal yast)

Quote:
Originally Posted by ijbreakey View Post
This isn't in the repo's yet, so as I said before, you get the updates faster this way
Code:
rpm  -qa --last "*java-1_6_0-sun*"
java-1_6_0-sun-plugin-1.6.0.u13-1.1           Tue Mar 24 22:15:45 2009
java-1_6_0-sun-alsa-1.6.0.u13-1.1             Tue Mar 24 22:15:45 2009
java-1_6_0-sun-1.6.0.u13-1.1                  Tue Mar 24 22:15:37 2009
__________________
“Never attribute to malice that which can be adequately explained by stupidity.” (R.J. Hanlon)
Reply With Quote
  #5 (permalink)  
Old 27-Mar-2009, 10:23
ijbreakey's Avatar
Wise Penguin
 
Join Date: Jan 2009
Location: USA Pennsylvania
Posts: 1,001
ijbreakey has great reputationijbreakey has great reputationijbreakey has great reputationijbreakey has great reputationijbreakey has great reputationijbreakey has great reputation
Send a message via ICQ to ijbreakey Send a message via AIM to ijbreakey Send a message via Skype™ to ijbreakey
Default Re: Installing 32-bit Java from Java.com (rpm terminal yast)

What repository are you getting that from? I still only have up to update 12 and that code that you used didn't show any output on my computer. I refreshed all my repositories before I tried too.

__________________
Laptop: Dell Inspiron E1505 | OpenSUSE 11.2/Windows XP | KDE 4.3.3 "3" | Intel CPU T2050 1.6 GHZ | Intel 945GM | 3.2GB RAM
Box: OpenSUSE 11.2/Windows XP | KDE 4.3.3 "3" | Intel Celeron 2.53 GHz | Intel 915G | 1.2 GB RAM
Reply With Quote
  #6 (permalink)  
Old 27-Mar-2009, 12:41
Wise Penguin
 
Join Date: Mar 2009
Posts: 1,824
Akoellh is a reputation jewel in the roughAkoellh is a reputation jewel in the roughAkoellh is a reputation jewel in the roughAkoellh is a reputation jewel in the roughAkoellh is a reputation jewel in the rough
Default Re: Installing 32-bit Java from Java.com (rpm terminal yast)

Quote:
Originally Posted by ijbreakey View Post
What repository are you getting that from?
Rebuild using the "nosrc.rpm" for u12 from openSUSE-update repo as a template.

Quote:
Originally Posted by ijbreakey View Post
I still only have up to update 12 and that code that you used didn't show any output on my computer. I refreshed all my repositories before I tried too.
Then certainly the package(s) created by this rpm.bin-installer have another name that does not fit this search pattern (which may cause problems/file conflicts when upgrading to java from official repositories if you do not uninstall the "hand crafted" rpms before).
__________________
“Never attribute to malice that which can be adequately explained by stupidity.” (R.J. Hanlon)
Reply With Quote
  #7 (permalink)  
Old 27-Mar-2009, 13:41
ijbreakey's Avatar
Wise Penguin
 
Join Date: Jan 2009
Location: USA Pennsylvania
Posts: 1,001
ijbreakey has great reputationijbreakey has great reputationijbreakey has great reputationijbreakey has great reputationijbreakey has great reputationijbreakey has great reputation
Send a message via ICQ to ijbreakey Send a message via AIM to ijbreakey Send a message via Skype™ to ijbreakey
Default Re: Installing 32-bit Java from Java.com (rpm terminal yast)

Oh, alright. That's neat. I only knew of two ways to install Java. One from the repositories from just choosing it in Yast and then from the java.com website.

They install into different directories so maybe that's why the command didn't work to check it?
__________________
Laptop: Dell Inspiron E1505 | OpenSUSE 11.2/Windows XP | KDE 4.3.3 "3" | Intel CPU T2050 1.6 GHZ | Intel 945GM | 3.2GB RAM
Box: OpenSUSE 11.2/Windows XP | KDE 4.3.3 "3" | Intel Celeron 2.53 GHz | Intel 915G | 1.2 GB RAM
Reply With Quote
  #8 (permalink)  
Old 27-Mar-2009, 14:15
Wise Penguin
 
Join Date: Mar 2009
Posts: 1,824
Akoellh is a reputation jewel in the roughAkoellh is a reputation jewel in the roughAkoellh is a reputation jewel in the roughAkoellh is a reputation jewel in the roughAkoellh is a reputation jewel in the rough
Default Re: Installing 32-bit Java from Java.com (rpm terminal yast)

Quote:
Originally Posted by ijbreakey View Post
They install into different directories so maybe that's why the command didn't work to check it?
No, certainly not.

Read the section about querying packages in "man rpm" for more information.
__________________
“Never attribute to malice that which can be adequately explained by stupidity.” (R.J. Hanlon)
Reply With Quote
  #9 (permalink)  
Old 27-Mar-2009, 16:06
ijbreakey's Avatar
Wise Penguin
 
Join Date: Jan 2009
Location: USA Pennsylvania
Posts: 1,001
ijbreakey has great reputationijbreakey has great reputationijbreakey has great reputationijbreakey has great reputationijbreakey has great reputationijbreakey has great reputation
Send a message via ICQ to ijbreakey Send a message via AIM to ijbreakey Send a message via Skype™ to ijbreakey
Default Re: Installing 32-bit Java from Java.com (rpm terminal yast)

Thanks for the info! I'm still quite new to learning and experimenting with linux so it's always great to learn something new.

When I use

Code:
rpm -qa --last "*jre*"
it shows

Code:
jre-1.6.0_13-fcs                              Fri 27 Mar 2009 04:46:24 AM EDT
which would explain why, in yast, I have jre with the version number being red.

__________________
Laptop: Dell Inspiron E1505 | OpenSUSE 11.2/Windows XP | KDE 4.3.3 "3" | Intel CPU T2050 1.6 GHZ | Intel 945GM | 3.2GB RAM
Box: OpenSUSE 11.2/Windows XP | KDE 4.3.3 "3" | Intel Celeron 2.53 GHz | Intel 915G | 1.2 GB RAM
Reply With Quote
Reply

Bookmarks


Thread Tools
Display Modes

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




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2