- How to Check Java Version in Cmd
- 1. How to Check Java Version in Cmd for Windows 10
- 2. Using Control Panel
- 3. How to Check Java Version in Cmd For Windows 8
- 4. How to Check Java Version in Cmd for Windows 7 or Vista
- Different Versions of Java
- JDK Alpha and Beta:
- JDK 1.0:
- JDK 1.1:
- J2SE 1.2:
- J2SE 1.3:
- J2SE 1.4:
- J2SE 5.0:
- Java SE 6:
- Java SE 7:
- Java SE 8:
- Java SE 9:
- Java SE 10:
- How to Determine Java Version
- Verifying Online
- Windows
- Mac OSX
- Linux
- Expert Q&A
- You Might Also Like
- How to check which version of Java you have installed in Windows 10, in 2 steps
- Check out the products mentioned in this article:
- Windows 10 (From $139.99 at Best Buy)
- Lenovo IdeaPad 130 (From $299.99 at Best Buy)
- How to check which Java version you have in Windows 10
How to Check Java Version in Cmd
Today we will learn how to Check Java Version in Cmd. So there are mainly two methods to check the Java version which are:
We will learn both the methods one by one.
1. How to Check Java Version in Cmd for Windows 10
1st Step: Click on the windows button situated in the left side corner of the screen or press windows button from the keyboard.
2nd Step: Now type cmd in the search box. The list of the programs will appear on the screen.
3rd Step: Click on the black coloured application which contains white coloured C: text.
4th Step: After opening the application just type java -version in the window and press Enter. This is the application where we will know which java version is installed in our PC.
Note: After entering the command if prompt doesn’t show anything then there will be some error while typing the command. Or the java might not be installed in your PC.
5th Step: After pressing the enter button from the keyboard the details of the java version will be displayed as shown in the below image. I have installed java version “1.8.0_251” on my PC.
2. Using Control Panel
This is an alternate method to check the current java version installed in your PC. Let us see how to check java version using control panel.
1st step: Click on the windows button and search for the Control Panel.
2nd Step: Now click the Control Panel and the Panel will be displayed on the screen.
3rd Step: Click on the Programs icon and the second screen will be opened as shown in the following image.
4th Step: Now Click on the java icon which is in the third position. I have circled with a red colour.
5th Step: After clicking on the java icon the java control panel will appear on the screen.
6th Step: Click on the about button situated on the top right corner. I have circled with a red colour.
7th Step: After Clicking on about button the Oracle window will appear which tells about the version of java installed in your Computer.
3. How to Check Java Version in Cmd For Windows 8
Following are the steps for checking the current java version installed in your Windows 8 PC.
1st Step: Right-click on the windows icon situated in the bottom left corner of the screen. The System Menu will be displayed above the start button.
2nd Step: Now click on the Run option which is at the third position from the bottom. The Run Program window will be displayed.
3rd Step: Now type cmd.exe next to the open tab and click Ok. The command prompt will be opened on the screen.
4th Step: Now type java -version in the command prompt and the press enter from the keyboard.
5th Step: Now the details of the installed java version will be displayed in the command prompt.
4. How to Check Java Version in Cmd for Windows 7 or Vista
1st Step: Click on the windows icon and then click on the all programs option and the list of programs installed on your PC will be displayed on the screen.
2nd Step: Now Click on the Accessories which is the sub-folder of the All Programs. After Clicking on Accessories the list of pre-installed windows programs will be displayed.
3rd Step: Select Command Prompt Application from the List and the command prompt will be displayed on the screen.
4th Step: Type java -version in cmd and press enter from the keyboard and the currently installed Java version will be displayed on the screen.
So this was the methods to Check the java version using Cmd and using Control Panel.
Now we will see the different types of versions of java till now which are founded by the oracle.
Different Versions of Java
JDK Alpha and Beta:
The JDK Alpha and Beta was founded in the year 1995 which have very unstable APIs.
JDK 1.0:
This is the first version of java which was founded on 23rd January 1996 which was the first stable version of java. Oracle named it is Oak. Java 1 comes with the private and protected which could be used together.
JDK 1.1:
This is the incremented version of java 1 so named as Java 1.1. The concept of the inner class, JavaBeans and the JDBC(Java DataBase Connectivity) were launched. JDK 1.1 was launched on 19th February 1997.
J2SE 1.2:
J2SE 1.2 was founded on 8th December 1998 which has a codename called as a playground. The full form of J2SE is Java 2 Platform Standard Edition). This release was very important which comes with Java Plug-in and the collection frameworks.
J2SE 1.3:
J2SE 1.3 was founded on 8th May 2000 with a codename called Kestrel. This version comes with additional features which include HotSpot JVM, Java Naming and Directory Interface(JNDI) and JavaSound.
J2SE 1.4:
J2SE 1.4 was found on 6th February 2002 with a codename Merlin. This is the first Java platform released under Java Community Process.
J2SE 5.0:
This Java version was founded on 30th September 2004 which was codenamed as Tiger. To reflect the level of maturity oracle renamed J2SE 1.5 to J2SE 5.0. This process was also released under Java Community Process.
The concept of Enumerations and static imports was discovered in this version.
Java SE 6:
Java SE 6 was founded on 11th December 2006 with a code-name of Mustang. The name J2SE was replaced with SE with additional features included like Scripting Language Support and JDBC 4.0 Support.
Java SE 7:
This version was founded on 28th July 2011 with a code-name called Dolphin. Originally it was launched on 7th July 2011 but was available on 28th July. Java SE 7 comes with additional features like JVM support for the Dynamic Languages and the string Added in the switch.
Java SE 8:
The code-name for Java SE 8 was given as Spider which is common among all the java developers. This version was founded on 18th March 2014 with additional features included as Language level support for Lambda Expression and the Annotation of Java Types.
Java SE 9:
This version’s release date was postponed many times by the oracle because of hope that version 9 would be better than other versions. So the Java SE 9 was finally released on 21st September 2017 which comes with new features like Money and Currency API, Java Linker, Automatic Scaling and Sizing.
Java SE 10:
This version was released on 20th March 2018. The main motive of this release was to remove the primitive data-types and move towards arrays to supports large data sets. This release was the important release which comes with 12 additional features.
How to Determine Java Version
This article was co-authored by Yaffet Meshesha. Yaffet Meshesha is a Computer Specialist and the Founder of Techy, a full-service computer pickup, repair, and delivery service. With over eight years of experience, Yaffet specializes in computer repairs and technical support. Techy has been featured on TechCrunch and Time.
This article has been viewed 392,768 times.
Multiple copies of Java can be installed on a single computer, and, if you have more than one browser, every one of them could be using a different version or none at all. You can determine your Java version by verifying it on the Java website, or you could check using the Windows command prompt, Mac terminal, or Linux terminal.
Verifying Online
Open a new window in your web navigate to Java’s website. Oracle, the makers of Java, have provided an easy page that will check your Java installation and report the exact version you’re running. This can be done from any operating system.
After a few seconds, check the results! This will include the Version number as well as the Update number. The version number is most important if you’re checking for compatibility with other programs.
Windows
Wait for a black window with white text to appear on your screen. This is called a «console window.»
- You can tell what version of Java you have by looking at the number after the «1.» in the first line of the console output. In this example, the user has Java 8 installed.
Mac OSX
With Utilities open, open the Terminal and type in «java -version», then retrieve the current java version.
Linux
- This should return something like Java(TM) 2 Runtime Environment, Standard Edition (build 1.6) If it returns
-bash: java: command not found
This means that either it is not installed or you haven’t set up your paths properly
- With Firefox 3 go to Tools Add-ons button and go to the Plug-ins tab.
- With Firefox 2 or 3: In Firefox versions 2 and 3, enter in the address bar: about:plugins. If Java is installed there will be multiple Java entries.
- With Internet Explorer 7 or 8 go to Tools select Internet Options in the General tab click on the Browsing History Settings button and select the View Objects button right click on an ActiveX control and get its properties. Each ActiveX control has a «code base» and for each of the Java entries it will display the version number.
Expert Q&A
You Might Also Like
How to Set JAVA_HOME for JDK & JRE: A Step-by-Step Guide
Use Easy Windows CMD Commands to Check Your Java Version
How to Do Division in Java (Integer and Floating Point)
How to Compile and Run Java Programs Using Notepad++
Simple Steps to Type a Bunny with Your Keyboard
How to check which version of Java you have installed in Windows 10, in 2 steps
Email icon An envelope. It indicates the ability to send an email.
Twitter LinkedIn icon The word «in».
LinkedIn Fliboard icon A stylized letter F.
Flipboard Facebook Icon The letter F.
Facebook Email icon An envelope. It indicates the ability to send an email.
Email Link icon An image of a chain link. It symobilizes a website link url.
- To check which version of Java you have on your Windows computer, you’ll need to open the Command Prompt app.
- If you don’t have the latest version of Java installed, Windows may have trouble downloading or running certain programs.
- Visit Business Insider’s homepage for more stories.
Java is a programming language that’s used to install and run programs. Chances are that there are already several programs on your Windows computer that run using Java, even if you don’t know it.
However, if Windows isn’t running the latest version of Java, you may have trouble downloading new programs, or even opening some websites.
To check which version of Java you’re running, you’ll need to use Windows 10’s Command Prompt app. The Command Prompt can seem intimidating at first, but if you know what to type, you’ll be fine.
Here’s everything you need to know.
Check out the products mentioned in this article:
Windows 10 (From $139.99 at Best Buy)
Lenovo IdeaPad 130 (From $299.99 at Best Buy)
How to check which Java version you have in Windows 10
1. Type «Command Prompt» into the search bar next to your Start menu, and click on it when it appears in the search results.
2. Type «java -version» into the Command Prompt, then press Enter on your keyboard.
After a moment, your screen should display the information your computer has about Java, including what version you have installed.
If nothing displays, it most likely means that you don’t have Java installed on your computer at all. Luckily, you can download it for free here.