📎 AI Summary:
The thread discusses how to check the installed Java version via command line in a Bash environment. The primary method suggested is running "java -version," with additional guidance on interpreting the output to determine the specific Java version (e.g., Java 5, 6, or 7). Overall, the conversation provides straightforward instructions for verifying Java versions through command line commands.

Gabriel Turqos

Active Member
Member details
Joined
Mar 11, 2019
Messages
17
Thread Author #1
I have a Java installation and I have only access via bash. How can I check the Java version from command line.
 

Solution
To know whether you're running Java 5, 6 or 7, firstly type java -version.

There will be a line in your output that looks similar to this: java version "1.7.0_55"

Then you use this table for converting the 'jargon' result to the version number.

1.7.0_55 is Java 7
1.6.0_75 is Java 6
1.5.0_65 is Java 5

RuskinF

Member
Member details
Joined
Feb 17, 2020
Messages
87
To know whether you're running Java 5, 6 or 7, firstly type java -version.

There will be a line in your output that looks similar to this: java version "1.7.0_55"

Then you use this table for converting the 'jargon' result to the version number.

1.7.0_55 is Java 7
1.6.0_75 is Java 6
1.5.0_65 is Java 5
 

Solution