How Many Java Version Do I Have Linux?
Contents Which Java Version Do I Have Linux? Method 1: Check the Java Version on Linux Open a Terminal Window. 3. the Output Should Display the Version of the...
Contents
Which Java version do I have Linux?
Method 1: Check the Java Version On Linux
Open a terminal window. 3. The output should display the version of the Java package installed on your system. In the example below, OpenJDK version 11 is installed.
How do I know where Java is installed Linux?
Linux
- Check if JAVA_HOME is already set , Open Console. …
- Make sure you have installed Java already.
- Execute: vi ~/.bashrc OR vi ~/.bash_profile.
- add line : export JAVA_HOME=/usr/java/jre1.8.0_04.
- save the file.
- source ~/.bashrc OR source ~/.bash_profile.
- Execute : echo $JAVA_HOME.
- Output should print the path.