Open Terminal from Application Dash or press Ctrl+Alt+T
sudo add-apt-repository ppa:openjdk-r/ppa # only Ubuntu 17.4 and earlier
sudo apt update
Optional: To search available distributions of OpenJDK, use the following command:
apt search openjdk
Install the appropriate version with the following command:
sudo apt install openjdk-8-jdk
sudo apt install openjdk-8-source #this is optional, the jdk source code
For JAVA_HOME (Environment Variable) type command as shown below, in "Terminal" using your installation path...
(Note: /usr/lib/jvm/java-8-openjdk is symbolically used here just for demonstration. You should use your path as per your installation.)
For PATH (Environment Variable) type command as shown below, in Terminal:
To check your installation:
Hope this answer help you.
To learn more about Linux, enroll in Linux administration course online today.
I read good info about java here ...READ MORE
Use java.lang.String.format() method.
String.format("%05d", number ...READ MORE
Hey @Henna, Go to this page
Accept the license ...READ MORE
In case your Java class is ...READ MORE
Please check the below-mentioned syntax and commands:
To ...READ MORE
Specinfra is escaping the characters in the with_version chain ...READ MORE
Here is what you can do.Just use packagesmatching to ...READ MORE
Make sure that you have removed the ...READ MORE
Oracle has a poor record for making ...READ MORE
With Apache HttpClient
In the old days, this Apache ...READ MORE
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.