[HOW TO] Install JRE/JDK 7u9 from Oracle (DEPRECATED)

Guides, tutorials & docs
Post Reply
User avatar
viking
Utente junior
Utente junior
Posts: 80
Joined: 26 July 2012, 18:43
ROSA: Desktop Fresh R7 x64
OpenMandriva: -
Kernel: 4.1.18-nrjQL-desktop
Desktop: KDE Plasma 5.5.4
country: Serbia

[HOW TO] Install JRE/JDK 7u9 from Oracle (DEPRECATED)

Post by viking »

New rewritten guide for Java 7u25 can be found here

Unfortunately, new Oracle licensing policy force users to download and install Oracle java packages from the official Oracle site. That is also a reason why package get-jre7-oracle was removed from ABF.

Many thanks to person who wrote original RH tutorial available on this link

http://www.if-not-true-then-false.com/2010/install-sun-oracle-java-jdk-jre-7-on-fedora-centos-red-hat-rhel/

Also, thanks to GvMariani for noticing that RPMs can be used, even with error in post-install script, since all files are already in proper places after install.

You can download the official Oracle Java RPMs (jdk-7u9-linux-i586.rpm, jdk-7u9-linux-x64.rpm, jre-7u9-linux-i586.rpm or jre-7u9-linux-x64.rpm) from
http://www.oracle.com/technetwork/java/javase/downloads/index.html You can also use tar.gz packages from same place.

Image Warning: There are 4 little pictures on Java SE Downloads page and first of them is Java Platform (JDK) 7u9, but if you click there at this moment you will be sent to 7u7 page, so please use links I posted lower since they point correctly to 7u9!

If you use RPMs, be prepared that you will get error like this after install

Code: Select all

installing jre-7u9-linux-x64.rpm
Preparing...
#####################################################################################################
1/1: jre                   
#####################################################################################################
Unpacking JAR files...
rt.jar...
Error: Could not open input file: /usr/java/jre1.7.0_09/lib/rt.pack
 jsse.jar...
Error: Could not open input file: /usr/java/jre1.7.0_09/lib/jsse.pack
charsets.jar...
Error: Could not open input file: /usr/java/jre1.7.0_09/lib/charsets.pack
localedata.jar...
Error: Could not open input file: /usr/java/jre1.7.0_09/lib/ext/localedata.pack
Just ignore that message, and skip steps 4 to 6.

If you use tar.gz packages, just skip step R4 (RPM installation).

Everything else is same in both cases.



JRE 7u9 64bit

1. Download jre-7u9-linux-x64.rpm or jre-7u9-linux-x64.tar.gz from
http://www.oracle.com/technetwork/java/javase/downloads/jre7u9-downloads-1859586.html

2. Type

Code: Select all

su -
and provide root password

3. Go to /home/<your username>/Downloads

4. Remove JRE 7u9 and links named latest and default

Code: Select all

rm -rf /usr/java/jre1.7.0_09
rm -f /usr/java/latest
rm -f /usr/java/default 
5. Extract package to appropriate folder

Code: Select all

tar -xzf jre-7u9-linux-x64.tar.gz -C /usr/java/ --no-same-owner
6. Make symbolic links for latest and default

Code: Select all

ln -sf ./jre1.7.0_09 /usr/java/latest
ln -sf ./latest /usr/java/default
R4. Install RPM package

Code: Select all

urpmi jre-7u9-linux-x64.rpm
7. Install Browser Plugins

Code: Select all

alternatives --install /usr/lib64/xulrunner-5.0/plugins/libjavaplugin.so xulrunner-1.9-javaplugin.so /usr/java/jre1.7.0_09/lib/amd64/libnpjp2.so 17095
alternatives --install /usr/lib64/mozilla/plugins/libjavaplugin.so mozilla-javaplugin.so /usr/java/jre1.7.0_09/lib/amd64/libnpjp2.so 17095
8. Install JRE and man pages

Code: Select all

alternatives --install /usr/bin/ControlPanel ControlPanel /usr/java/jre1.7.0_09/bin/ControlPanel 17095
alternatives --install /usr/bin/java java /usr/java/jre1.7.0_09/bin/java 17095 --slave /usr/share/man/man1/java.1 java.1 /usr/java/jre1.7.0_09/man/man1/java.1
alternatives --install /usr/bin/java_vm java_vm /usr/java/jre1.7.0_09/bin/java_vm 17095
alternatives --install /usr/bin/javaws javaws /usr/java/jre1.7.0_09/bin/javaws 17095 --slave /usr/share/man/man1/javaws.1 javaws.1 /usr/java/jre1.7.0_09/man/man1/javaws.1
alternatives --install /usr/bin/jcontrol jcontrol /usr/java/jre1.7.0_09/bin/jcontrol 17095
alternatives --install /usr/bin/keytool keytool /usr/java/jre1.7.0_09/bin/keytool 17095 --slave /usr/share/man/man1/keytool.1 keytool.1 /usr/java/jre1.7.0_09/man/man1/keytool.1
alternatives --install /usr/bin/orbd orbd /usr/java/jre1.7.0_09/bin/orbd 17095 --slave /usr/share/man/man1/orbd.1 orbd.1 /usr/java/jre1.7.0_09/man/man1/orbd.1
alternatives --install /usr/bin/pack200 pack200 /usr/java/jre1.7.0_09/bin/pack200 17095 --slave /usr/share/man/man1/pack200.1 pack200.1 /usr/java/jre1.7.0_09/man/man1/pack200.1
alternatives --install /usr/bin/policytool policytool /usr/java/jre1.7.0_09/bin/policytool 17095 --slave /usr/share/man/man1/policytool.1 policytool.1 /usr/java/jre1.7.0_09/man/man1/policytool.1
alternatives --install /usr/bin/rmid rmid /usr/java/jre1.7.0_09/bin/rmid 17095 --slave /usr/share/man/man1/rmid.1 rmid.1 /usr/java/jre1.7.0_09/man/man1/rmid.1
alternatives --install /usr/bin/rmiregistry rmiregistry /usr/java/jre1.7.0_09/bin/rmiregistry 17095 --slave /usr/share/man/man1/rmiregistry.1 rmiregistry.1 /usr/java/jre1.7.0_09/man/man1/rmiregistry.1
alternatives --install /usr/bin/servertool servertool /usr/java/jre1.7.0_09/bin/servertool 17095 --slave /usr/share/man/man1/servertool.1 servertool.1 /usr/java/jre1.7.0_09/man/man1/servertool.1
alternatives --install /usr/bin/tnameserv tnameserv /usr/java/jre1.7.0_09/bin/tnameserv 17095 --slave /usr/share/man/man1/tnameserv.1 tnameserv.1 /usr/java/jre1.7.0_09/man/man1/tnameserv.1
alternatives --install /usr/bin/unpack200 unpack200 /usr/java/jre1.7.0_09/bin/unpack200 17095 --slave /usr/share/man/man1/unpack200.1 unpack200.1 /usr/java/jre1.7.0_09/man/man1/unpack200.1
9. Export JAVA_HOME

Code: Select all

export JAVA_HOME="/usr/java/jre1.7.0_09"


JRE 7u9 32bit

1. Download jre-7u9-linux-i586.rpm or jre-7u9-linux-i586.tar.gz from
http://www.oracle.com/technetwork/java/javase/downloads/jre7u9-downloads-1859586.html

2. Type

Code: Select all

su -
and provide root password

3. Go to /home/<your username>/Downloads

4. Remove JRE 7u9 and links named latest and default

Code: Select all

rm -rf /usr/java/jre1.7.0_09
rm -f /usr/java/latest
rm -f /usr/java/default 
5. Extract package to appropriate folder

Code: Select all

tar -xzf jre-7u9-linux-i586.tar.gz -C /usr/java/ --no-same-owner
6. Make symbolic links for latest and default

Code: Select all

ln -sf ./jre1.7.0_09 /usr/java/latest
ln -sf ./latest /usr/java/default
R4. Install RPM package

Code: Select all

urpmi jre-7u9-linux-i586.rpm
7. Install Browser Plugins

Code: Select all

alternatives --install /usr/lib/xulrunner-5.0/plugins/libjavaplugin.so xulrunner-1.9-javaplugin.so /usr/java/jre1.7.0_09/lib/i386/libnpjp2.so 17095
alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so mozilla-javaplugin.so /usr/java/jre1.7.0_09/lib/i386/libnpjp2.so 17095
8. Install JRE and man pages

Code: Select all

alternatives --install /usr/bin/ControlPanel ControlPanel /usr/java/jre1.7.0_09/bin/ControlPanel 17095
alternatives --install /usr/bin/java java /usr/java/jre1.7.0_09/bin/java 17095 --slave /usr/share/man/man1/java.1 java.1 /usr/java/jre1.7.0_09/man/man1/java.1
alternatives --install /usr/bin/java_vm java_vm /usr/java/jre1.7.0_09/bin/java_vm 17095
alternatives --install /usr/bin/javaws javaws /usr/java/jre1.7.0_09/bin/javaws 17095 --slave /usr/share/man/man1/javaws.1 javaws.1 /usr/java/jre1.7.0_09/man/man1/javaws.1
alternatives --install /usr/bin/jcontrol jcontrol /usr/java/jre1.7.0_09/bin/jcontrol 17095
alternatives --install /usr/bin/keytool keytool /usr/java/jre1.7.0_09/bin/keytool 17095 --slave /usr/share/man/man1/keytool.1 keytool.1 /usr/java/jre1.7.0_09/man/man1/keytool.1
alternatives --install /usr/bin/orbd orbd /usr/java/jre1.7.0_09/bin/orbd 17095 --slave /usr/share/man/man1/orbd.1 orbd.1 /usr/java/jre1.7.0_09/man/man1/orbd.1
alternatives --install /usr/bin/pack200 pack200 /usr/java/jre1.7.0_09/bin/pack200 17095 --slave /usr/share/man/man1/pack200.1 pack200.1 /usr/java/jre1.7.0_09/man/man1/pack200.1
alternatives --install /usr/bin/policytool policytool /usr/java/jre1.7.0_09/bin/policytool 17095 --slave /usr/share/man/man1/policytool.1 policytool.1 /usr/java/jre1.7.0_09/man/man1/policytool.1
alternatives --install /usr/bin/rmid rmid /usr/java/jre1.7.0_09/bin/rmid 17095 --slave /usr/share/man/man1/rmid.1 rmid.1 /usr/java/jre1.7.0_09/man/man1/rmid.1
alternatives --install /usr/bin/rmiregistry rmiregistry /usr/java/jre1.7.0_09/bin/rmiregistry 17095 --slave /usr/share/man/man1/rmiregistry.1 rmiregistry.1 /usr/java/jre1.7.0_09/man/man1/rmiregistry.1
alternatives --install /usr/bin/servertool servertool /usr/java/jre1.7.0_09/bin/servertool 17095 --slave /usr/share/man/man1/servertool.1 servertool.1 /usr/java/jre1.7.0_09/man/man1/servertool.1
alternatives --install /usr/bin/tnameserv tnameserv /usr/java/jre1.7.0_09/bin/tnameserv 17095 --slave /usr/share/man/man1/tnameserv.1 tnameserv.1 /usr/java/jre1.7.0_09/man/man1/tnameserv.1
alternatives --install /usr/bin/unpack200 unpack200 /usr/java/jre1.7.0_09/bin/unpack200 17095 --slave /usr/share/man/man1/unpack200.1 unpack200.1 /usr/java/jre1.7.0_09/man/man1/unpack200.1
9. Export JAVA_HOME

Code: Select all

export JAVA_HOME="/usr/java/jre1.7.0_09"


If you need JDK instead of JRE, then you have to do something very similar.


JDK 7u9 64bit

1. Download jdk-7u9-linux-x64.rpm or jdk-7u9-linux-x64.tar.gz from
http://www.oracle.com/technetwork/java/javase/downloads/jdk7u9-downloads-1859576.html

2. Type

Code: Select all

su -
and provide root password

3. Go to /home/<your username>/Downloads

4. Remove JRE 7u9 and links named latest and default

Code: Select all

rm -rf /usr/java/jdk1.7.0_09
rm -f /usr/java/latest
rm -f /usr/java/default 
5. Extract package to appropriate folder

Code: Select all

tar -xzf jdk-7u9-linux-x64.tar.gz -C /usr/java/ --no-same-owner
6. Make symbolic links for latest and default

Code: Select all

ln -sf ./jdk1.7.0_09 /usr/java/latest
ln -sf ./latest /usr/java/default
R4. Install RPM package

Code: Select all

urpmi jdk-7u9-linux-x64.rpm
7. Install Browser Plugins

Code: Select all

alternatives --install /usr/lib64/xulrunner-5.0/plugins/libjavaplugin.so xulrunner-1.9-javaplugin.so /usr/java/jdk1.7.0_09/jre/lib/amd64/libnpjp2.so 17069
alternatives --install /usr/lib64/mozilla/plugins/libjavaplugin.so mozilla-javaplugin.so /usr/java/jdk1.7.0_09/jre/lib/amd64/libnpjp2.so 17069
8. Install JDK and man pages

Code: Select all

alternatives --install /usr/bin/appletviewer appletviewer /usr/java/jdk1.7.0_09/bin/appletviewer 17069 --slave /usr/share/man/man1/appletviewer.1 appletviewer.1 /usr/java/jdk1.7.0_09/man/man1/appletviewer.1
alternatives --install /usr/bin/apt apt /usr/java/jdk1.7.0_09/bin/apt 17069 --slave /usr/share/man/man1/apt.1 apt.1 /usr/java/jdk1.7.0_09/man/man1/apt.1
alternatives --install /usr/bin/extcheck extcheck /usr/java/jdk1.7.0_09/bin/extcheck 17069 --slave /usr/share/man/man1/extcheck.1 extcheck.1 /usr/java/jdk1.7.0_09/man/man1/extcheck.1
alternatives --install /usr/bin/idlj idlj /usr/java/jdk1.7.0_09/bin/idlj 17069 --slave /usr/share/man/man1/idlj.1 idlj.1 /usr/java/jdk1.7.0_09/man/man1/idlj.1
alternatives --install /usr/bin/jar jar /usr/java/jdk1.7.0_09/bin/jar 17069 --slave /usr/share/man/man1/jar.1 jar.1 /usr/java/jdk1.7.0_09/man/man1/jar.1
alternatives --install /usr/bin/jarsigner jarsigner /usr/java/jdk1.7.0_09/bin/jarsigner 17069 --slave /usr/share/man/man1/jarsigner.1 jarsigner.1 /usr/java/jdk1.7.0_09/man/man1/jarsigner.1
alternatives --install /usr/bin/javac javac /usr/java/jdk1.7.0_09/bin/javac 17069 --slave /usr/share/man/man1/javac.1 javac.1 /usr/java/jdk1.7.0_09/man/man1/javac.1
alternatives --install /usr/bin/javadoc javadoc /usr/java/jdk1.7.0_09/bin/javadoc 17069 --slave /usr/share/man/man1/javadoc.1 javadoc.1 /usr/java/jdk1.7.0_09/man/man1/javadoc.1
alternatives --install /usr/bin/javafxpackager javafxpackager /usr/java/jdk1.7.0_09/bin/javafxpackager 17069 --slave /usr/share/man/man1/javafxpackager.1 javafxpackager.1 /usr/java/jdk1.7.0_09/man/man1/javafxpackager.1
alternatives --install /usr/bin/javah javah /usr/java/jdk1.7.0_09/bin/javah 17069 --slave /usr/share/man/man1/javah.1 javah.1 /usr/java/jdk1.7.0_09/man/man1/javah.1
alternatives --install /usr/bin/javap javap /usr/java/jdk1.7.0_09/bin/javap 17069 --slave /usr/share/man/man1/javap.1 javap.1 /usr/java/jdk1.7.0_09/man/man1/javap.1
alternatives --install /usr/bin/jcmd jcmd /usr/java/jdk1.7.0_09/bin/jcmd 17069 --slave /usr/share/man/man1/jcmd.1 jcmd.1 /usr/java/jdk1.7.0_09/man/man1/jcmd.1
alternatives --install /usr/bin/jconsole jconsole /usr/java/jdk1.7.0_09/bin/jconsole 17069 --slave /usr/share/man/man1/jconsole.1 jconsole.1 /usr/java/jdk1.7.0_09/man/man1/jconsole.1
alternatives --install /usr/bin/jdb jdb /usr/java/jdk1.7.0_09/bin/jdb 17069 --slave /usr/share/man/man1/jdb.1 jdb.1 /usr/java/jdk1.7.0_09/man/man1/jdb.1
alternatives --install /usr/bin/jhat jhat /usr/java/jdk1.7.0_09/bin/jhat 17069 --slave /usr/share/man/man1/jhat.1 jhat.1 /usr/java/jdk1.7.0_09/man/man1/jhat.1
alternatives --install /usr/bin/jinfo jinfo /usr/java/jdk1.7.0_09/bin/jinfo 17069 --slave /usr/share/man/man1/jinfo.1 jinfo.1 /usr/java/jdk1.7.0_09/man/man1/jinfo.1
alternatives --install /usr/bin/jmap jmap /usr/java/jdk1.7.0_09/bin/jmap 17069 --slave /usr/share/man/man1/jmap.1 jmap.1 /usr/java/jdk1.7.0_09/man/man1/jmap.1
alternatives --install /usr/bin/jps jps /usr/java/jdk1.7.0_09/bin/jps 17069 --slave /usr/share/man/man1/jps.1 jps.1 /usr/java/jdk1.7.0_09/man/man1/jps.1
alternatives --install /usr/bin/jrunscript jrunscript /usr/java/jdk1.7.0_09/bin/jrunscript 17069 --slave /usr/share/man/man1/jrunscript.1 jrunscript.1 /usr/java/jdk1.7.0_09/man/man1/jrunscript.1
alternatives --install /usr/bin/jsadebugd jsadebugd /usr/java/jdk1.7.0_09/bin/jsadebugd 17069 --slave /usr/share/man/man1/jsadebugd.1 jsadebugd.1 /usr/java/jdk1.7.0_09/man/man1/jsadebugd.1
alternatives --install /usr/bin/jstack jstack /usr/java/jdk1.7.0_09/bin/jstack 17069 --slave /usr/share/man/man1/jstack.1 jstack.1 /usr/java/jdk1.7.0_09/man/man1/jstack.1
alternatives --install /usr/bin/jstat jstat /usr/java/jdk1.7.0_09/bin/jstat 17069 --slave /usr/share/man/man1/jstat.1 jstat.1 /usr/java/jdk1.7.0_09/man/man1/jstat.1
alternatives --install /usr/bin/jstatd jstatd /usr/java/jdk1.7.0_09/bin/jstatd 17069 --slave /usr/share/man/man1/jstatd.1 jstatd.1 /usr/java/jdk1.7.0_09/man/man1/jstatd.1
alternatives --install /usr/bin/native2ascii native2ascii /usr/java/jdk1.7.0_09/bin/native2ascii 17069 --slave /usr/share/man/man1/native2ascii.1 native2ascii.1 /usr/java/jdk1.7.0_09/man/man1/native2ascii.1
alternatives --install /usr/bin/rmic rmic /usr/java/jdk1.7.0_09/bin/rmic 17069 --slave /usr/share/man/man1/rmic.1 rmic.1 /usr/java/jdk1.7.0_09/man/man1/rmic.1
alternatives --install /usr/bin/schemagen schemagen /usr/java/jdk1.7.0_09/bin/schemagen 17069 --slave /usr/share/man/man1/schemagen.1 schemagen.1 /usr/java/jdk1.7.0_09/man/man1/schemagen.1
alternatives --install /usr/bin/serialver serialver /usr/java/jdk1.7.0_09/bin/serialver 17069 --slave /usr/share/man/man1/serialver.1 serialver.1 /usr/java/jdk1.7.0_09/man/man1/serialver.1
alternatives --install /usr/bin/wsgen wsgen /usr/java/jdk1.7.0_09/bin/wsgen 17069 --slave /usr/share/man/man1/wsgen.1 wsgen.1 /usr/java/jdk1.7.0_09/man/man1/wsgen.1
alternatives --install /usr/bin/wsimport wsimport /usr/java/jdk1.7.0_09/bin/wsimport 17069 --slave /usr/share/man/man1/wsimport.1 wsimport.1 /usr/java/jdk1.7.0_09/man/man1/wsimport.1
alternatives --install /usr/bin/xjc xjc /usr/java/jdk1.7.0_09/bin/xjc 17069 --slave /usr/share/man/man1/xjc.1 xjc.1 /usr/java/jdk1.7.0_09/man/man1/xjc.1
alternatives --install /usr/bin/jexec jexec /usr/java/jdk1.7.0_09/jre/lib/jexec 17069
alternatives --install /usr/bin/java-rmi.cgi java-rmi.cgi /usr/java/jdk1.7.0_09/bin/java-rmi.cgi 17069
alternatives --install /usr/bin/ControlPanel ControlPanel /usr/java/jdk1.7.0_09/jre/bin/ControlPanel 17069
alternatives --install /usr/bin/java java /usr/java/jdk1.7.0_09/jre/bin/java 17069 --slave /usr/share/man/man1/java.1 java.1 /usr/java/jdk1.7.0_09/man/man1/java.1
alternatives --install /usr/bin/java_vm java_vm /usr/java/jdk1.7.0_09/jre/bin/java_vm 17069
alternatives --install /usr/bin/javaws javaws /usr/java/jdk1.7.0_09/jre/bin/javaws 17069 --slave /usr/share/man/man1/javaws.1 javaws.1 /usr/java/jdk1.7.0_09/man/man1/javaws.1
alternatives --install /usr/bin/jcontrol jcontrol /usr/java/jdk1.7.0_09/jre/bin/jcontrol 17069
alternatives --install /usr/bin/keytool keytool /usr/java/jdk1.7.0_09/jre/bin/keytool 17069 --slave /usr/share/man/man1/keytool.1 keytool.1 /usr/java/jdk1.7.0_09/man/man1/keytool.1
alternatives --install /usr/bin/orbd orbd /usr/java/jdk1.7.0_09/jre/bin/orbd 17069 --slave /usr/share/man/man1/orbd.1 orbd.1 /usr/java/jdk1.7.0_09/man/man1/orbd.1
alternatives --install /usr/bin/pack200 pack200 /usr/java/jdk1.7.0_09/jre/bin/pack200 17069 --slave /usr/share/man/man1/pack200.1 pack200.1 /usr/java/jdk1.7.0_09/man/man1/pack200.1
alternatives --install /usr/bin/policytool policytool /usr/java/jdk1.7.0_09/jre/bin/policytool 17069 --slave /usr/share/man/man1/policytool.1 policytool.1 /usr/java/jdk1.7.0_09/man/man1/policytool.1
alternatives --install /usr/bin/rmid rmid /usr/java/jdk1.7.0_09/jre/bin/rmid 17069 --slave /usr/share/man/man1/rmid.1 rmid.1 /usr/java/jdk1.7.0_09/man/man1/rmid.1
alternatives --install /usr/bin/rmiregistry rmiregistry /usr/java/jdk1.7.0_09/jre/bin/rmiregistry 17069 --slave /usr/share/man/man1/rmiregistry.1 rmiregistry.1 /usr/java/jdk1.7.0_09/man/man1/rmiregistry.1
alternatives --install /usr/bin/servertool servertool /usr/java/jdk1.7.0_09/jre/bin/servertool 17069 --slave /usr/share/man/man1/servertool.1 servertool.1 /usr/java/jdk1.7.0_09/man/man1/servertool.1
alternatives --install /usr/bin/tnameserv tnameserv /usr/java/jdk1.7.0_09/jre/bin/tnameserv 17069 --slave /usr/share/man/man1/tnameserv.1 tnameserv.1 /usr/java/jdk1.7.0_09/man/man1/tnameserv.1
alternatives --install /usr/bin/unpack200 unpack200 /usr/java/jdk1.7.0_09/jre/bin/unpack200 17069 --slave /usr/share/man/man1/unpack200.1 unpack200.1 /usr/java/jdk1.7.0_09/man/man1/unpack200.1
9. Export JAVA_HOME

Code: Select all

export JAVA_HOME="/usr/java/jdk1.7.0_09"



JDK 7u9 32bit

1. Download jdk-7u9-linux-i586.rpm or jdk-7u9-linux-i586.tar.gz from
http://www.oracle.com/technetwork/java/javase/downloads/jdk7u9-downloads-1859576.html

2. Type

Code: Select all

su -
and provide root passwrod

3. Go to /home/<your username>/Downloads

4. Remove JRE 7u9 and links named latest and default

Code: Select all

rm -rf /usr/java/jdk1.7.0_09
rm -f /usr/java/latest
rm -f /usr/java/default 
5. Extract package to appropriate folder

Code: Select all

tar -xzf jdk-7u9-linux-i586.tar.gz -C /usr/java/ --no-same-owner
6. Make symbolic links for latest and default

Code: Select all

ln -sf ./jdk1.7.0_09 /usr/java/latest
ln -sf ./latest /usr/java/default
R4. Install RPM package

Code: Select all

urpmi jdk-7u9-linux-i586.rpm
7. Install Browser Plugins

Code: Select all

alternatives --install /usr/lib/xulrunner-5.0/plugins/libjavaplugin.so xulrunner-1.9-javaplugin.so /usr/java/jdk1.7.0_09/jre/lib/i386/libnpjp2.so 17069
alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so mozilla-javaplugin.so /usr/java/jdk1.7.0_09/jre/lib/i386/libnpjp2.so 17069
8. Install JDK and man pages

Code: Select all

alternatives --install /usr/bin/appletviewer appletviewer /usr/java/jdk1.7.0_09/bin/appletviewer 17069 --slave /usr/share/man/man1/appletviewer.1 appletviewer.1 /usr/java/jdk1.7.0_09/man/man1/appletviewer.1
alternatives --install /usr/bin/apt apt /usr/java/jdk1.7.0_09/bin/apt 17069 --slave /usr/share/man/man1/apt.1 apt.1 /usr/java/jdk1.7.0_09/man/man1/apt.1
alternatives --install /usr/bin/extcheck extcheck /usr/java/jdk1.7.0_09/bin/extcheck 17069 --slave /usr/share/man/man1/extcheck.1 extcheck.1 /usr/java/jdk1.7.0_09/man/man1/extcheck.1
alternatives --install /usr/bin/idlj idlj /usr/java/jdk1.7.0_09/bin/idlj 17069 --slave /usr/share/man/man1/idlj.1 idlj.1 /usr/java/jdk1.7.0_09/man/man1/idlj.1
alternatives --install /usr/bin/jar jar /usr/java/jdk1.7.0_09/bin/jar 17069 --slave /usr/share/man/man1/jar.1 jar.1 /usr/java/jdk1.7.0_09/man/man1/jar.1
alternatives --install /usr/bin/jarsigner jarsigner /usr/java/jdk1.7.0_09/bin/jarsigner 17069 --slave /usr/share/man/man1/jarsigner.1 jarsigner.1 /usr/java/jdk1.7.0_09/man/man1/jarsigner.1
alternatives --install /usr/bin/javac javac /usr/java/jdk1.7.0_09/bin/javac 17069 --slave /usr/share/man/man1/javac.1 javac.1 /usr/java/jdk1.7.0_09/man/man1/javac.1
alternatives --install /usr/bin/javadoc javadoc /usr/java/jdk1.7.0_09/bin/javadoc 17069 --slave /usr/share/man/man1/javadoc.1 javadoc.1 /usr/java/jdk1.7.0_09/man/man1/javadoc.1
alternatives --install /usr/bin/javafxpackager javafxpackager /usr/java/jdk1.7.0_09/bin/javafxpackager 17069 --slave /usr/share/man/man1/javafxpackager.1 javafxpackager.1 /usr/java/jdk1.7.0_09/man/man1/javafxpackager.1
alternatives --install /usr/bin/javah javah /usr/java/jdk1.7.0_09/bin/javah 17069 --slave /usr/share/man/man1/javah.1 javah.1 /usr/java/jdk1.7.0_09/man/man1/javah.1
alternatives --install /usr/bin/javap javap /usr/java/jdk1.7.0_09/bin/javap 17069 --slave /usr/share/man/man1/javap.1 javap.1 /usr/java/jdk1.7.0_09/man/man1/javap.1
alternatives --install /usr/bin/jcmd jcmd /usr/java/jdk1.7.0_09/bin/jcmd 17069 --slave /usr/share/man/man1/jcmd.1 jcmd.1 /usr/java/jdk1.7.0_09/man/man1/jcmd.1
alternatives --install /usr/bin/jconsole jconsole /usr/java/jdk1.7.0_09/bin/jconsole 17069 --slave /usr/share/man/man1/jconsole.1 jconsole.1 /usr/java/jdk1.7.0_09/man/man1/jconsole.1
alternatives --install /usr/bin/jdb jdb /usr/java/jdk1.7.0_09/bin/jdb 17069 --slave /usr/share/man/man1/jdb.1 jdb.1 /usr/java/jdk1.7.0_09/man/man1/jdb.1
alternatives --install /usr/bin/jhat jhat /usr/java/jdk1.7.0_09/bin/jhat 17069 --slave /usr/share/man/man1/jhat.1 jhat.1 /usr/java/jdk1.7.0_09/man/man1/jhat.1
alternatives --install /usr/bin/jinfo jinfo /usr/java/jdk1.7.0_09/bin/jinfo 17069 --slave /usr/share/man/man1/jinfo.1 jinfo.1 /usr/java/jdk1.7.0_09/man/man1/jinfo.1
alternatives --install /usr/bin/jmap jmap /usr/java/jdk1.7.0_09/bin/jmap 17069 --slave /usr/share/man/man1/jmap.1 jmap.1 /usr/java/jdk1.7.0_09/man/man1/jmap.1
alternatives --install /usr/bin/jps jps /usr/java/jdk1.7.0_09/bin/jps 17069 --slave /usr/share/man/man1/jps.1 jps.1 /usr/java/jdk1.7.0_09/man/man1/jps.1
alternatives --install /usr/bin/jrunscript jrunscript /usr/java/jdk1.7.0_09/bin/jrunscript 17069 --slave /usr/share/man/man1/jrunscript.1 jrunscript.1 /usr/java/jdk1.7.0_09/man/man1/jrunscript.1
alternatives --install /usr/bin/jsadebugd jsadebugd /usr/java/jdk1.7.0_09/bin/jsadebugd 17069 --slave /usr/share/man/man1/jsadebugd.1 jsadebugd.1 /usr/java/jdk1.7.0_09/man/man1/jsadebugd.1
alternatives --install /usr/bin/jstack jstack /usr/java/jdk1.7.0_09/bin/jstack 17069 --slave /usr/share/man/man1/jstack.1 jstack.1 /usr/java/jdk1.7.0_09/man/man1/jstack.1
alternatives --install /usr/bin/jstat jstat /usr/java/jdk1.7.0_09/bin/jstat 17069 --slave /usr/share/man/man1/jstat.1 jstat.1 /usr/java/jdk1.7.0_09/man/man1/jstat.1
alternatives --install /usr/bin/jstatd jstatd /usr/java/jdk1.7.0_09/bin/jstatd 17069 --slave /usr/share/man/man1/jstatd.1 jstatd.1 /usr/java/jdk1.7.0_09/man/man1/jstatd.1
alternatives --install /usr/bin/native2ascii native2ascii /usr/java/jdk1.7.0_09/bin/native2ascii 17069 --slave /usr/share/man/man1/native2ascii.1 native2ascii.1 /usr/java/jdk1.7.0_09/man/man1/native2ascii.1
alternatives --install /usr/bin/rmic rmic /usr/java/jdk1.7.0_09/bin/rmic 17069 --slave /usr/share/man/man1/rmic.1 rmic.1 /usr/java/jdk1.7.0_09/man/man1/rmic.1
alternatives --install /usr/bin/schemagen schemagen /usr/java/jdk1.7.0_09/bin/schemagen 17069 --slave /usr/share/man/man1/schemagen.1 schemagen.1 /usr/java/jdk1.7.0_09/man/man1/schemagen.1
alternatives --install /usr/bin/serialver serialver /usr/java/jdk1.7.0_09/bin/serialver 17069 --slave /usr/share/man/man1/serialver.1 serialver.1 /usr/java/jdk1.7.0_09/man/man1/serialver.1
alternatives --install /usr/bin/wsgen wsgen /usr/java/jdk1.7.0_09/bin/wsgen 17069 --slave /usr/share/man/man1/wsgen.1 wsgen.1 /usr/java/jdk1.7.0_09/man/man1/wsgen.1
alternatives --install /usr/bin/wsimport wsimport /usr/java/jdk1.7.0_09/bin/wsimport 17069 --slave /usr/share/man/man1/wsimport.1 wsimport.1 /usr/java/jdk1.7.0_09/man/man1/wsimport.1
alternatives --install /usr/bin/xjc xjc /usr/java/jdk1.7.0_09/bin/xjc 17069 --slave /usr/share/man/man1/xjc.1 xjc.1 /usr/java/jdk1.7.0_09/man/man1/xjc.1
alternatives --install /usr/bin/jexec jexec /usr/java/jdk1.7.0_09/jre/lib/jexec 17069
alternatives --install /usr/bin/java-rmi.cgi java-rmi.cgi /usr/java/jdk1.7.0_09/bin/java-rmi.cgi 17069
alternatives --install /usr/bin/ControlPanel ControlPanel /usr/java/jdk1.7.0_09/jre/bin/ControlPanel 17069
alternatives --install /usr/bin/java java /usr/java/jdk1.7.0_09/jre/bin/java 17069 --slave /usr/share/man/man1/java.1 java.1 /usr/java/jdk1.7.0_09/man/man1/java.1
alternatives --install /usr/bin/java_vm java_vm /usr/java/jdk1.7.0_09/jre/bin/java_vm 17069
alternatives --install /usr/bin/javaws javaws /usr/java/jdk1.7.0_09/jre/bin/javaws 17069 --slave /usr/share/man/man1/javaws.1 javaws.1 /usr/java/jdk1.7.0_09/man/man1/javaws.1
alternatives --install /usr/bin/jcontrol jcontrol /usr/java/jdk1.7.0_09/jre/bin/jcontrol 17069
alternatives --install /usr/bin/keytool keytool /usr/java/jdk1.7.0_09/jre/bin/keytool 17069 --slave /usr/share/man/man1/keytool.1 keytool.1 /usr/java/jdk1.7.0_09/man/man1/keytool.1
alternatives --install /usr/bin/orbd orbd /usr/java/jdk1.7.0_09/jre/bin/orbd 17069 --slave /usr/share/man/man1/orbd.1 orbd.1 /usr/java/jdk1.7.0_09/man/man1/orbd.1
alternatives --install /usr/bin/pack200 pack200 /usr/java/jdk1.7.0_09/jre/bin/pack200 17069 --slave /usr/share/man/man1/pack200.1 pack200.1 /usr/java/jdk1.7.0_09/man/man1/pack200.1
alternatives --install /usr/bin/policytool policytool /usr/java/jdk1.7.0_09/jre/bin/policytool 17069 --slave /usr/share/man/man1/policytool.1 policytool.1 /usr/java/jdk1.7.0_09/man/man1/policytool.1
alternatives --install /usr/bin/rmid rmid /usr/java/jdk1.7.0_09/jre/bin/rmid 17069 --slave /usr/share/man/man1/rmid.1 rmid.1 /usr/java/jdk1.7.0_09/man/man1/rmid.1
alternatives --install /usr/bin/rmiregistry rmiregistry /usr/java/jdk1.7.0_09/jre/bin/rmiregistry 17069 --slave /usr/share/man/man1/rmiregistry.1 rmiregistry.1 /usr/java/jdk1.7.0_09/man/man1/rmiregistry.1
alternatives --install /usr/bin/servertool servertool /usr/java/jdk1.7.0_09/jre/bin/servertool 17069 --slave /usr/share/man/man1/servertool.1 servertool.1 /usr/java/jdk1.7.0_09/man/man1/servertool.1
alternatives --install /usr/bin/tnameserv tnameserv /usr/java/jdk1.7.0_09/jre/bin/tnameserv 17069 --slave /usr/share/man/man1/tnameserv.1 tnameserv.1 /usr/java/jdk1.7.0_09/man/man1/tnameserv.1
alternatives --install /usr/bin/unpack200 unpack200 /usr/java/jdk1.7.0_09/jre/bin/unpack200 17069 --slave /usr/share/man/man1/unpack200.1 unpack200.1 /usr/java/jdk1.7.0_09/man/man1/unpack200.1
9. Export JAVA_HOME

Code: Select all

export JAVA_HOME="/usr/java/jdk1.7.0_09"

Now you need to make it active (if you have more then one java installed).

Code: Select all

alternatives --config java

You can check current java, javac, javaws and libjavaplugin.so versions like this:

Code: Select all

java -version
 
javaws
 
# this works only if you installed JDK
javac -version
Open http://www.java.com/en/download/installed.jsp in your browser.

Please let me know if I wrote something wrong or something not working.
Last edited by viking on 30 June 2013, 15:24, edited 7 times in total.

User avatar
rugyada
Amministratore
Amministratore
Posts: 1542
Joined: 14 July 2008, 22:58
ROSA: ROSA.Fresh R8 64bit
OpenMandriva: OMLx 4.1 64bit
Kernel: kernel-relea current
Desktop: KDE tutta la vita
country: Italy

Re: [HOW TO] Install JRE/JDK 7u6 from Oracle

Post by rugyada »

Thank you viking.

I moved your how-to in Tutorial section.
Image
ciauu ciauu, ruru

MIB... e le stelle stanno a guardare.
«I grandi spiriti hanno sempre incontrato violenta opposizione da parte delle menti mediocri.»
(Albert Einstein)

User avatar
viking
Utente junior
Utente junior
Posts: 80
Joined: 26 July 2012, 18:43
ROSA: Desktop Fresh R7 x64
OpenMandriva: -
Kernel: 4.1.18-nrjQL-desktop
Desktop: KDE Plasma 5.5.4
country: Serbia

Re: [HOW TO] Install JRE/JDK 7u6 from Oracle

Post by viking »

rugyada wrote:Thank you viking.

I moved your how-to in Tutorial section.
You are welcome.

It would be good if someone can try to install any of those RPMs (jdk-7u6-linux-i586.rpm, jdk-7u6-linux-x64.rpm, jre-7u6-linux-i586.rpm or jre-7u6-linux-x64.rpm) and to let us all know is it posible or not.

jdk-7u6-linux-x64.rpm and jre-7u6-linux-x64.rpm doesn't work here (ROSA 2012 x64).

User avatar
GvMariani
Collaboratore
Collaboratore
Posts: 610
Joined: 27 July 2009, 11:31
ROSA: 2016.1 Fresh R10
OpenMandriva: -
Kernel: 4.19.13-nrj-desktop
Desktop: Plasma 5
country: Italy
Location: Cologno Monzese (MI) - Italia

Re: [HOW TO] Install JRE/JDK 7u6 from Oracle

Post by GvMariani »

viking wrote: You are welcome.
It would be good if someone can try to install any of those RPMs (jdk-7u6-linux-i586.rpm, jdk-7u6-linux-x64.rpm, jre-7u6-linux-i586.rpm or jre-7u6-linux-x64.rpm) and to let us all know is it posible or not.
jdk-7u6-linux-x64.rpm and jre-7u6-linux-x64.rpm doesn't work here (ROSA 2012 x64).
I did (with the x86_64 flavour)...
Indeed the installation fails because of some files not found, after the unpacking of the whole archive;
see the konsole log below:

Code: Select all

installing jre-7u6-linux-x64.rpm
Preparing...
#####################################################################################################
1/1: jre                   
#####################################################################################################
Unpacking JAR files...
rt.jar...
Error: Could not open input file: /usr/java/jre1.7.0_06/lib/rt.pack
 jsse.jar...
Error: Could not open input file: /usr/java/jre1.7.0_06/lib/jsse.pack
charsets.jar...
Error: Could not open input file: /usr/java/jre1.7.0_06/lib/charsets.pack
localedata.jar...
Error: Could not open input file: /usr/java/jre1.7.0_06/lib/ext/localedata.pack
In the above dirs, though, there are files with the same name and extension "jar",
so I guess the errors are caused by a bug in the installation scriptlets (ie searching for "foo.pack" while they should search for "foo.jar")...

However, at the point of the failure, the whole archive is already unpacked in /usr/java and all the needed files are already in place:
so all the steps 7-10 of your guide still can apply and works...

By looking at the /etc/alternatives directory, however, I notice that here there are many entries related to java pointing to the "standard" openjdk files and some of them are pointing to files present also in the new java install

Code: Select all

[giovanni@Rivendell alternatives]$ dir |grep openjdk
lrwxrwxrwx   1 root root    55 2012-08-24 10:54 appletviewer -> /usr/lib/jvm/java-1.6.0-openjdk.x86_64/bin/appletviewer*
lrwxrwxrwx   1 root root    58 2012-08-24 10:54 appletviewer.1.lzma -> /usr/share/man/man1/appletviewer-java-1.6.0-openjdk.1.lzma
lrwxrwxrwx   1 root root    46 2012-08-24 10:54 apt -> /usr/lib/jvm/java-1.6.0-openjdk.x86_64/bin/apt*
lrwxrwxrwx   1 root root    49 2012-08-24 10:54 apt.1.lzma -> /usr/share/man/man1/apt-java-1.6.0-openjdk.1.lzma
lrwxrwxrwx   1 root root    51 2012-08-24 10:54 extcheck -> /usr/lib/jvm/java-1.6.0-openjdk.x86_64/bin/extcheck*
lrwxrwxrwx   1 root root    54 2012-08-24 10:54 extcheck.1.lzma -> /usr/share/man/man1/extcheck-java-1.6.0-openjdk.1.lzma
lrwxrwxrwx   1 root root    46 2012-08-24 10:54 jar -> /usr/lib/jvm/java-1.6.0-openjdk.x86_64/bin/jar*
lrwxrwxrwx   1 root root    49 2012-08-24 10:54 jar.1.lzma -> /usr/share/man/man1/jar-java-1.6.0-openjdk.1.lzma
lrwxrwxrwx   1 root root    52 2012-08-24 10:54 jarsigner -> /usr/lib/jvm/java-1.6.0-openjdk.x86_64/bin/jarsigner*
lrwxrwxrwx   1 root root    55 2012-08-24 10:54 jarsigner.1.lzma -> /usr/share/man/man1/jarsigner-java-1.6.0-openjdk.1.lzma
lrwxrwxrwx   1 root root    46 2012-08-24 10:32 java -> /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java*
lrwxrwxrwx   1 root root    50 2012-08-24 10:32 java.1.lzma -> /usr/share/man/man1/java-java-1.6.0-openjdk.1.lzma
lrwxrwxrwx   1 root root    48 2012-08-24 10:54 javac -> /usr/lib/jvm/java-1.6.0-openjdk.x86_64/bin/javac*
lrwxrwxrwx   1 root root    51 2012-08-24 10:54 javac.1.lzma -> /usr/share/man/man1/javac-java-1.6.0-openjdk.1.lzma
lrwxrwxrwx   1 root root    50 2012-08-24 10:54 javadoc -> /usr/lib/jvm/java-1.6.0-openjdk.x86_64/bin/javadoc*
lrwxrwxrwx   1 root root    53 2012-08-24 10:54 javadoc.1.lzma -> /usr/share/man/man1/javadoc-java-1.6.0-openjdk.1.lzma
lrwxrwxrwx   1 root root    41 2012-06-18 22:04 javadocdir -> /usr/share/javadoc/java-1.6.0-openjdk/api/
lrwxrwxrwx   1 root root    48 2012-08-24 10:54 javah -> /usr/lib/jvm/java-1.6.0-openjdk.x86_64/bin/javah*
lrwxrwxrwx   1 root root    51 2012-08-24 10:54 javah.1.lzma -> /usr/share/man/man1/javah-java-1.6.0-openjdk.1.lzma
lrwxrwxrwx   1 root root    48 2012-08-24 10:54 javap -> /usr/lib/jvm/java-1.6.0-openjdk.x86_64/bin/javap*
lrwxrwxrwx   1 root root    51 2012-08-24 10:54 javap.1.lzma -> /usr/share/man/man1/javap-java-1.6.0-openjdk.1.lzma
lrwxrwxrwx   1 root root    38 2012-08-24 10:54 java_sdk -> /usr/lib/jvm/java-1.6.0-openjdk.x86_64/
lrwxrwxrwx   1 root root    38 2012-08-14 22:04 java_sdk_1.6.0 -> /usr/lib/jvm/java-1.6.0-openjdk.x86_64/
lrwxrwxrwx   1 root root    46 2012-08-14 22:04 java_sdk_1.6.0_exports -> /usr/lib/jvm-exports/java-1.6.0-openjdk.x86_64/
lrwxrwxrwx   1 root root    46 2012-08-24 10:54 java_sdk_exports -> /usr/lib/jvm-exports/java-1.6.0-openjdk.x86_64/
lrwxrwxrwx   1 root root    38 2012-08-14 22:04 java_sdk_openjdk -> /usr/lib/jvm/java-1.6.0-openjdk.x86_64/
lrwxrwxrwx   1 root root    46 2012-08-14 22:04 java_sdk_openjdk_exports -> /usr/lib/jvm-exports/java-1.6.0-openjdk.x86_64/
lrwxrwxrwx   1 root root    63 2011-01-01 16:40 jce_1.6.0_openjdk_local_policy.x86_64 -> /var/lib/rpm/alternatives/jce_1.6.0_openjdk_local_policy.x86_64
lrwxrwxrwx   1 root root    68 2011-10-07 13:58 jce_1.6.0_openjdk_us_export_policy.x86_64 -> /usr/lib/jvm-private/java-1.6.0-sun/jce/vanilla/US_export_policy.jar
lrwxrwxrwx   1 root root    51 2012-08-24 10:54 jconsole -> /usr/lib/jvm/java-1.6.0-openjdk.x86_64/bin/jconsole*
lrwxrwxrwx   1 root root    54 2012-08-24 10:54 jconsole.1.lzma -> /usr/share/man/man1/jconsole-java-1.6.0-openjdk.1.lzma
lrwxrwxrwx   1 root root    46 2012-08-24 10:54 jdb -> /usr/lib/jvm/java-1.6.0-openjdk.x86_64/bin/jdb*
lrwxrwxrwx   1 root root    49 2012-08-24 10:54 jdb.1.lzma -> /usr/share/man/man1/jdb-java-1.6.0-openjdk.1.lzma
lrwxrwxrwx   1 root root    47 2012-08-24 10:54 jhat -> /usr/lib/jvm/java-1.6.0-openjdk.x86_64/bin/jhat*
lrwxrwxrwx   1 root root    50 2012-08-24 10:54 jhat.1.lzma -> /usr/share/man/man1/jhat-java-1.6.0-openjdk.1.lzma
lrwxrwxrwx   1 root root    48 2012-08-24 10:54 jinfo -> /usr/lib/jvm/java-1.6.0-openjdk.x86_64/bin/jinfo*
lrwxrwxrwx   1 root root    51 2012-08-24 10:54 jinfo.1.lzma -> /usr/share/man/man1/jinfo-java-1.6.0-openjdk.1.lzma
lrwxrwxrwx   1 root root    47 2012-08-24 10:54 jmap -> /usr/lib/jvm/java-1.6.0-openjdk.x86_64/bin/jmap*
lrwxrwxrwx   1 root root    50 2012-08-24 10:54 jmap.1.lzma -> /usr/share/man/man1/jmap-java-1.6.0-openjdk.1.lzma
lrwxrwxrwx   1 root root    46 2012-08-24 10:54 jps -> /usr/lib/jvm/java-1.6.0-openjdk.x86_64/bin/jps*
lrwxrwxrwx   1 root root    49 2012-08-24 10:54 jps.1.lzma -> /usr/share/man/man1/jps-java-1.6.0-openjdk.1.lzma
lrwxrwxrwx   1 root root    37 2012-08-24 10:32 jre -> /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/
lrwxrwxrwx   1 root root    37 2012-08-14 22:04 jre_1.6.0 -> /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/
lrwxrwxrwx   1 root root    45 2012-08-14 22:04 jre_1.6.0_exports -> /usr/lib/jvm-exports/jre-1.6.0-openjdk.x86_64/
lrwxrwxrwx   1 root root    45 2012-08-24 10:32 jre_exports -> /usr/lib/jvm-exports/jre-1.6.0-openjdk.x86_64/
lrwxrwxrwx   1 root root    37 2012-08-14 22:04 jre_openjdk -> /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/
lrwxrwxrwx   1 root root    45 2012-08-14 22:04 jre_openjdk_exports -> /usr/lib/jvm-exports/jre-1.6.0-openjdk.x86_64/
lrwxrwxrwx   1 root root    53 2012-08-24 10:54 jrunscript -> /usr/lib/jvm/java-1.6.0-openjdk.x86_64/bin/jrunscript*
lrwxrwxrwx   1 root root    56 2012-08-24 10:54 jrunscript.1.lzma -> /usr/share/man/man1/jrunscript-java-1.6.0-openjdk.1.lzma
lrwxrwxrwx   1 root root    52 2012-08-24 10:54 jsadebugd -> /usr/lib/jvm/java-1.6.0-openjdk.x86_64/bin/jsadebugd*
lrwxrwxrwx   1 root root    55 2012-08-24 10:54 jsadebugd.1.lzma -> /usr/share/man/man1/jsadebugd-java-1.6.0-openjdk.1.lzma
lrwxrwxrwx   1 root root    49 2012-08-24 10:54 jstack -> /usr/lib/jvm/java-1.6.0-openjdk.x86_64/bin/jstack*
lrwxrwxrwx   1 root root    52 2012-08-24 10:54 jstack.1.lzma -> /usr/share/man/man1/jstack-java-1.6.0-openjdk.1.lzma
lrwxrwxrwx   1 root root    48 2012-08-24 10:54 jstat -> /usr/lib/jvm/java-1.6.0-openjdk.x86_64/bin/jstat*
lrwxrwxrwx   1 root root    51 2012-08-24 10:54 jstat.1.lzma -> /usr/share/man/man1/jstat-java-1.6.0-openjdk.1.lzma
lrwxrwxrwx   1 root root    49 2012-08-24 10:54 jstatd -> /usr/lib/jvm/java-1.6.0-openjdk.x86_64/bin/jstatd*
lrwxrwxrwx   1 root root    52 2012-08-24 10:54 jstatd.1.lzma -> /usr/share/man/man1/jstatd-java-1.6.0-openjdk.1.lzma
lrwxrwxrwx   1 root root    49 2012-08-24 10:32 keytool -> /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/keytool*
lrwxrwxrwx   1 root root    53 2012-08-24 10:32 keytool.1.lzma -> /usr/share/man/man1/keytool-java-1.6.0-openjdk.1.lzma
lrwxrwxrwx   1 root root    55 2012-08-24 10:54 native2ascii -> /usr/lib/jvm/java-1.6.0-openjdk.x86_64/bin/native2ascii*
lrwxrwxrwx   1 root root    58 2012-08-24 10:54 native2ascii.1.lzma -> /usr/share/man/man1/native2ascii-java-1.6.0-openjdk.1.lzma
lrwxrwxrwx   1 root root    46 2012-08-24 10:32 orbd -> /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/orbd*
lrwxrwxrwx   1 root root    50 2012-08-24 10:32 orbd.1.lzma -> /usr/share/man/man1/orbd-java-1.6.0-openjdk.1.lzma
lrwxrwxrwx   1 root root    49 2012-08-24 10:32 pack200 -> /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/pack200*
lrwxrwxrwx   1 root root    53 2012-08-24 10:32 pack200.1.lzma -> /usr/share/man/man1/pack200-java-1.6.0-openjdk.1.lzma
lrwxrwxrwx   1 root root    53 2012-08-24 10:54 policytool -> /usr/lib/jvm/java-1.6.0-openjdk.x86_64/bin/policytool*
lrwxrwxrwx   1 root root    56 2012-08-24 10:54 policytool.1.lzma -> /usr/share/man/man1/policytool-java-1.6.0-openjdk.1.lzma
lrwxrwxrwx   1 root root    47 2012-08-24 10:54 rmic -> /usr/lib/jvm/java-1.6.0-openjdk.x86_64/bin/rmic*
lrwxrwxrwx   1 root root    50 2012-08-24 10:54 rmic.1.lzma -> /usr/share/man/man1/rmic-java-1.6.0-openjdk.1.lzma
lrwxrwxrwx   1 root root    46 2012-08-24 10:32 rmid -> /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/rmid*
lrwxrwxrwx   1 root root    50 2012-08-24 10:32 rmid.1.lzma -> /usr/share/man/man1/rmid-java-1.6.0-openjdk.1.lzma
lrwxrwxrwx   1 root root    53 2012-08-24 10:32 rmiregistry -> /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/rmiregistry*
lrwxrwxrwx   1 root root    57 2012-08-24 10:32 rmiregistry.1.lzma -> /usr/share/man/man1/rmiregistry-java-1.6.0-openjdk.1.lzma
lrwxrwxrwx   1 root root    52 2012-08-24 10:54 schemagen -> /usr/lib/jvm/java-1.6.0-openjdk.x86_64/bin/schemagen*
lrwxrwxrwx   1 root root    55 2012-08-24 10:54 schemagen.1.lzma -> /usr/share/man/man1/schemagen-java-1.6.0-openjdk.1.lzma
lrwxrwxrwx   1 root root    52 2012-08-24 10:54 serialver -> /usr/lib/jvm/java-1.6.0-openjdk.x86_64/bin/serialver*
lrwxrwxrwx   1 root root    55 2012-08-24 10:54 serialver.1.lzma -> /usr/share/man/man1/serialver-java-1.6.0-openjdk.1.lzma
lrwxrwxrwx   1 root root    52 2012-08-24 10:32 servertool -> /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/servertool*
lrwxrwxrwx   1 root root    56 2012-08-24 10:32 servertool.1.lzma -> /usr/share/man/man1/servertool-java-1.6.0-openjdk.1.lzma
lrwxrwxrwx   1 root root    51 2012-08-24 10:32 tnameserv -> /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/tnameserv*
lrwxrwxrwx   1 root root    55 2012-08-24 10:32 tnameserv.1.lzma -> /usr/share/man/man1/tnameserv-java-1.6.0-openjdk.1.lzma
lrwxrwxrwx   1 root root    51 2012-08-24 10:32 unpack200 -> /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/unpack200*
lrwxrwxrwx   1 root root    55 2012-08-24 10:32 unpack200.1.lzma -> /usr/share/man/man1/unpack200-java-1.6.0-openjdk.1.lzma
lrwxrwxrwx   1 root root    48 2012-08-24 10:54 wsgen -> /usr/lib/jvm/java-1.6.0-openjdk.x86_64/bin/wsgen*
lrwxrwxrwx   1 root root    51 2012-08-24 10:54 wsgen.1.lzma -> /usr/share/man/man1/wsgen-java-1.6.0-openjdk.1.lzma
lrwxrwxrwx   1 root root    51 2012-08-24 10:54 wsimport -> /usr/lib/jvm/java-1.6.0-openjdk.x86_64/bin/wsimport*
lrwxrwxrwx   1 root root    54 2012-08-24 10:54 wsimport.1.lzma -> /usr/share/man/man1/wsimport-java-1.6.0-openjdk.1.lzma
lrwxrwxrwx   1 root root    46 2012-08-24 10:54 xjc -> /usr/lib/jvm/java-1.6.0-openjdk.x86_64/bin/xjc*
lrwxrwxrwx   1 root root    49 2012-08-24 10:54 xjc.1.lzma -> /usr/share/man/man1/xjc-java-1.6.0-openjdk.1.lzma
Common entries or possibly interesting:

Code: Select all

java
java.1.lzma
jre
keytool
orbd
keytool.1.lzma
orbd.1.lzma
policytool
rmid
policytool.1.lzma
rmid.1.lzma
rmiregistry.
servertool
rmiregistry.1.lzma
servertool.1.lzma
unpack200.1
unpack200.1.lzma
I'm wondering if some other entries here need to be updated to have a properly working java install...

GvM
Last edited by GvMariani on 24 August 2012, 14:42, edited 1 time in total.

User avatar
viking
Utente junior
Utente junior
Posts: 80
Joined: 26 July 2012, 18:43
ROSA: Desktop Fresh R7 x64
OpenMandriva: -
Kernel: 4.1.18-nrjQL-desktop
Desktop: KDE Plasma 5.5.4
country: Serbia

Re: [HOW TO] Install JRE/JDK 7u6 from Oracle

Post by viking »

GvMariani wrote:
I did (with the x86_64 flavour)...
Indeed the installation fails because of some files not found, after the unpacking of the whole archive;
see the konsole log below:

Code: Select all

installing jre-7u6-linux-x64.rpm
Preparing...
#####################################################################################################
1/1: jre                   
#####################################################################################################
Unpacking JAR files...
rt.jar...
Error: Could not open input file: /usr/java/jre1.7.0_06/lib/rt.pack
 jsse.jar...
Error: Could not open input file: /usr/java/jre1.7.0_06/lib/jsse.pack
charsets.jar...
Error: Could not open input file: /usr/java/jre1.7.0_06/lib/charsets.pack
localedata.jar...
Error: Could not open input file: /usr/java/jre1.7.0_06/lib/ext/localedata.pack
In the above dirs, though, there are files with the same name and extension "jar",
so I guess the errors are cause by a bug in the installation scriptlets (ie searching for "foo.pack" while they should search for "foo.jar")...

However, at the point of the failure, the whole archive is already unpacked in /usr/java and all the needed files are already in place:
so all the steps 7-10 of your guide still can apply and works...

By looking at the /etc/alternatives directory, however, I notice that here there are many entries related to java pointing to the "standard" openjdk files and some of them are pointing to files present also in the new java install

I'm wondering if some other entries here need to be updated to have a properly working java install...

GvM
Are you sure that you got all the files with RMP install?

May you please compare content of your /usr/java/jre1.7.0_06 with content of jre-7u6-linux-x64.tar.gz? I am pretty sure that they are not same, since they were diffident on my machine. Many libraries were missing.

You need to have this after steps 7-10 for JRE:

Code: Select all

[viking@delta alternatives]$ ls -la |grep java
lrwxrwxrwx   1 root root    25 Aug 22 20:08 java -> /usr/java/latest/bin/java*
lrwxrwxrwx   1 root root    27 Aug 22 20:08 javaws -> /usr/java/latest/bin/javaws*
lrwxrwxrwx   1 root root    38 Aug 22 20:08 libjavaplugin.so.x86_64 -> /usr/java/latest/lib/amd64/libnpjp2.so*
javac, jar and some other staff are part of JDK, not JRE.

User avatar
GvMariani
Collaboratore
Collaboratore
Posts: 610
Joined: 27 July 2009, 11:31
ROSA: 2016.1 Fresh R10
OpenMandriva: -
Kernel: 4.19.13-nrj-desktop
Desktop: Plasma 5
country: Italy
Location: Cologno Monzese (MI) - Italia

Re: [HOW TO] Install JRE/JDK 7u6 from Oracle

Post by GvMariani »

viking wrote: Are you sure that you got all the files with RMP install?
May you please compare content of your /usr/java/jre1.7.0_06 with content of jre-7u6-linux-x64.tar.gz? I am pretty sure that they are not same, since they were diffident on my machine. Many libraries were missing.
Done.
They are identical AFAICT:
the only one difference is a file (registration.xml) in /usr/java/jre1.7.0_06/lib/servicetag/: this one is present only in the rpm...
javac, jar and some other staff are part of JDK, not JRE
Yep but all the links I listed are executables or man pages belonging to the JRE, not to the JDK:
so my question remains...

GvM

User avatar
viking
Utente junior
Utente junior
Posts: 80
Joined: 26 July 2012, 18:43
ROSA: Desktop Fresh R7 x64
OpenMandriva: -
Kernel: 4.1.18-nrjQL-desktop
Desktop: KDE Plasma 5.5.4
country: Serbia

Re: [HOW TO] Install JRE/JDK 7u6 from Oracle

Post by viking »

GvMariani wrote: Yep but all the links I listed are executables or man pages belonging to the JRE, not to the JDK:
so my question remains...

GvM
OK, you have more links then me, since you have more java versions installed (oracle java, sun java, openjdk...), so that is expected.

I just made some quick tests to see if I understand this alternatives thing correctly.

Code: Select all

[viking@delta ~]$ cd /etc/alternatives/

[viking@delta alternatives]$ sudo alternatives --config java

There are 2 programs which provide `java'.

  Selection    Command
-----------------------------------------------
*+    1        /usr/java/latest/bin/java
      2        /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java

Enter to keep the default[*], or type selection number: 2
Using `/usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java' to provide `java'.

[viking@delta alternatives]$ ls -la | grep java
lrwxrwxrwx   1 root root    46 Aug 24 18:10 java -> /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java*
lrwxrwxrwx   1 root root    48 Aug 24 18:10 java.1.xz -> /usr/share/man/man1/java-java-1.6.0-openjdk.1.xz
lrwxrwxrwx   1 root root    27 Aug 22 20:08 javaws -> /usr/java/latest/bin/javaws*
lrwxrwxrwx   1 root root    51 Aug 24 18:10 keytool.1.xz -> /usr/share/man/man1/keytool-java-1.6.0-openjdk.1.xz
lrwxrwxrwx   1 root root    38 Aug 22 20:08 libjavaplugin.so.x86_64 -> /usr/java/latest/lib/amd64/libnpjp2.so*
lrwxrwxrwx   1 root root    48 Aug 24 18:10 orbd.1.xz -> /usr/share/man/man1/orbd-java-1.6.0-openjdk.1.xz
lrwxrwxrwx   1 root root    51 Aug 24 18:10 pack200.1.xz -> /usr/share/man/man1/pack200-java-1.6.0-openjdk.1.xz
lrwxrwxrwx   1 root root    48 Aug 24 18:10 rmid.1.xz -> /usr/share/man/man1/rmid-java-1.6.0-openjdk.1.xz
lrwxrwxrwx   1 root root    55 Aug 24 18:10 rmiregistry.1.xz -> /usr/share/man/man1/rmiregistry-java-1.6.0-openjdk.1.xz
lrwxrwxrwx   1 root root    54 Aug 24 18:10 servertool.1.xz -> /usr/share/man/man1/servertool-java-1.6.0-openjdk.1.xz
lrwxrwxrwx   1 root root    53 Aug 24 18:10 tnameserv.1.xz -> /usr/share/man/man1/tnameserv-java-1.6.0-openjdk.1.xz
lrwxrwxrwx   1 root root    53 Aug 24 18:10 unpack200.1.xz -> /usr/share/man/man1/unpack200-java-1.6.0-openjdk.1.xz

[viking@delta alternatives]$ ls -la | grep openjdk
lrwxrwxrwx   1 root root    46 Aug 24 18:30 java -> /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java*
lrwxrwxrwx   1 root root    48 Aug 24 18:30 java.1.xz -> /usr/share/man/man1/java-java-1.6.0-openjdk.1.xz
lrwxrwxrwx   1 root root    37 Aug 24 18:30 jre -> /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/
lrwxrwxrwx   1 root root    37 Aug 24 18:09 jre_1.6.0 -> /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/
lrwxrwxrwx   1 root root    45 Aug 24 18:09 jre_1.6.0_exports -> /usr/lib/jvm-exports/jre-1.6.0-openjdk.x86_64/
lrwxrwxrwx   1 root root    45 Aug 24 18:30 jre_exports -> /usr/lib/jvm-exports/jre-1.6.0-openjdk.x86_64/
lrwxrwxrwx   1 root root    37 Aug 24 18:09 jre_openjdk -> /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/
lrwxrwxrwx   1 root root    45 Aug 24 18:09 jre_openjdk_exports -> /usr/lib/jvm-exports/jre-1.6.0-openjdk.x86_64/
lrwxrwxrwx   1 root root    49 Aug 24 18:30 keytool -> /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/keytool*
lrwxrwxrwx   1 root root    51 Aug 24 18:30 keytool.1.xz -> /usr/share/man/man1/keytool-java-1.6.0-openjdk.1.xz
lrwxrwxrwx   1 root root    46 Aug 24 18:30 orbd -> /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/orbd*
lrwxrwxrwx   1 root root    48 Aug 24 18:30 orbd.1.xz -> /usr/share/man/man1/orbd-java-1.6.0-openjdk.1.xz
lrwxrwxrwx   1 root root    49 Aug 24 18:30 pack200 -> /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/pack200*
lrwxrwxrwx   1 root root    51 Aug 24 18:30 pack200.1.xz -> /usr/share/man/man1/pack200-java-1.6.0-openjdk.1.xz
lrwxrwxrwx   1 root root    46 Aug 24 18:30 rmid -> /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/rmid*
lrwxrwxrwx   1 root root    48 Aug 24 18:30 rmid.1.xz -> /usr/share/man/man1/rmid-java-1.6.0-openjdk.1.xz
lrwxrwxrwx   1 root root    53 Aug 24 18:30 rmiregistry -> /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/rmiregistry*
lrwxrwxrwx   1 root root    55 Aug 24 18:30 rmiregistry.1.xz -> /usr/share/man/man1/rmiregistry-java-1.6.0-openjdk.1.xz
lrwxrwxrwx   1 root root    52 Aug 24 18:30 servertool -> /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/servertool*
lrwxrwxrwx   1 root root    54 Aug 24 18:30 servertool.1.xz -> /usr/share/man/man1/servertool-java-1.6.0-openjdk.1.xz
lrwxrwxrwx   1 root root    51 Aug 24 18:30 tnameserv -> /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/tnameserv*
lrwxrwxrwx   1 root root    53 Aug 24 18:30 tnameserv.1.xz -> /usr/share/man/man1/tnameserv-java-1.6.0-openjdk.1.xz
lrwxrwxrwx   1 root root    51 Aug 24 18:30 unpack200 -> /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/unpack200*
lrwxrwxrwx   1 root root    53 Aug 24 18:30 unpack200.1.xz -> /usr/share/man/man1/unpack200-java-1.6.0-openjdk.1.xz

and then

Code: Select all

[viking@delta ~]$ sudo alternatives --config java

There are 2 programs which provide `java'.

  Selection    Command
-----------------------------------------------
 +    1        /usr/java/latest/bin/java
*     2        /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java

Enter to keep the default[*], or type selection number: 1
Using `/usr/java/latest/bin/java' to provide `java'.

[viking@delta alternatives]$ ls -la | grep java
lrwxrwxrwx   1 root root    25 Aug 24 18:09 java -> /usr/java/latest/bin/java*
lrwxrwxrwx   1 root root    27 Aug 22 20:08 javaws -> /usr/java/latest/bin/javaws*
lrwxrwxrwx   1 root root    38 Aug 22 20:08 libjavaplugin.so.x86_64 -> /usr/java/latest/lib/amd64/libnpjp2.so*

[viking@delta alternatives]$ ls -la | grep openjdk
lrwxrwxrwx   1 root root    37 Aug 24 18:09 jre_1.6.0 -> /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/
lrwxrwxrwx   1 root root    45 Aug 24 18:09 jre_1.6.0_exports -> /usr/lib/jvm-exports/jre-1.6.0-openjdk.x86_64/
lrwxrwxrwx   1 root root    37 Aug 24 18:09 jre_openjdk -> /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/
lrwxrwxrwx   1 root root    45 Aug 24 18:09 jre_openjdk_exports -> /usr/lib/jvm-exports/jre-1.6.0-openjdk.x86_64/
OK. I expected something like that.



I understand that you would like to have working man pages when you switch to Oracle Java, so I added this for test:

Code: Select all

[viking@delta alternatives]$ sudo alternatives --install /usr/share/man/man1/java.1 java.1 /usr/java/latest/man/man1/java.1 2000
$man java works after this, so I will update this guide later and will add all other man pages in same way.

Maybe I should use automatic priority instead of 2000 for man pages. I will think about that.

User avatar
viking
Utente junior
Utente junior
Posts: 80
Joined: 26 July 2012, 18:43
ROSA: Desktop Fresh R7 x64
OpenMandriva: -
Kernel: 4.1.18-nrjQL-desktop
Desktop: KDE Plasma 5.5.4
country: Serbia

Re: [HOW TO] Install JRE/JDK 7u6 from Oracle

Post by viking »

GvMariani wrote: Yep but all the links I listed are executables or man pages belonging to the JRE, not to the JDK:
so my question remains...
GvM
Please try with updated tutorial.

I hope this is what you wanted. 8-)

User avatar
promeneur
Utente senior
Utente senior
Posts: 547
Joined: 6 February 2009, 17:47
ROSA: -
OpenMandriva: 2010.3 i586
Kernel: 3.5.7 nrj dsktp pae
Desktop: MIB kde 4.8.4
country: France

Re: [HOW TO] Install JRE/JDK 7u6 from Oracle (updated)

Post by promeneur »

hello

i used this hwto with 2010.2 32 bit it works except

alternatives --install /usr/lib/xulrunner-5.0/plugins/libjavaplugin.so xulrunner-1.9-javaplugin.so /usr/java/jre1.7.0_06/lib/i386/libnpjp2.so 17065

i have many xulrunner in /usr/lib/, which one is good ?

xulrunner
xulrunner 1.9.2.[13-26]
xulrunner 2.0.1
xulrunner 10.0.[1-5]

thanks

note : there is a trap with firefox it seems that it does not refresh the java plugin. it lists the old 1.7.0_5
i must move in another directory the link in /usr/lib/mozilla/plugins/ (it is good, it points to 1.7.0_7)
then
launch firefox
then
quit firefox
then
copy again the link to java plugin in /usr/lib/mozilla/plugins/
then
launc firefox
then
firefox list de 1.7.0_7 instead of 1.7.0_5
Asus M2N, AMD Athlon 64 X2 5000+, 8 GB, Asus Nvidia 210 silent, Linksys WMP600N, Plugable USB-BT4LE Bluetooth 4.0 Adapter, lecteur multicarte Addonics AEIDDSAU, HP LaserJet 1220

User avatar
viking
Utente junior
Utente junior
Posts: 80
Joined: 26 July 2012, 18:43
ROSA: Desktop Fresh R7 x64
OpenMandriva: -
Kernel: 4.1.18-nrjQL-desktop
Desktop: KDE Plasma 5.5.4
country: Serbia

Re: [HOW TO] Install JRE/JDK 7u6 from Oracle (updated)

Post by viking »

promeneur wrote:hello

i used this hwto with 2010.2 32 bit it works except

alternatives --install /usr/lib/xulrunner-5.0/plugins/libjavaplugin.so xulrunner-1.9-javaplugin.so /usr/java/jre1.7.0_06/lib/i386/libnpjp2.so 17065

i have many xulrunner in /usr/lib/, which one is good ?

xulrunner
xulrunner 1.9.2.[13-26]
xulrunner 2.0.1
xulrunner 10.0.[1-5]

thanks

note : there is a trap with firefox it seems that it does not refresh the java plugin. it lists the old 1.7.0_5
i must move in another directory the link in /usr/lib/mozilla/plugins/ (it is good, it points to 1.7.0_7)
then
launch firefox
then
quit firefox
then
copy again the link to java plugin in /usr/lib/mozilla/plugins/
then
launc firefox
then
firefox list de 1.7.0_7 instead of 1.7.0_5
Do you have this folder?

Code: Select all

/usr/lib/xulrunner-addons/plugins/
If you have it use that one instead.

Code: Select all

alternatives --install /usr/lib/xulrunner-addons/plugins/libjavaplugin.so xulrunner-1.9-javaplugin.so /usr/java/jre1.7.0_06/lib/i386/libnpjp2.so 17065
Keep in mind that you have to run

Code: Select all

alternatives --config java
If you have more then one java installed, you need to choose version that you want to use.

For example:

Code: Select all

There are 2 programs which provide `java'.

  Selection    Command
-----------------------------------------------
 +    1        /usr/java/latest/bin/java
*     2        /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java

Enter to keep the default[*], or type selection number: 1
Using `/usr/java/latest/bin/java' to provide `java'.
Anything else will partially break alternatives system.

User avatar
promeneur
Utente senior
Utente senior
Posts: 547
Joined: 6 February 2009, 17:47
ROSA: -
OpenMandriva: 2010.3 i586
Kernel: 3.5.7 nrj dsktp pae
Desktop: MIB kde 4.8.4
country: France

Re: [HOW TO] Install JRE/JDK 7u6 from Oracle (updated)

Post by promeneur »

i have not the same choice as you

[root@localhost ~]# alternatives --config java

There are 2 programs which provide `java'.

Selection Command
-----------------------------------------------
1 /usr/lib/jvm/jre-1.6.0-openjdk/bin/java
*+ 2 /usr/java/jre1.7.0_07/bin/java

Enter to keep the default[*], or type selection number: 2
Using `/usr/java/jre1.7.0_07/bin/java' to provide `java'.
[root@localhost ~]#
Asus M2N, AMD Athlon 64 X2 5000+, 8 GB, Asus Nvidia 210 silent, Linksys WMP600N, Plugable USB-BT4LE Bluetooth 4.0 Adapter, lecteur multicarte Addonics AEIDDSAU, HP LaserJet 1220

User avatar
viking
Utente junior
Utente junior
Posts: 80
Joined: 26 July 2012, 18:43
ROSA: Desktop Fresh R7 x64
OpenMandriva: -
Kernel: 4.1.18-nrjQL-desktop
Desktop: KDE Plasma 5.5.4
country: Serbia

Re: [HOW TO] Install JRE/JDK 7u9 from Oracle (updated 18.10.

Post by viking »

I finally found some time to update this tutorial.

I updated links to point to JRE/JDK 7u9 files on Oracle site and updated scripts.

ENJOY!

Image There are 4 little pictures on Java SE Downloads page, and first of them is Java Platform (JDK) 7u9, but if you click there you will be sent to 7u7 page, so please use links I posted that points correctly to 7u9!

Post Reply