chipmopa.blogg.se

Linux install java 8
Linux install java 8









linux install java 8

$ sudoalternatives -set jar /opt/jdk1.8.0_151/bin/jar Now let's set alternatives, so that once Java is called, it points to the correct JDK version through following commands: $ sudo alternatives -install /usr/bin/jar jar /opt/jdk1.8.0_151/bin/jar 2 (If you are getting some other options as well, choose the one with " /opt/jdk1.8.0_151/bin/java") *+ 1 /usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin/javaĮnter to keep the current selection, or type selection number: 2 There are 2 programs which provide 'java'.

linux install java 8

$ sudo alternatives -install /usr/bin/java java /opt/jdk1.8.0_151/bin/java 2 $ sudo wget -no-cookies -no-check-certificate -header "Cookie: %3A%2F%2F-securebackup-cookie" So, you have to execute the following commands as mentioned below. Before we start, please ensure you have the administrative privileges. I am not going to waste your time and will instead jump directly towards the commands that you have to execute to install JDK 8 on your new instance. In a nutshell, we can say that Amazon Linux can be considered equivalent to CentOS 6. Today we are going to install Java 8 ( JDK 8, I must say from the developer's perspective) in an Amazon EC2 instance which is having an Amazon Linux version installed on it.











Linux install java 8