[HOW TO] Install JRE/JDK 7u45 from Oracle (updated 04.11.2013.)

Ответить
Аватара пользователя
viking
Сообщения: 53
Зарегистрирован: 31 июл 2012, 21:10
Operating system: Rosa 2012 x64
KDE 4.8.3
nrj-netbook 3.4.11

[HOW TO] Install JRE/JDK 7u45 from Oracle (updated 04.11.2013.)

Сообщение viking » 30 июн 2013, 16:17

UPDATED for Java 7u45 on 04.11.2013.

This guide is rewritten. I left only part that deal with RPM packages, because there are no more problems with their installation.

Browser plugins are tested in Firefox, Google Chrome and Chromium.

Please let me know if I wrote something wrong or if there is something that not working!


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

You can download the official Oracle Java RPMs (jre-7u45-linux-i586.rpm, jre-7u45-linux-x64.rpm, jdk-7u45-linux-i586.rpm or jdk-7u45-linux-x64.rpm) from
http://www.oracle.com/technetwork/java/ ... index.html

Please notice that xulrunner might have different version and location, so please check exact location of your xulrunner first.

For 64bit system:

Код: Выделить всё

echo `ls /usr/lib64/ | grep xulrunner`
For 32bit system:

Код: Выделить всё

echo `ls /usr/lib/ | grep xulrunner`
If you got xulrunner-16.0/ as result, you do not have to change anything. If you get for example xulrunner-5.0/ simply change 16 to 5 in marked line.



JRE 7u45 64bit

1. Download jre-7u45-linux-x64.rpm from
http://www.oracle.com/technetwork/java/ ... 80261.html

2. Type and provide root password

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

4. Install RPM package

Код: Выделить всё

urpmi jre-7u45-linux-x64.rpm
5. Install JRE and man pages

Код: Выделить всё

alternatives --install /usr/bin/javaControlPanel javaControlPanel /usr/java/jre1.7.0_45/bin/ControlPanel 17451
alternatives --install /usr/bin/java java /usr/java/jre1.7.0_45/bin/java 17451 --slave /usr/share/man/man1/java.1 java.1 /usr/java/jre1.7.0_45/man/man1/java.1
alternatives --install /usr/bin/java_vm java_vm /usr/java/jre1.7.0_45/bin/java_vm 17451
alternatives --install /usr/bin/javaws javaws /usr/java/jre1.7.0_45/bin/javaws 17451 --slave /usr/share/man/man1/javaws.1 javaws.1 /usr/java/jre1.7.0_45/man/man1/javaws.1
alternatives --install /usr/bin/jcontrol jcontrol /usr/java/jre1.7.0_45/bin/jcontrol 17451
alternatives --install /usr/bin/keytool keytool /usr/java/jre1.7.0_45/bin/keytool 17451 --slave /usr/share/man/man1/keytool.1 keytool.1 /usr/java/jre1.7.0_45/man/man1/keytool.1
alternatives --install /usr/bin/orbd orbd /usr/java/jre1.7.0_45/bin/orbd 17451 --slave /usr/share/man/man1/orbd.1 orbd.1 /usr/java/jre1.7.0_45/man/man1/orbd.1
alternatives --install /usr/bin/pack200 pack200 /usr/java/jre1.7.0_45/bin/pack200 17451 --slave /usr/share/man/man1/pack200.1 pack200.1 /usr/java/jre1.7.0_45/man/man1/pack200.1
alternatives --install /usr/bin/policytool policytool /usr/java/jre1.7.0_45/bin/policytool 17451 --slave /usr/share/man/man1/policytool.1 policytool.1 /usr/java/jre1.7.0_45/man/man1/policytool.1
alternatives --install /usr/bin/rmid rmid /usr/java/jre1.7.0_45/bin/rmid 17451 --slave /usr/share/man/man1/rmid.1 rmid.1 /usr/java/jre1.7.0_45/man/man1/rmid.1
alternatives --install /usr/bin/rmiregistry rmiregistry /usr/java/jre1.7.0_45/bin/rmiregistry 17451 --slave /usr/share/man/man1/rmiregistry.1 rmiregistry.1 /usr/java/jre1.7.0_45/man/man1/rmiregistry.1
alternatives --install /usr/bin/servertool servertool /usr/java/jre1.7.0_45/bin/servertool 17451 --slave /usr/share/man/man1/servertool.1 servertool.1 /usr/java/jre1.7.0_45/man/man1/servertool.1
alternatives --install /usr/bin/tnameserv tnameserv /usr/java/jre1.7.0_45/bin/tnameserv 17451 --slave /usr/share/man/man1/tnameserv.1 tnameserv.1 /usr/java/jre1.7.0_45/man/man1/tnameserv.1
alternatives --install /usr/bin/unpack200 unpack200 /usr/java/jre1.7.0_45/bin/unpack200 17451 --slave /usr/share/man/man1/unpack200.1 unpack200.1 /usr/java/jre1.7.0_45/man/man1/unpack200.1
6. Install Browser Plugins

Код: Выделить всё

# change xulrunner version if needed in next line
alternatives --install /usr/lib64/xulrunner-16.0/plugins/libjavaplugin.so xulrunner-javaplugin.so /usr/java/jre1.7.0_45/lib/amd64/libnpjp2.so 17451
alternatives --install /usr/lib64/mozilla/plugins/libjavaplugin.so mozilla-javaplugin.so /usr/java/jre1.7.0_45/lib/amd64/libnpjp2.so 17451
7. Export JAVA_HOME

Код: Выделить всё

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


JRE 7u45 32bit

1. Download jre-7u45-linux-i586.rpm from
http://www.oracle.com/technetwork/java/ ... 80261.html

2. Type and provide root password

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

4. Install RPM package

Код: Выделить всё

urpmi jre-7u45-linux-i586.rpm
5. Install JRE and man pages

Код: Выделить всё

alternatives --install /usr/bin/javaControlPanel javaControlPanel /usr/java/jre1.7.0_45/bin/ControlPanel 17451
alternatives --install /usr/bin/java java /usr/java/jre1.7.0_45/bin/java 17451 --slave /usr/share/man/man1/java.1 java.1 /usr/java/jre1.7.0_45/man/man1/java.1
alternatives --install /usr/bin/java_vm java_vm /usr/java/jre1.7.0_45/bin/java_vm 17451
alternatives --install /usr/bin/javaws javaws /usr/java/jre1.7.0_45/bin/javaws 17451 --slave /usr/share/man/man1/javaws.1 javaws.1 /usr/java/jre1.7.0_45/man/man1/javaws.1
alternatives --install /usr/bin/jcontrol jcontrol /usr/java/jre1.7.0_45/bin/jcontrol 17451
alternatives --install /usr/bin/keytool keytool /usr/java/jre1.7.0_45/bin/keytool 17451 --slave /usr/share/man/man1/keytool.1 keytool.1 /usr/java/jre1.7.0_45/man/man1/keytool.1
alternatives --install /usr/bin/orbd orbd /usr/java/jre1.7.0_45/bin/orbd 17451 --slave /usr/share/man/man1/orbd.1 orbd.1 /usr/java/jre1.7.0_45/man/man1/orbd.1
alternatives --install /usr/bin/pack200 pack200 /usr/java/jre1.7.0_45/bin/pack200 17451 --slave /usr/share/man/man1/pack200.1 pack200.1 /usr/java/jre1.7.0_45/man/man1/pack200.1
alternatives --install /usr/bin/policytool policytool /usr/java/jre1.7.0_45/bin/policytool 17451 --slave /usr/share/man/man1/policytool.1 policytool.1 /usr/java/jre1.7.0_45/man/man1/policytool.1
alternatives --install /usr/bin/rmid rmid /usr/java/jre1.7.0_45/bin/rmid 17451 --slave /usr/share/man/man1/rmid.1 rmid.1 /usr/java/jre1.7.0_45/man/man1/rmid.1
alternatives --install /usr/bin/rmiregistry rmiregistry /usr/java/jre1.7.0_45/bin/rmiregistry 17451 --slave /usr/share/man/man1/rmiregistry.1 rmiregistry.1 /usr/java/jre1.7.0_45/man/man1/rmiregistry.1
alternatives --install /usr/bin/servertool servertool /usr/java/jre1.7.0_45/bin/servertool 17451 --slave /usr/share/man/man1/servertool.1 servertool.1 /usr/java/jre1.7.0_45/man/man1/servertool.1
alternatives --install /usr/bin/tnameserv tnameserv /usr/java/jre1.7.0_45/bin/tnameserv 17451 --slave /usr/share/man/man1/tnameserv.1 tnameserv.1 /usr/java/jre1.7.0_45/man/man1/tnameserv.1
alternatives --install /usr/bin/unpack200 unpack200 /usr/java/jre1.7.0_45/bin/unpack200 17451 --slave /usr/share/man/man1/unpack200.1 unpack200.1 /usr/java/jre1.7.0_45/man/man1/unpack200.1
6. Install Browser Plugins

Код: Выделить всё

# change xulrunner version if needed in next line
alternatives --install /usr/lib/xulrunner-16.0/plugins/libjavaplugin.so xulrunner-javaplugin.so /usr/java/jre1.7.0_45/lib/i386/libnpjp2.so 17451
alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so mozilla-javaplugin.so /usr/java/jre1.7.0_45/lib/i386/libnpjp2.so 17451
7. Export JAVA_HOME

Код: Выделить всё

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


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


JDK 7u45 64bit

1. Download jdk-7u45-linux-x64.rpm from
http://www.oracle.com/technetwork/java/ ... 80260.html

2. Type and provide root password

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

4. Install RPM package

Код: Выделить всё

urpmi jdk-7u45-linux-x64.rpm
5. Install JDK and man pages

Код: Выделить всё

# JRE part of JDK
alternatives --install /usr/bin/javaControlPanel javaControlPanel /usr/java/jdk1.7.0_45/jre/bin/ControlPanel 17452
alternatives --install /usr/bin/java java /usr/java/jdk1.7.0_45/jre/bin/java 17452 --slave /usr/share/man/man1/java.1 java.1 /usr/java/jdk1.7.0_45/man/man1/java.1
alternatives --install /usr/bin/java_vm java_vm /usr/java/jdk1.7.0_45/jre/bin/java_vm 17452
alternatives --install /usr/bin/javaws javaws /usr/java/jdk1.7.0_45/jre/bin/javaws 17452 --slave /usr/share/man/man1/javaws.1 javaws.1 /usr/java/jdk1.7.0_45/man/man1/javaws.1
alternatives --install /usr/bin/jcontrol jcontrol /usr/java/jdk1.7.0_45/jre/bin/jcontrol 17452
alternatives --install /usr/bin/keytool keytool /usr/java/jdk1.7.0_45/jre/bin/keytool 17452 --slave /usr/share/man/man1/keytool.1 keytool.1 /usr/java/jdk1.7.0_45/man/man1/keytool.1
alternatives --install /usr/bin/orbd orbd /usr/java/jdk1.7.0_45/jre/bin/orbd 17452 --slave /usr/share/man/man1/orbd.1 orbd.1 /usr/java/jdk1.7.0_45/man/man1/orbd.1
alternatives --install /usr/bin/pack200 pack200 /usr/java/jdk1.7.0_45/jre/bin/pack200 17452 --slave /usr/share/man/man1/pack200.1 pack200.1 /usr/java/jdk1.7.0_45/man/man1/pack200.1
alternatives --install /usr/bin/policytool policytool /usr/java/jdk1.7.0_45/jre/bin/policytool 17452 --slave /usr/share/man/man1/policytool.1 policytool.1 /usr/java/jdk1.7.0_45/man/man1/policytool.1
alternatives --install /usr/bin/rmid rmid /usr/java/jdk1.7.0_45/jre/bin/rmid 17452 --slave /usr/share/man/man1/rmid.1 rmid.1 /usr/java/jdk1.7.0_45/man/man1/rmid.1
alternatives --install /usr/bin/rmiregistry rmiregistry /usr/java/jdk1.7.0_45/jre/bin/rmiregistry 17452 --slave /usr/share/man/man1/rmiregistry.1 rmiregistry.1 /usr/java/jdk1.7.0_45/man/man1/rmiregistry.1
alternatives --install /usr/bin/servertool servertool /usr/java/jdk1.7.0_45/jre/bin/servertool 17452 --slave /usr/share/man/man1/servertool.1 servertool.1 /usr/java/jdk1.7.0_45/man/man1/servertool.1
alternatives --install /usr/bin/tnameserv tnameserv /usr/java/jdk1.7.0_45/jre/bin/tnameserv 17452 --slave /usr/share/man/man1/tnameserv.1 tnameserv.1 /usr/java/jdk1.7.0_45/man/man1/tnameserv.1
alternatives --install /usr/bin/unpack200 unpack200 /usr/java/jdk1.7.0_45/jre/bin/unpack200 17452 --slave /usr/share/man/man1/unpack200.1 unpack200.1 /usr/java/jdk1.7.0_45/man/man1/unpack200.1
# rest of JDK
alternatives --install /usr/bin/appletviewer appletviewer /usr/java/jdk1.7.0_45/bin/appletviewer 17452 --slave /usr/share/man/man1/appletviewer.1 appletviewer.1 /usr/java/jdk1.7.0_45/man/man1/appletviewer.1
alternatives --install /usr/bin/apt apt /usr/java/jdk1.7.0_45/bin/apt 17452 --slave /usr/share/man/man1/apt.1 apt.1 /usr/java/jdk1.7.0_45/man/man1/apt.1
alternatives --install /usr/bin/extcheck extcheck /usr/java/jdk1.7.0_45/bin/extcheck 17452 --slave /usr/share/man/man1/extcheck.1 extcheck.1 /usr/java/jdk1.7.0_45/man/man1/extcheck.1
alternatives --install /usr/bin/idlj idlj /usr/java/jdk1.7.0_45/bin/idlj 17452 --slave /usr/share/man/man1/idlj.1 idlj.1 /usr/java/jdk1.7.0_45/man/man1/idlj.1
alternatives --install /usr/bin/jar jar /usr/java/jdk1.7.0_45/bin/jar 17452 --slave /usr/share/man/man1/jar.1 jar.1 /usr/java/jdk1.7.0_45/man/man1/jar.1
alternatives --install /usr/bin/jarsigner jarsigner /usr/java/jdk1.7.0_45/bin/jarsigner 17452 --slave /usr/share/man/man1/jarsigner.1 jarsigner.1 /usr/java/jdk1.7.0_45/man/man1/jarsigner.1
alternatives --install /usr/bin/javac javac /usr/java/jdk1.7.0_45/bin/javac 17452 --slave /usr/share/man/man1/javac.1 javac.1 /usr/java/jdk1.7.0_45/man/man1/javac.1
alternatives --install /usr/bin/javadoc javadoc /usr/java/jdk1.7.0_45/bin/javadoc 17452 --slave /usr/share/man/man1/javadoc.1 javadoc.1 /usr/java/jdk1.7.0_45/man/man1/javadoc.1
alternatives --install /usr/bin/javafxpackager javafxpackager /usr/java/jdk1.7.0_45/bin/javafxpackager 17452 --slave /usr/share/man/man1/javafxpackager.1 javafxpackager.1 /usr/java/jdk1.7.0_45/man/man1/javafxpackager.1
alternatives --install /usr/bin/javah javah /usr/java/jdk1.7.0_45/bin/javah 17452 --slave /usr/share/man/man1/javah.1 javah.1 /usr/java/jdk1.7.0_45/man/man1/javah.1
alternatives --install /usr/bin/javap javap /usr/java/jdk1.7.0_45/bin/javap 17452 --slave /usr/share/man/man1/javap.1 javap.1 /usr/java/jdk1.7.0_45/man/man1/javap.1
alternatives --install /usr/bin/java-rmi.cgi java-rmi.cgi /usr/java/jdk1.7.0_45/bin/java-rmi.cgi 17452
alternatives --install /usr/bin/jcmd jcmd /usr/java/jdk1.7.0_45/bin/jcmd 17452 --slave /usr/share/man/man1/jcmd.1 jcmd.1 /usr/java/jdk1.7.0_45/man/man1/jcmd.1
alternatives --install /usr/bin/jconsole jconsole /usr/java/jdk1.7.0_45/bin/jconsole 17452 --slave /usr/share/man/man1/jconsole.1 jconsole.1 /usr/java/jdk1.7.0_45/man/man1/jconsole.1
alternatives --install /usr/bin/jdb jdb /usr/java/jdk1.7.0_45/bin/jdb 17452 --slave /usr/share/man/man1/jdb.1 jdb.1 /usr/java/jdk1.7.0_45/man/man1/jdb.1
alternatives --install /usr/bin/jhat jhat /usr/java/jdk1.7.0_45/bin/jhat 17452 --slave /usr/share/man/man1/jhat.1 jhat.1 /usr/java/jdk1.7.0_45/man/man1/jhat.1
alternatives --install /usr/bin/jinfo jinfo /usr/java/jdk1.7.0_45/bin/jinfo 17452 --slave /usr/share/man/man1/jinfo.1 jinfo.1 /usr/java/jdk1.7.0_45/man/man1/jinfo.1
alternatives --install /usr/bin/jmap jmap /usr/java/jdk1.7.0_45/bin/jmap 17452 --slave /usr/share/man/man1/jmap.1 jmap.1 /usr/java/jdk1.7.0_45/man/man1/jmap.1
alternatives --install /usr/bin/jps jps /usr/java/jdk1.7.0_45/bin/jps 17452 --slave /usr/share/man/man1/jps.1 jps.1 /usr/java/jdk1.7.0_45/man/man1/jps.1
alternatives --install /usr/bin/jrunscript jrunscript /usr/java/jdk1.7.0_45/bin/jrunscript 17452 --slave /usr/share/man/man1/jrunscript.1 jrunscript.1 /usr/java/jdk1.7.0_45/man/man1/jrunscript.1
alternatives --install /usr/bin/jsadebugd jsadebugd /usr/java/jdk1.7.0_45/bin/jsadebugd 17452 --slave /usr/share/man/man1/jsadebugd.1 jsadebugd.1 /usr/java/jdk1.7.0_45/man/man1/jsadebugd.1
alternatives --install /usr/bin/jstack jstack /usr/java/jdk1.7.0_45/bin/jstack 17452 --slave /usr/share/man/man1/jstack.1 jstack.1 /usr/java/jdk1.7.0_45/man/man1/jstack.1
alternatives --install /usr/bin/jstat jstat /usr/java/jdk1.7.0_45/bin/jstat 17452 --slave /usr/share/man/man1/jstat.1 jstat.1 /usr/java/jdk1.7.0_45/man/man1/jstat.1
alternatives --install /usr/bin/jstatd jstatd /usr/java/jdk1.7.0_45/bin/jstatd 17452 --slave /usr/share/man/man1/jstatd.1 jstatd.1 /usr/java/jdk1.7.0_45/man/man1/jstatd.1
alternatives --install /usr/bin/jvisualvm jvisualvm /usr/java/jdk1.7.0_45/bin/jvisualvm 17452 --slave /usr/share/man/man1/jvisualvm.1 jvisualvm.1 /usr/java/jdk1.7.0_45/man/man1/jvisualvm.1
alternatives --install /usr/bin/native2ascii native2ascii /usr/java/jdk1.7.0_45/bin/native2ascii 17452 --slave /usr/share/man/man1/native2ascii.1 native2ascii.1 /usr/java/jdk1.7.0_45/man/man1/native2ascii.1
alternatives --install /usr/bin/rmic rmic /usr/java/jdk1.7.0_45/bin/rmic 17452 --slave /usr/share/man/man1/rmic.1 rmic.1 /usr/java/jdk1.7.0_45/man/man1/rmic.1
alternatives --install /usr/bin/schemagen schemagen /usr/java/jdk1.7.0_45/bin/schemagen 17452 --slave /usr/share/man/man1/schemagen.1 schemagen.1 /usr/java/jdk1.7.0_45/man/man1/schemagen.1
alternatives --install /usr/bin/serialver serialver /usr/java/jdk1.7.0_45/bin/serialver 17452 --slave /usr/share/man/man1/serialver.1 serialver.1 /usr/java/jdk1.7.0_45/man/man1/serialver.1
alternatives --install /usr/bin/wsgen wsgen /usr/java/jdk1.7.0_45/bin/wsgen 17452 --slave /usr/share/man/man1/wsgen.1 wsgen.1 /usr/java/jdk1.7.0_45/man/man1/wsgen.1
alternatives --install /usr/bin/wsimport wsimport /usr/java/jdk1.7.0_45/bin/wsimport 17452 --slave /usr/share/man/man1/wsimport.1 wsimport.1 /usr/java/jdk1.7.0_45/man/man1/wsimport.1
alternatives --install /usr/bin/xjc xjc /usr/java/jdk1.7.0_45/bin/xjc 17452 --slave /usr/share/man/man1/xjc.1 xjc.1 /usr/java/jdk1.7.0_45/man/man1/xjc.1
alternatives --install /usr/bin/jexec jexec /usr/java/jdk1.7.0_45/jre/lib/jexec 17452
6. Install Browser Plugins

Код: Выделить всё

# change xulrunner version if needed in next line
alternatives --install /usr/lib64/xulrunner-16.0/plugins/libjavaplugin.so xulrunner-javaplugin.so /usr/java/jdk1.7.0_45/jre/lib/amd64/libnpjp2.so 17452
alternatives --install /usr/lib64/mozilla/plugins/libjavaplugin.so mozilla-javaplugin.so /usr/java/jdk1.7.0_45/jre/lib/amd64/libnpjp2.so 17452
7. Export JAVA_HOME

Код: Выделить всё

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



JDK 7u45 32bit

1. Download jdk-7u45-linux-i586.rpm from
http://www.oracle.com/technetwork/java/ ... 80260.html

2. Type and provide root passwrod

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

4. Install RPM package

Код: Выделить всё

urpmi jdk-7u45-linux-i586.rpm
5. Install JDK and man pages

Код: Выделить всё

# JRE part of JDK
alternatives --install /usr/bin/javaControlPanel javaControlPanel /usr/java/jdk1.7.0_45/jre/bin/ControlPanel 17452
alternatives --install /usr/bin/java java /usr/java/jdk1.7.0_45/jre/bin/java 17452 --slave /usr/share/man/man1/java.1 java.1 /usr/java/jdk1.7.0_45/man/man1/java.1
alternatives --install /usr/bin/java_vm java_vm /usr/java/jdk1.7.0_45/jre/bin/java_vm 17452
alternatives --install /usr/bin/javaws javaws /usr/java/jdk1.7.0_45/jre/bin/javaws 17452 --slave /usr/share/man/man1/javaws.1 javaws.1 /usr/java/jdk1.7.0_45/man/man1/javaws.1
alternatives --install /usr/bin/jcontrol jcontrol /usr/java/jdk1.7.0_45/jre/bin/jcontrol 17452
alternatives --install /usr/bin/keytool keytool /usr/java/jdk1.7.0_45/jre/bin/keytool 17452 --slave /usr/share/man/man1/keytool.1 keytool.1 /usr/java/jdk1.7.0_45/man/man1/keytool.1
alternatives --install /usr/bin/orbd orbd /usr/java/jdk1.7.0_45/jre/bin/orbd 17452 --slave /usr/share/man/man1/orbd.1 orbd.1 /usr/java/jdk1.7.0_45/man/man1/orbd.1
alternatives --install /usr/bin/pack200 pack200 /usr/java/jdk1.7.0_45/jre/bin/pack200 17452 --slave /usr/share/man/man1/pack200.1 pack200.1 /usr/java/jdk1.7.0_45/man/man1/pack200.1
alternatives --install /usr/bin/policytool policytool /usr/java/jdk1.7.0_45/jre/bin/policytool 17452 --slave /usr/share/man/man1/policytool.1 policytool.1 /usr/java/jdk1.7.0_45/man/man1/policytool.1
alternatives --install /usr/bin/rmid rmid /usr/java/jdk1.7.0_45/jre/bin/rmid 17452 --slave /usr/share/man/man1/rmid.1 rmid.1 /usr/java/jdk1.7.0_45/man/man1/rmid.1
alternatives --install /usr/bin/rmiregistry rmiregistry /usr/java/jdk1.7.0_45/jre/bin/rmiregistry 17452 --slave /usr/share/man/man1/rmiregistry.1 rmiregistry.1 /usr/java/jdk1.7.0_45/man/man1/rmiregistry.1
alternatives --install /usr/bin/servertool servertool /usr/java/jdk1.7.0_45/jre/bin/servertool 17452 --slave /usr/share/man/man1/servertool.1 servertool.1 /usr/java/jdk1.7.0_45/man/man1/servertool.1
alternatives --install /usr/bin/tnameserv tnameserv /usr/java/jdk1.7.0_45/jre/bin/tnameserv 17452 --slave /usr/share/man/man1/tnameserv.1 tnameserv.1 /usr/java/jdk1.7.0_45/man/man1/tnameserv.1
alternatives --install /usr/bin/unpack200 unpack200 /usr/java/jdk1.7.0_45/jre/bin/unpack200 17452 --slave /usr/share/man/man1/unpack200.1 unpack200.1 /usr/java/jdk1.7.0_45/man/man1/unpack200.1
# rest of JDK
alternatives --install /usr/bin/appletviewer appletviewer /usr/java/jdk1.7.0_45/bin/appletviewer 17452 --slave /usr/share/man/man1/appletviewer.1 appletviewer.1 /usr/java/jdk1.7.0_45/man/man1/appletviewer.1
alternatives --install /usr/bin/apt apt /usr/java/jdk1.7.0_45/bin/apt 17452 --slave /usr/share/man/man1/apt.1 apt.1 /usr/java/jdk1.7.0_45/man/man1/apt.1
alternatives --install /usr/bin/extcheck extcheck /usr/java/jdk1.7.0_45/bin/extcheck 17452 --slave /usr/share/man/man1/extcheck.1 extcheck.1 /usr/java/jdk1.7.0_45/man/man1/extcheck.1
alternatives --install /usr/bin/idlj idlj /usr/java/jdk1.7.0_45/bin/idlj 17452 --slave /usr/share/man/man1/idlj.1 idlj.1 /usr/java/jdk1.7.0_45/man/man1/idlj.1
alternatives --install /usr/bin/jar jar /usr/java/jdk1.7.0_45/bin/jar 17452 --slave /usr/share/man/man1/jar.1 jar.1 /usr/java/jdk1.7.0_45/man/man1/jar.1
alternatives --install /usr/bin/jarsigner jarsigner /usr/java/jdk1.7.0_45/bin/jarsigner 17452 --slave /usr/share/man/man1/jarsigner.1 jarsigner.1 /usr/java/jdk1.7.0_45/man/man1/jarsigner.1
alternatives --install /usr/bin/javac javac /usr/java/jdk1.7.0_45/bin/javac 17452 --slave /usr/share/man/man1/javac.1 javac.1 /usr/java/jdk1.7.0_45/man/man1/javac.1
alternatives --install /usr/bin/javadoc javadoc /usr/java/jdk1.7.0_45/bin/javadoc 17452 --slave /usr/share/man/man1/javadoc.1 javadoc.1 /usr/java/jdk1.7.0_45/man/man1/javadoc.1
alternatives --install /usr/bin/javafxpackager javafxpackager /usr/java/jdk1.7.0_45/bin/javafxpackager 17452 --slave /usr/share/man/man1/javafxpackager.1 javafxpackager.1 /usr/java/jdk1.7.0_45/man/man1/javafxpackager.1
alternatives --install /usr/bin/javah javah /usr/java/jdk1.7.0_45/bin/javah 17452 --slave /usr/share/man/man1/javah.1 javah.1 /usr/java/jdk1.7.0_45/man/man1/javah.1
alternatives --install /usr/bin/javap javap /usr/java/jdk1.7.0_45/bin/javap 17452 --slave /usr/share/man/man1/javap.1 javap.1 /usr/java/jdk1.7.0_45/man/man1/javap.1
alternatives --install /usr/bin/java-rmi.cgi java-rmi.cgi /usr/java/jdk1.7.0_45/bin/java-rmi.cgi 17452
alternatives --install /usr/bin/jcmd jcmd /usr/java/jdk1.7.0_45/bin/jcmd 17452 --slave /usr/share/man/man1/jcmd.1 jcmd.1 /usr/java/jdk1.7.0_45/man/man1/jcmd.1
alternatives --install /usr/bin/jconsole jconsole /usr/java/jdk1.7.0_45/bin/jconsole 17452 --slave /usr/share/man/man1/jconsole.1 jconsole.1 /usr/java/jdk1.7.0_45/man/man1/jconsole.1
alternatives --install /usr/bin/jdb jdb /usr/java/jdk1.7.0_45/bin/jdb 17452 --slave /usr/share/man/man1/jdb.1 jdb.1 /usr/java/jdk1.7.0_45/man/man1/jdb.1
alternatives --install /usr/bin/jhat jhat /usr/java/jdk1.7.0_45/bin/jhat 17452 --slave /usr/share/man/man1/jhat.1 jhat.1 /usr/java/jdk1.7.0_45/man/man1/jhat.1
alternatives --install /usr/bin/jinfo jinfo /usr/java/jdk1.7.0_45/bin/jinfo 17452 --slave /usr/share/man/man1/jinfo.1 jinfo.1 /usr/java/jdk1.7.0_45/man/man1/jinfo.1
alternatives --install /usr/bin/jmap jmap /usr/java/jdk1.7.0_45/bin/jmap 17452 --slave /usr/share/man/man1/jmap.1 jmap.1 /usr/java/jdk1.7.0_45/man/man1/jmap.1
alternatives --install /usr/bin/jps jps /usr/java/jdk1.7.0_45/bin/jps 17452 --slave /usr/share/man/man1/jps.1 jps.1 /usr/java/jdk1.7.0_45/man/man1/jps.1
alternatives --install /usr/bin/jrunscript jrunscript /usr/java/jdk1.7.0_45/bin/jrunscript 17452 --slave /usr/share/man/man1/jrunscript.1 jrunscript.1 /usr/java/jdk1.7.0_45/man/man1/jrunscript.1
alternatives --install /usr/bin/jsadebugd jsadebugd /usr/java/jdk1.7.0_45/bin/jsadebugd 17452 --slave /usr/share/man/man1/jsadebugd.1 jsadebugd.1 /usr/java/jdk1.7.0_45/man/man1/jsadebugd.1
alternatives --install /usr/bin/jstack jstack /usr/java/jdk1.7.0_45/bin/jstack 17452 --slave /usr/share/man/man1/jstack.1 jstack.1 /usr/java/jdk1.7.0_45/man/man1/jstack.1
alternatives --install /usr/bin/jstat jstat /usr/java/jdk1.7.0_45/bin/jstat 17452 --slave /usr/share/man/man1/jstat.1 jstat.1 /usr/java/jdk1.7.0_45/man/man1/jstat.1
alternatives --install /usr/bin/jstatd jstatd /usr/java/jdk1.7.0_45/bin/jstatd 17452 --slave /usr/share/man/man1/jstatd.1 jstatd.1 /usr/java/jdk1.7.0_45/man/man1/jstatd.1
alternatives --install /usr/bin/jvisualvm jvisualvm /usr/java/jdk1.7.0_45/bin/jvisualvm 17452 --slave /usr/share/man/man1/jvisualvm.1 jvisualvm.1 /usr/java/jdk1.7.0_45/man/man1/jvisualvm.1
alternatives --install /usr/bin/native2ascii native2ascii /usr/java/jdk1.7.0_45/bin/native2ascii 17452 --slave /usr/share/man/man1/native2ascii.1 native2ascii.1 /usr/java/jdk1.7.0_45/man/man1/native2ascii.1
alternatives --install /usr/bin/rmic rmic /usr/java/jdk1.7.0_45/bin/rmic 17452 --slave /usr/share/man/man1/rmic.1 rmic.1 /usr/java/jdk1.7.0_45/man/man1/rmic.1
alternatives --install /usr/bin/schemagen schemagen /usr/java/jdk1.7.0_45/bin/schemagen 17452 --slave /usr/share/man/man1/schemagen.1 schemagen.1 /usr/java/jdk1.7.0_45/man/man1/schemagen.1
alternatives --install /usr/bin/serialver serialver /usr/java/jdk1.7.0_45/bin/serialver 17452 --slave /usr/share/man/man1/serialver.1 serialver.1 /usr/java/jdk1.7.0_45/man/man1/serialver.1
alternatives --install /usr/bin/wsgen wsgen /usr/java/jdk1.7.0_45/bin/wsgen 17452 --slave /usr/share/man/man1/wsgen.1 wsgen.1 /usr/java/jdk1.7.0_45/man/man1/wsgen.1
alternatives --install /usr/bin/wsimport wsimport /usr/java/jdk1.7.0_45/bin/wsimport 17452 --slave /usr/share/man/man1/wsimport.1 wsimport.1 /usr/java/jdk1.7.0_45/man/man1/wsimport.1
alternatives --install /usr/bin/xjc xjc /usr/java/jdk1.7.0_45/bin/xjc 17452 --slave /usr/share/man/man1/xjc.1 xjc.1 /usr/java/jdk1.7.0_45/man/man1/xjc.1
alternatives --install /usr/bin/jexec jexec /usr/java/jdk1.7.0_45/jre/lib/jexec 17452
6. Install Browser Plugins

Код: Выделить всё

# change xulrunner version if needed in next line
alternatives --install /usr/lib/xulrunner-16.0/plugins/libjavaplugin.so xulrunner-javaplugin.so /usr/java/jdk1.7.0_45/jre/lib/i386/libnpjp2.so 17452
alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so mozilla-javaplugin.so /usr/java/jdk1.7.0_45/jre/lib/i386/libnpjp2.so 17452
7. Export JAVA_HOME

Код: Выделить всё

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

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

Код: Выделить всё

alternatives --config java

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

Код: Выделить всё

java -version
 
javaws
 
# this works only if you installed JDK
javac -version
Open http://www.java.com/en/download/installed.jsp in your browser to check if browser plugin works.
Последний раз редактировалось viking 05 ноя 2013, 01:41, всего редактировалось 5 раз.

Аватара пользователя
ДроноваЮ
Сообщения: 2636
Зарегистрирован: 01 июн 2011, 12:11
Operating system: Ubuntu/ROSA
Откуда: Москва

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

Сообщение ДроноваЮ » 30 июн 2013, 18:31

viking
Thanks a lot, great work! Made both themes sticky and will have to update the wiki artilcles tomorrow. :good:

stefninie
Сообщения: 41
Зарегистрирован: 08 авг 2012, 12:27
Operating system: Rosa 2012

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

Сообщение stefninie » 30 июн 2013, 23:17

Hello,
Works fine with Firefox but in Chromium appears a message saying "that java plugins is blocked because is old and asking to update the plugin" each time.
(in french ,"le plug-in JavaTM est bloqué car il est obsolète. Exécuter cette fois. Mettre à jour le plug-in").
Au revoir,

Аватара пользователя
viking
Сообщения: 53
Зарегистрирован: 31 июл 2012, 21:10
Operating system: Rosa 2012 x64
KDE 4.8.3
nrj-netbook 3.4.11

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

Сообщение viking » 01 июл 2013, 00:44

ДроноваЮ писал(а):viking
Thanks a lot, great work! Made both themes sticky and will have to update the wiki artilcles tomorrow. :good:
You are welcome.

Fortunately I had time to fix typo I made for JDK browser plugins and to remove unnecessary code for Google Chrome. :oops:

Аватара пользователя
viking
Сообщения: 53
Зарегистрирован: 31 июл 2012, 21:10
Operating system: Rosa 2012 x64
KDE 4.8.3
nrj-netbook 3.4.11

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

Сообщение viking » 01 июл 2013, 01:18

stefninie писал(а):Hello,
Works fine with Firefox but in Chromium appears a message saying "that java plugins is blocked because is old and asking to update the plugin" each time.
(in french ,"le plug-in JavaTM est bloqué car il est obsolète. Exécuter cette fois. Mettre à jour le plug-in").
Au revoir,
If you click on Run this time button, do you see this text?
Verified Java Version

Congratulations!
You have the recommended Java installed (Version 7 Update 25).
This means that java is successfully installed to latest version.

Unfortunately looks like Chromium do not know that and asks for newer plugin.

I will try to find something to overcome that beside the proposed -allow-outdated-plugins command line switch. I do not like that way, since it will stop checking versions of any plugin.

stefninie
Сообщения: 41
Зарегистрирован: 08 авг 2012, 12:27
Operating system: Rosa 2012

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

Сообщение stefninie » 01 июл 2013, 20:26

Hello Viking,
Yes, I have the same text.
Thanks for your good job anyway !
Au revoir,

Аватара пользователя
viking
Сообщения: 53
Зарегистрирован: 31 июл 2012, 21:10
Operating system: Rosa 2012 x64
KDE 4.8.3
nrj-netbook 3.4.11

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

Сообщение viking » 05 ноя 2013, 01:43

Hello friends, just updated guide to match latest Java 7u45,

anmol77
Сообщения: 2
Зарегистрирован: 30 апр 2016, 11:18
Operating system: windows

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

Сообщение anmol77 » 30 апр 2016, 12:41

thanks for everything...

jpisini
Сообщения: 2
Зарегистрирован: 02 окт 2015, 19:35
Operating system: Desktop Fresh 6

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

Сообщение jpisini » 18 июн 2016, 16:29

Any chance of getting an update to the newer 8u91? 7u series instructions don't seem to work.


--edit--
I did find the following and it seems to work. I can use the java plugins I need for work.
http://www.oracle.com/technetwork/java/ ... 36395.html

Ответить