![]() $ sudo update-alternatives -install /usr/bin/javac javac /opt/jdk/jdk1.8.0_66/bin/javac 100Ĥ.2 Update the default JDK, for both java and javac $ update-alternatives -config java $ sudo tar x -C /opt/jdk -f jdk-8u66-linux-圆4.tar.gzĤ.1 Make /opt/jdk/jdk1.8.0_66 as a new JDK alternatives for both /usr/bin/java and /usr/bin/javac $ sudo update-alternatives -install /usr/bin/java java /opt/jdk/jdk1.8.0_66/bin/java 100 Extracts to /opt/jdk/ģ.1 Extracts it to path /opt/jdk/jdk1.8.0_66 $ pwd If you don't want to use wget (why?), just download the file and upload to your server manually. $ wget -header "Cookie: oraclelicense=accept-securebackup-cookie" Openjdk-6-jre-headless - OpenJDK Java runtime, using Hotspot JIT (headless)ġ.2 Find a Linux 圆4 version, in this example, we will get the jdk-8u66-linux-圆4.tar.gz via wget command. Openjdk-6-jre - OpenJDK Java runtime, using Hotspot JIT Openjdk-7-jre-headless - OpenJDK Java runtime, using Hotspot JIT (headless) Openjdk-7-jre - OpenJDK Java runtime, using Hotspot JIT OpenJDK 64-Bit Server VM (build 24.75-b04, mixed mode)Īn existing OpenJDK 1.7 is installed, no problem, we will show you how to switch it to JDK 8.ġ.2 A quick search via apt-cache, there is no openjdk-8… yet. Quick Checkġ.1 A quick Java version check : $ java -version This guide is tested in other Debian derivatives like Ubuntu 14 and Mint 1.7.2. ![]() I just don't like the default apt repository schedule, it constantly comes with older or outdated released. (Switch to Oracle JDK 8 later)Īt the time of writing, OpenJDK 1.8 is not included in the default apt-get repository yet. In this tutorial, we will show you how to install Oracle JDK 8 On Debian, manually. Source How to Install Oracle JDK 8 On Debian
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |