7/26/2023 0 Comments Install openjdk 8![]() ![]() Save the file and then run the following command: source ~/. Vi ~/.bashrcAdd the following line to the content:Įxport JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 usr/lib/jvm/java-8-openjdk-amd64/jre/bin/javaAs printed out, JDK is installed in folder /usr/lib/jvm/java-8-openjdk-amd64. To do this, we need to find out where JDK is installed: OpenJDK 64-Bit Server VM (build 25.275-b01, mixed mode)Ĭonfigure JAVA_HOME environment variable is optional but I highly recommend it especially if you want to install Hadoop, Spark, Hive, HBase or any other Java based frameworks. ![]() Wait until the installation is completed. Java also has two different flavors, one is Open JDK, and another one is Oracle Java, both have the same functionalities and capabilities, the only difference. Install OpenJDK via the following command: Prerequisites Update Repository and Check Available Java Version Installing Java OpenJDK 11 Installing Java OpenJDK 8 Install Java OpenJDK 16 Manually from.The command will output the following text if Java is not installed yet: -bash: java: command not found. Check whether Java is installed already:.Run the following command to update package index:.InfoThe following steps install OpenJDK 8 you can also install other compatible versions. sudo apt-get install openjdk-8-jdk JRE sudo apt-get install openjdk-8-jre Old Update I found two repository but I do not recommend OpenJDK builds (all archs) ppa:openjdk-r/ppa OpenJDK 8 backport for trusty ppa:jochenkemnade/openjdk-8 Original Message If you really want to use OpenJDK, you have to compile from source. ![]()
0 Comments
Leave a Reply. |