Linux

How to check which version of Java you are running on Linux

Written by Ian Carnaghan · 10 sec read >
  1. Open a new Terminal Window
  2. Type in the command
    java -version
  3. The output should look similar to the below:
    java version "1.7.0_95"
    OpenJDK Runtime Environment (IcedTea 2.6.4) (7u95-2.6.4-3)
    OpenJDK 64-Bit Server VM (build 24.95-b01, mixed mode)

    The above code indicates that you are running Java SDK version 7 on your server

Last Updated On April 07, 2018
Written by Ian Carnaghan
I am a software developer and online educator who likes to keep up with all the latest in technology. I also manage cloud infrastructure, continuous monitoring, DevOps processes, security, and continuous integration and deployment. In my spare time I teach undergraduate classes in web development. Profile

Leave a Reply

avatar
  Subscribe  
Notify of