Check Java version from Command Line

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Gabriel9999
    New Member
    • Jul 2019
    • 15

    Check Java version from Command Line

    I have a Java installation and I have only access via bash. How can I check the Java version from command line.
  • dev7060
    Recognized Expert Contributor
    • Mar 2017
    • 655

    #2
    java -version

    Simple searches could answer these types of questions.

    Comment

    • nikolaymartin
      New Member
      • Oct 2019
      • 2

      #3
      You can use the -version parameter for the java command like below.
      java -version
      Last edited by Rabbit; Jun 1 '20, 09:31 PM. Reason: External link removed

      Comment

      Working...