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. OpenJDK Runtime Environment (build 1.8.0_275-8u275-b01-1~deb9u1-b01) Install command: brew install openjdk8 Development kit for the Java programming language License: GPL-2.0-only Formula JSON API: /api/formula/openjdk8.json Formula code: openjdk8.rb on GitHub Bottle (binary package) installation support provided for: Current versions: stable 1.8. Red Hat is committed to replacing problematic language in our code, documentation, and web properties. Wait until the installation is completed. The Installing and using OpenJDK 17 for Windows guide provides an overview of this product and explains how to install the software and start using it. Install OpenJDK via the following command:.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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |