3/28/2024 0 Comments Sudo apt get install openjdk 7 jreSave the file and then run the following command: source ~/. Wait for the system to finish the installation then move to the second step. sudo add-apt-repository ppa:openjdk-r/ppa sudo apt-get update sudo apt-get install openjdk-7-jdk This defines the PPA for OpenJDK uploads (restricted) as an additional package repositiory, updates your information, and installs the package with its dependencies (from that repository). 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: If you want to develop Java programs then please install the openjdk-7-jdk package. The openjdk-7-jre package contains just the Java Runtime Environment. 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. To Install OpenJDK 7 Debian Java Runtime ( openjdk-7-jre debian ) - Enter the below command on Debian command line. Wait until the installation is completed. 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 |