O'Reilly logo

Java Garage by Eben Hewitt

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Checking Current Java Version

It is not uncommon to have many different JREs running on the same machine at the same time. To check the current default version:

  1. Open a command prompt.

  2. Type java –version.

You will see output similar to this:

Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b91)
Java HotSpot(TM) Client VM (build 1.5.0-b91, mixed mode)

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required