

There can be no spaces before and after the environment variable parameters, otherwise javac will report an error. Add a comment Your Answer Thanks for contributing an answer to Server Fault Please be sure to answer the.

There are two levels of environment variables, one is the current user and the other is all users (you choose which file to change)ĥ.3. Sudo apt-get install openjdk-8-jre-headless Run sudo update-alternatives -config java and enter the number for which JDK to use of your choice. sudo apt-get update first update the package list and install jdk failed You may need the Java Development Kit (JDK) in addition to the JRE in order to compile and run some specific Java-based software. sudo apt-get install openjdk-8-jdk For installing JRE: sudo apt-get install openjdk-8-jre How to set the default JDK. I was then able to sudo apt update and sudo apt install openjdk-8-jre-headless. The ubuntu installed on win10 system reports that jdk does not exist when zookeeper is installed, the following installation process of jdkĭirect installation failure report: E: Unable to locate package openjdk-8-jreĤ.1. Installing openjdk-8-jre package on Ubuntu is as easy as running the following command on terminal: sudo apt-get update sudo apt-get install openjdk-8-jre. AdoptOpenJDK binaries are available for download in the following types of installation package.
