I'm a Java developer. I'm using Debian-9 Gnome. By default openjre-8 is installed on this system. I have downloaded openjdk-9 from download.java.net/java/GA/jdk9/9/binari ... bin.tar.gz . I have extracted this file under /home/ashik/Binary directory. I have added these two lines in .bashrc file under home directory:
Code: Select all
export JAVA_HOME=/home/ashik/Binary/jdk-9/bin/java
Code: Select all
export PATH=$PATH:/home/ashik/Binary/jdk-9/bin
Code: Select all
javac -version
Code: Select all
java -version
I found some solutions but i'm not sure that they are authentic or not. I found a solution here, https://www.digitalocean.com/community/ ... ubuntu-vps . I'm confused what does this code mean?
Code: Select all
update-alternatives --install /usr/bin/java java /opt/jdk/jdk1.8.0_05/bin/java 100