Go Back   openSUSE Forums > Archives > SLS Archives > ARCHIVES - Linux Tweaks > ARCHIVES - Tips, Tricks & Tweaks
Forums FAQ Members List Search Today's Posts Mark Forums Read


ARCHIVES - Tips, Tricks & Tweaks Post your tips, tricks and tweaks about SuSE Linux in here. Please do not ask questions here - this is for factual information

 
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 16-Dec-2006, 08:29
linux_learner
Guest
 
Posts: n/a
Default

Once you have downloaded the java package from java.sun.com and saved it to where ever you save files, you will need to chmod a+x the java file you just downloaded (I choose the self extracting rpm). Then issue the rpm command; rpm -Uvh <java file you extracted> .

In my case it was;

>chmod a+x jre-6-linux-i586-rpm.bin
Now su to root and issue the rpm command;
#rpm -Uvh jre-6-linux-i586-rpm

This will install the rpm to /usr

Now if you think you're done, your not there yet. You still need to let your browsers know that you have upgraded java. Go into /usr/lib/browser-plugins and delete libjavaplugin_oji.so

Since you're in /usr/lib/browser-plugins you will, now that you have deleted libjavaplugin_oji.so, need to;
ln -s /usr/java/jre1.6.0/plugin/i386/ns7/libjavaplugin_oji.so

Of course, the version will change as sun makes newer versions, but the technique is the same. What ever you do, don't use /usr/java/jre1.6.0/plugin/i386/ns7-gcc29/libjavaplugin_oji.so, doing so will cause Mozilla based browsers to crash.

For Konqueror, go to settings, configure Konqueror, java & java script, and put this in Path to Java executable or 'java' /usr/java/jre1.6.0/bin/java

For Opera go to Tools, Preferences, click on the Advanced tab, content (in the left frame), click "java options", and enter this /usr/java/jre1.6.0/lib/i386/

Enjoy
  #2 (permalink)  
Old 17-Dec-2006, 10:02
Slammer64
Guest
 
Posts: n/a
Default

Didn't know there was a java.suse.com?
  #3 (permalink)  
Old 17-Dec-2006, 15:45
linux_learner
Guest
 
Posts: n/a
Default

Quote:
Didn't know there was a java.suse.com?
[/b]

I didn't say java.suse.com. I did say, java.sun.com
  #4 (permalink)  
Old 18-Dec-2006, 12:01
taganu
Guest
 
Posts: n/a
Default

Hi linux_learner,
Do you noticed an improvement in 1.6 as compared to 1.5.x? Since Firefox 2.0 came out, I noticed some bad functionality with java sites. Additionally, my daily used software is using java VM and later (after 1.5 has been released) problems came around here as well. I am hoping that the newer releases would overcome these problems.

/taganu
  #5 (permalink)  
Old 18-Dec-2006, 16:44
linux_learner
Guest
 
Posts: n/a
Default

I haven't noticed much difference.
  #6 (permalink)  
Old 18-Dec-2006, 18:28
Jim
Guest
 
Posts: n/a
Default

I installed 1.6 on XP last night (no previous Java installed) and Azureus (would not boot up) I deleted 1.6 and installed 1.0.5_09 and everything worked fine. It may be a few apps are not compatible with 1.6 though this should not be a problem. Does anyone have Azureus running under 1.6 and Linux?
  #7 (permalink)  
Old 19-Dec-2006, 03:55
pdon
Guest
 
Posts: n/a
Default

Quote:
Once you have downloaded the java package from java.sun.com and saved it to where ever you save files, you will need to chmod a+x the java file you just downloaded (I choose the self extracting rpm). Then issue the rpm command; rpm -Uvh <java file you extracted> .

In my case it was;

>chmod a+x jre-6-linux-i586-rpm.bin
Now su to root and issue the rpm command;
#rpm -Uvh jre-6-linux-i586-rpm

This will install the rpm to /usr

Now if you think you're done, your not there yet. You still need to let your browsers know that you have upgraded java. Go into /usr/lib/browser-plugins and delete libjavaplugin_oji.so

Since you're in /usr/lib/browser-plugins you will, now that you have deleted libjavaplugin_oji.so, need to;
ln -s /usr/java/jre1.6.0/plugin/i386/ns7/libjavaplugin_oji.so

Of course, the version will change as sun makes newer versions, but the technique is the same. What ever you do, don't use /usr/java/jre1.6.0/plugin/i386/ns7-gcc29/libjavaplugin_oji.so, doing so will cause Mozilla based browsers to crash.

For Konqueror, go to settings, configure Konqueror, java & java script, and put this in Path to Java executable or 'java' /usr/java/jre1.6.0/bin/java

For Opera go to Tools, Preferences, click on the Advanced tab, content (in the left frame), click "java options", and enter this /usr/java/jre1.6.0/lib/i386/

Enjoy
[/b]
Hi, I wanted to install java 1.6 on SuSE Linux 9.3
Before finding this topic on the forum, I downloaded jre-6-linux-i586-rpm.bin and did:
# chmod a+x jre-6-linux-i586-rpm.bin
# ./jre-6-linux-i586-rpm.bin
this Unpacked, Checksummed, Extracted, ... and installed a subdirectory /usr/java (which did not
exist previously) with a subdir jre1.6.0

Then I found this topic on the forum...
I wanted to know if # rpm -Uvh jre-6-linux-i586-rpm.bin would do something different, so did
# rm -r /usr/java
thought this was safe since /usr/java didn't exist before...
# rpm -Uvh jre-6-linux-i586-rpm
but this gives an error: Failed dependencies and much more lines...
retried
# ./jre-6-linux-i586-rpm.bin
this stops prematurely with
package jre-1.6.0-fcs ia already installed
(still nothing installed in /usr/java)
tried
# rmp -e jre-6-linux-i586-rpm to remote it
this says it is not installed...

Help !
how to fix this ?

pdon
  #8 (permalink)  
Old 19-Dec-2006, 07:58
linux_learner
Guest
 
Posts: n/a
Default

Quote:
Hi, I wanted to install java 1.6 on SuSE Linux 9.3
Before finding this topic on the forum, I downloaded jre-6-linux-i586-rpm.bin and did:
# chmod a+x jre-6-linux-i586-rpm.bin
# ./jre-6-linux-i586-rpm.bin
this Unpacked, Checksummed, Extracted, ... and installed a subdirectory /usr/java (which did not
exist previously) with a subdir jre1.6.0

Then I found this topic on the forum...
I wanted to know if # rpm -Uvh jre-6-linux-i586-rpm.bin would do something different, so did
# rm -r /usr/java
thought this was safe since /usr/java didn't exist before...
# rpm -Uvh jre-6-linux-i586-rpm
but this gives an error: Failed dependencies and much more lines...
retried
# ./jre-6-linux-i586-rpm.bin
this stops prematurely with
package jre-1.6.0-fcs ia already installed
(still nothing installed in /usr/java)
tried
# rmp -e jre-6-linux-i586-rpm to remote it
this says it is not installed...

Help !
how to fix this ?

pdon
[/b]

You still have the fedora core java-1.6 rpm installed.
Quote:
package jre-1.6.0-fcs ia already installed[/b]
use
Code:
rpm -qa jre*
then you can rpm -e that package.

I did forget to mention in my original post that you need to extract the package to get to the rpm. Sorry. So ./jre-6-linux-i586-rpm.bin to get the rpm.
  #9 (permalink)  
Old 20-Dec-2006, 03:39
pdon
Guest
 
Posts: n/a
Default

Quote:
You still have the fedora core java-1.6 rpm installed.

use
Code:
rpm -qa jre*
then you can rpm -e that package.

I did forget to mention in my original post that you need to extract the package to get to the rpm. Sorry. So ./jre-6-linux-i586-rpm.bin to get the rpm.
[/b]
1. No success:
I did
# rpm -qa jre*
didn't output anything (also no error message)
# rpm -e jre-1.6.0-fcs
didn't output anything (also no error message)
# rpm -Uvh jre-6-linux-i586.rpm
errror: Failed dependencies:
java is needed by (installed) wsdl4j-1.4-4
java-1.4.2-sun = 1.4.2.11-1.1 is needed by (installed) java-1_4_2-sun-alsa-1.4.2.11-1.1
and some 15 more similar messages
about jndi, jndi-ldap, jdbc-stdext, jre1.2.x, jre.3.x, libjava.so, libjavt.so, libjvm.so
'is needed by (installed) packages-names, such al lcapm castor, ... OpenOffice...

??

2. Also I do not understand very well, that after
# ./jre-6-linux-i586-rpm.bin
it created:
- on the desktop a jre-6-linux-i586.rpm file (18 Mb)
- AND a completely new /usr/java directory of 98 Mb (containing subdir jre1.6.0)
What is that /usr/java ? is this already the installed new version of java ?
If yes, why then still need to do # rpm -Uvh jre-6-linux-i586.rpm

confusing...

3. Also, is there a way to have it installed under /opt instead of /usr ?

pdon
  #10 (permalink)  
Old 20-Dec-2006, 08:16
linux_learner
Guest
 
Posts: n/a
Default

Quote:
1. No success:
I did
# rpm -qa jre*
didn't output anything (also no error message)
# rpm -e jre-1.6.0-fcs
didn't output anything (also no error message)
# rpm -Uvh jre-6-linux-i586.rpm
errror: Failed dependencies:
java is needed by (installed) wsdl4j-1.4-4
java-1.4.2-sun = 1.4.2.11-1.1 is needed by (installed) java-1_4_2-sun-alsa-1.4.2.11-1.1
and some 15 more similar messages
about jndi, jndi-ldap, jdbc-stdext, jre1.2.x, jre.3.x, libjava.so, libjavt.so, libjvm.so
'is needed by (installed) packages-names, such al lcapm castor, ... OpenOffice...

??

2. Also I do not understand very well, that after
# ./jre-6-linux-i586-rpm.bin
it created:
- on the desktop a jre-6-linux-i586.rpm file (18 Mb)
- AND a completely new /usr/java directory of 98 Mb (containing subdir jre1.6.0)
What is that /usr/java ? is this already the installed new version of java ?
If yes, why then still need to do # rpm -Uvh jre-6-linux-i586.rpm

confusing...

3. Also, is there a way to have it installed under /opt instead of /usr ?

pdon
[/b]

As per my initial post, when you install the java rpm from sun, it does create under /usr the sub directory /java. So that would be /usr/java. So you have already installed the java from sun. If you go further into /usr/java you should see /usr/java/jre1.6.0 which would indicate that you installed the java from sun and there is no need to run rpm -Uvh jre-6-linux-i586.rpm, which would explain the errors you are getting.

rpm -qa jre* should give you;

> rpm -qa jre*
jre-1.6.0-fcs
 

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