![]() ![]() There are 2 choices for the alternative java (providing /usr/bin/java). just enter the number which is showing under Selection area to switch to alternative version of java. Here i’m going to choose oracle java 8 which is installed newely on my system. Use the below command to list installed java version on your system. $ sudo update-alternatives -install /usr/bin/java java /opt/jdk1.8.0_66/bin/java 2 5) Choose alternative java version Make sure you need to mention your java path (Newly downloaded) Use the below command to Install oracle java 8 on your system using JAVA alternatives method. $ sudo tar -zxvf jdk-8u66-linux-圆4.tar.gzĤ) Install oracle java 8 using Alternatives Method Use the below tar command to extract the tar.gz archive file. $ sudo wget -no-cookies -no-check-certificate -header "Cookie: gpw_e24=http%3A%2F%2Foraclelicense=accept-securebackup-cookie" "" Make sure oracle uses cookies, so use according to that. Use the below command to download the oracle java 8 archive file. The output clearly shows that, i have already installed OpenJDK 7 in my system. OpenJDK 64-Bit Server VM (build 24.91-b01, mixed mode) Use the below command to check installed java version on your system. List of method to install JAVA on Linux 1) Check current java version I already installed OpenJDK 7 in my system and I’m going to install oracle java 8 using java alternatives method which is very simple and handy. JAVA is necessary to run certain applications in Linux and windows environment. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |