Java SE 10.0.1
jdk-10.0.1_linux-x64_bin.tar.gz
を/usr/lib/jvmに展開
update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk-10.0.1/bin/java 100100 \
--slave /usr/bin/appletviewer appletviewer /usr/lib/jvm/jdk-10.0.1/bin/appletviewer \
--slave /usr/bin/idlj idlj /usr/lib/jvm/jdk-10.0.1/bin/idlj \
--slave /usr/bin/jaotc jaotc /usr/lib/jvm/jdk-10.0.1/bin/jaotc \
--slave /usr/bin/jar jar /usr/lib/jvm/jdk-10.0.1/bin/jar \
--slave /usr/bin/jarsigner jarsigner /usr/lib/jvm/jdk-10.0.1/bin/jarsigner \
--slave /usr/bin/javac javac /usr/lib/jvm/jdk-10.0.1/bin/javac \
--slave /usr/bin/javadoc javadoc /usr/lib/jvm/jdk-10.0.1/bin/javadoc \
--slave /usr/bin/javap javap /usr/lib/jvm/jdk-10.0.1/bin/javap \
--slave /usr/bin/javapackager javapackager /usr/lib/jvm/jdk-10.0.1/bin/javapackager \
--slave /usr/bin/javaws javaws /usr/lib/jvm/jdk-10.0.1/bin/javaws \
--slave /usr/bin/jcmd jcmd /usr/lib/jvm/jdk-10.0.1/bin/jcmd \
--slave /usr/bin/jconsole jconsole /usr/lib/jvm/jdk-10.0.1/bin/jconsole \
--slave /usr/bin/jcontrol jcontrol /usr/lib/jvm/jdk-10.0.1/bin/jcontrol \
--slave /usr/bin/jdb jdb /usr/lib/jvm/jdk-10.0.1/bin/jdb \
--slave /usr/bin/jdeprscan jdeprscan /usr/lib/jvm/jdk-10.0.1/bin/jdeprscan \
--slave /usr/bin/jdeps jdeps /usr/lib/jvm/jdk-10.0.1/bin/jdeps \
--slave /usr/bin/jhsdb jhsdb /usr/lib/jvm/jdk-10.0.1/bin/jhsdb \
--slave /usr/bin/jimage jimage /usr/lib/jvm/jdk-10.0.1/bin/jimage \
--slave /usr/bin/jinfo jinfo /usr/lib/jvm/jdk-10.0.1/bin/jinfo \
--slave /usr/bin/jjs jjs /usr/lib/jvm/jdk-10.0.1/bin/jjs \
--slave /usr/bin/jlink jlink /usr/lib/jvm/jdk-10.0.1/bin/jlink \
--slave /usr/bin/jmap jmap /usr/lib/jvm/jdk-10.0.1/bin/jmap \
--slave /usr/bin/jmc jmc /usr/lib/jvm/jdk-10.0.1/bin/jmc \
--slave /usr/bin/jmod jmod /usr/lib/jvm/jdk-10.0.1/bin/jmod \
--slave /usr/bin/jps jps /usr/lib/jvm/jdk-10.0.1/bin/jps \
--slave /usr/bin/jrunscript jrunscript /usr/lib/jvm/jdk-10.0.1/bin/jrunscript \
--slave /usr/bin/jshell jshell /usr/lib/jvm/jdk-10.0.1/bin/jshell \
--slave /usr/bin/jstack jstack /usr/lib/jvm/jdk-10.0.1/bin/jstack \
--slave /usr/bin/jstat jstat /usr/lib/jvm/jdk-10.0.1/bin/jstat \
--slave /usr/bin/jstatd jstatd /usr/lib/jvm/jdk-10.0.1/bin/jstatd \
--slave /usr/bin/jweblauncher jweblauncher /usr/lib/jvm/jdk-10.0.1/bin/jweblauncher \
--slave /usr/bin/keytool keytool /usr/lib/jvm/jdk-10.0.1/bin/keytool \
--slave /usr/bin/orbd orbd /usr/lib/jvm/jdk-10.0.1/bin/orbd \
--slave /usr/bin/pack200 pack200 /usr/lib/jvm/jdk-10.0.1/bin/pack200 \
--slave /usr/bin/rmic rmic /usr/lib/jvm/jdk-10.0.1/bin/rmic \
--slave /usr/bin/rmid rmid /usr/lib/jvm/jdk-10.0.1/bin/rmid \
--slave /usr/bin/rmiregistry rmiregistry /usr/lib/jvm/jdk-10.0.1/bin/rmiregistry \
--slave /usr/bin/schemagen schemagen /usr/lib/jvm/jdk-10.0.1/bin/schemagen \
--slave /usr/bin/serialver serialver /usr/lib/jvm/jdk-10.0.1/bin/serialver \
--slave /usr/bin/servertool servertool /usr/lib/jvm/jdk-10.0.1/bin/servertool \
--slave /usr/bin/tnameserv tnameserv /usr/lib/jvm/jdk-10.0.1/bin/tnameserv \
--slave /usr/bin/unpack200 unpack200 /usr/lib/jvm/jdk-10.0.1/bin/unpack200 \
--slave /usr/bin/wsgen wsgen /usr/lib/jvm/jdk-10.0.1/bin/wsgen \
--slave /usr/bin/wsimport wsimport /usr/lib/jvm/jdk-10.0.1/bin/wsimport \
--slave /usr/bin/xjc xjc /usr/lib/jvm/jdk-10.0.1/bin/xjc
ここからJDKをダウンロード
http://www.oracle.com/technetwork/java/javase/downloads/index.html
/usr/lib/jvm下に展開。
#cd /usr/lib/jvm
#tar xvf jdk-8u101-linux-x64.tar.gz
#update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.8.0_101 18101
# update-alternatives --config java
alternative java (/usr/bin/java を提供) には 7 個の選択肢があります。
選択肢 パス 優先度 状態
------------------------------------------------------------
0 /usr/lib/jvm/jdk1.8.0_101/bin/java 18101 自動モード
1 /usr/lib/jvm/java-1.6.0-openjdk-amd64/bin/java 1072 手動モード
2 /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java 1061 手動モード
3 /usr/lib/jvm/java-6-oracle/bin/java 16043 手動モード
4 /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java 1071 手動モード
5 /usr/lib/jvm/java-7-oracle/jre/bin/java 16044 手動モード
* 6 /usr/lib/jvm/jdk1.8.0_101/bin/java 18101 手動モード
7 /usr/lib/jvm/jre1.8.0_101/bin/java 18100 手動モード
現在の選択 [*] を保持するには Enter、さもなければ選択肢の番号のキーを押してください: 6
削除する場合は、
#update-alternatives --remove java /usr/lib/jvm/jdk1.8.0/bin/java
0 件のコメント:
コメントを投稿