Save the Java program by using the class name followed by .java extension. This version was released on 20th March 2018. Note: After entering the command if prompt doesn’t show anything then there will be some error while typing the command. There are two simple ways that you can use command-line operations to find out what version of Elasticsearch you’re running. To find your java version type. “javac -version” would give you the version of the Java development kit. The second way (more familiar with programmers) to check Java version is opening a command prompt and type the following command: java -version. Determine Java Version in Windows From GUI . Type java -version on cmd and press Enter. Each version can have several update numbers - the higher the more recent … By signing up you are agreeing to receive emails according to our privacy policy. Some PCs might have Java already installed. J2SE 1.2 was founded on 8th December 1998 which has a codename called as a playground. execute java -version or java -fullversion commands. Share. 1st step: Click on the windows button and search for the Control Panel. Type java -version in the Command Prompt. This is PATH value. To check version from Windows command prompt, at first you have to download Java and then save the Java bin file address to Windows environment variable and than you have to open Command Prompt and enter Java where you have installed the Java version. To determine what JDK versions and bit levels are currently installed on your system, execute the "GO LICPGM" command on the CL command line. Major changes for this update include: Java Deployment Toolkit, a set of JavaScript functions to ease the deployment of applets and Java Web Start applications. 5th Step: After clicking on the java icon the java control panel will appear on the screen. Unofficially, Java SE 6 Update 7 (1.6.0.7) is the last version of Java that was shown to be working on the Win9x family of operating systems [citation needed] Java SE 6 Update 10: 2008-10-15 HotSpot VM 11. Here we can call 8 as a major version number. Modified on: Wed, 19 Sep, 2018 at 8:26 AM. Switching Java Versions Via the Command Line. Below are the required steps in cmd : Follow the below steps: C:\Users\Admin> cd\. Following are the steps for checking the current java version installed in your Windows 8 PC. This will print out the current version of Java that you're running, as well as the build number. From time to time, I also have a piece of Java code that I want to try out on different Java versions – on the command line without having to click through the menus of my IDE. If 64 bit is running you’ll get a message like: java version "1.6.0_18" Java(TM) SE Runtime Environment (build 1.6.0_18-b07) Java HotSpot(TM) 64-Bit Server VM … here you are. To download Java, go to, To determine if your system is running a 32-bit or 64-bit version, read. Use the subsequent command to compile the Java program. To find out which Java version is installed on your system, run the java -version command: java -version. Press Enter. This process was also released under Java Community Process. Here’s a quick guide to show the use of java -version command to check the current Java/JDK version that installed on your computer. To see your Java version (Windows or Linux), do: % java -version If the answer is 1.7 or later, then this command will dump several dozen lines of property settings to your screen: % java -XshowSettings:properties -version Today we will learn how to Check Java Version in Cmd. IdentifyingNumber : {26A24AE4-039D-4CA4-87B4-2F83217007FF} Name : Java 7 Update 7 Vendor : Oracle Version : 7.0.70 Caption : Java 7 Update 7 I'm also able to ping the machine in question (I noticed Test-Connection is used). Type "java -version" into the Command Prompt, then press Enter on your keyboard. {"smallUrl":"https:\/\/www.wikihow.com\/images\/thumb\/0\/0f\/Check-Your-Java-Version-in-the-Windows-Command-Line-Step-1-Version-2.jpg\/v4-460px-Check-Your-Java-Version-in-the-Windows-Command-Line-Step-1-Version-2.jpg","bigUrl":"\/images\/thumb\/0\/0f\/Check-Your-Java-Version-in-the-Windows-Command-Line-Step-1-Version-2.jpg\/aid3562461-v4-728px-Check-Your-Java-Version-in-the-Windows-Command-Line-Step-1-Version-2.jpg","smallWidth":460,"smallHeight":345,"bigWidth":728,"bigHeight":546,"licensing":"

License: Fair Use<\/a> (screenshot)
\n<\/p><\/div>"}, {"smallUrl":"https:\/\/www.wikihow.com\/images\/thumb\/d\/da\/Check-Your-Java-Version-in-the-Windows-Command-Line-Step-2-Version-2.jpg\/v4-460px-Check-Your-Java-Version-in-the-Windows-Command-Line-Step-2-Version-2.jpg","bigUrl":"\/images\/thumb\/d\/da\/Check-Your-Java-Version-in-the-Windows-Command-Line-Step-2-Version-2.jpg\/aid3562461-v4-728px-Check-Your-Java-Version-in-the-Windows-Command-Line-Step-2-Version-2.jpg","smallWidth":460,"smallHeight":345,"bigWidth":728,"bigHeight":546,"licensing":"

License: Fair Use<\/a> (screenshot)
\n<\/p><\/div>"}, {"smallUrl":"https:\/\/www.wikihow.com\/images\/thumb\/5\/54\/Check-Your-Java-Version-in-the-Windows-Command-Line-Step-3-Version-2.jpg\/v4-460px-Check-Your-Java-Version-in-the-Windows-Command-Line-Step-3-Version-2.jpg","bigUrl":"\/images\/thumb\/5\/54\/Check-Your-Java-Version-in-the-Windows-Command-Line-Step-3-Version-2.jpg\/aid3562461-v4-728px-Check-Your-Java-Version-in-the-Windows-Command-Line-Step-3-Version-2.jpg","smallWidth":460,"smallHeight":345,"bigWidth":728,"bigHeight":546,"licensing":"

License: Fair Use<\/a> (screenshot)
\n<\/p><\/div>"}, {"smallUrl":"https:\/\/www.wikihow.com\/images\/thumb\/5\/5c\/Check-Your-Java-Version-in-the-Windows-Command-Line-Step-4-Version-2.jpg\/v4-460px-Check-Your-Java-Version-in-the-Windows-Command-Line-Step-4-Version-2.jpg","bigUrl":"\/images\/thumb\/5\/5c\/Check-Your-Java-Version-in-the-Windows-Command-Line-Step-4-Version-2.jpg\/aid3562461-v4-728px-Check-Your-Java-Version-in-the-Windows-Command-Line-Step-4-Version-2.jpg","smallWidth":460,"smallHeight":345,"bigWidth":728,"bigHeight":546,"licensing":"

License: Fair Use<\/a> (screenshot)
\n<\/p><\/div>"}, {"smallUrl":"https:\/\/www.wikihow.com\/images\/thumb\/4\/41\/Check-Your-Java-Version-in-the-Windows-Command-Line-Step-5.jpg\/v4-460px-Check-Your-Java-Version-in-the-Windows-Command-Line-Step-5.jpg","bigUrl":"\/images\/thumb\/4\/41\/Check-Your-Java-Version-in-the-Windows-Command-Line-Step-5.jpg\/aid3562461-v4-728px-Check-Your-Java-Version-in-the-Windows-Command-Line-Step-5.jpg","smallWidth":460,"smallHeight":345,"bigWidth":728,"bigHeight":546,"licensing":"

License: Fair Use<\/a> (screenshot)
\n<\/p><\/div>"}, {"smallUrl":"https:\/\/www.wikihow.com\/images\/thumb\/e\/e8\/Check-Your-Java-Version-in-the-Windows-Command-Line-Step-6.jpg\/v4-460px-Check-Your-Java-Version-in-the-Windows-Command-Line-Step-6.jpg","bigUrl":"\/images\/thumb\/e\/e8\/Check-Your-Java-Version-in-the-Windows-Command-Line-Step-6.jpg\/aid3562461-v4-728px-Check-Your-Java-Version-in-the-Windows-Command-Line-Step-6.jpg","smallWidth":460,"smallHeight":345,"bigWidth":728,"bigHeight":546,"licensing":"

License: Fair Use<\/a> (screenshot)
\n<\/p><\/div>"}, {"smallUrl":"https:\/\/www.wikihow.com\/images\/thumb\/3\/38\/Check-Your-Java-Version-in-the-Windows-Command-Line-Step-7.jpg\/v4-460px-Check-Your-Java-Version-in-the-Windows-Command-Line-Step-7.jpg","bigUrl":"\/images\/thumb\/3\/38\/Check-Your-Java-Version-in-the-Windows-Command-Line-Step-7.jpg\/aid3562461-v4-728px-Check-Your-Java-Version-in-the-Windows-Command-Line-Step-7.jpg","smallWidth":460,"smallHeight":345,"bigWidth":728,"bigHeight":546,"licensing":"

License: Fair Use<\/a> (screenshot)
\n<\/p><\/div>"}, {"smallUrl":"https:\/\/www.wikihow.com\/images\/thumb\/c\/cf\/Check-Your-Java-Version-in-the-Windows-Command-Line-Step-8.jpg\/v4-460px-Check-Your-Java-Version-in-the-Windows-Command-Line-Step-8.jpg","bigUrl":"\/images\/thumb\/c\/cf\/Check-Your-Java-Version-in-the-Windows-Command-Line-Step-8.jpg\/aid3562461-v4-728px-Check-Your-Java-Version-in-the-Windows-Command-Line-Step-8.jpg","smallWidth":460,"smallHeight":345,"bigWidth":728,"bigHeight":546,"licensing":"

License: Fair Use<\/a> (screenshot)
\n<\/p><\/div>"}, {"smallUrl":"https:\/\/www.wikihow.com\/images\/thumb\/0\/05\/Check-Your-Java-Version-in-the-Windows-Command-Line-Step-9.jpg\/v4-460px-Check-Your-Java-Version-in-the-Windows-Command-Line-Step-9.jpg","bigUrl":"\/images\/thumb\/0\/05\/Check-Your-Java-Version-in-the-Windows-Command-Line-Step-9.jpg\/aid3562461-v4-728px-Check-Your-Java-Version-in-the-Windows-Command-Line-Step-9.jpg","smallWidth":460,"smallHeight":345,"bigWidth":728,"bigHeight":546,"licensing":"

License: Fair Use<\/a> (screenshot)
\n<\/p><\/div>"}, {"smallUrl":"https:\/\/www.wikihow.com\/images\/thumb\/7\/72\/Check-Your-Java-Version-in-the-Windows-Command-Line-Step-10.jpg\/v4-460px-Check-Your-Java-Version-in-the-Windows-Command-Line-Step-10.jpg","bigUrl":"\/images\/thumb\/7\/72\/Check-Your-Java-Version-in-the-Windows-Command-Line-Step-10.jpg\/aid3562461-v4-728px-Check-Your-Java-Version-in-the-Windows-Command-Line-Step-10.jpg","smallWidth":460,"smallHeight":345,"bigWidth":728,"bigHeight":546,"licensing":"

License: Fair Use<\/a> (screenshot)
\n<\/p><\/div>"}, {"smallUrl":"https:\/\/www.wikihow.com\/images\/thumb\/c\/c9\/Check-Your-Java-Version-in-the-Windows-Command-Line-Step-11.jpg\/v4-460px-Check-Your-Java-Version-in-the-Windows-Command-Line-Step-11.jpg","bigUrl":"\/images\/thumb\/c\/c9\/Check-Your-Java-Version-in-the-Windows-Command-Line-Step-11.jpg\/aid3562461-v4-728px-Check-Your-Java-Version-in-the-Windows-Command-Line-Step-11.jpg","smallWidth":460,"smallHeight":345,"bigWidth":728,"bigHeight":546,"licensing":"

License: Fair Use<\/a> (screenshot)
\n<\/p><\/div>"}, {"smallUrl":"https:\/\/www.wikihow.com\/images\/thumb\/a\/a3\/Check-Your-Java-Version-in-the-Windows-Command-Line-Step-12.jpg\/v4-460px-Check-Your-Java-Version-in-the-Windows-Command-Line-Step-12.jpg","bigUrl":"\/images\/thumb\/a\/a3\/Check-Your-Java-Version-in-the-Windows-Command-Line-Step-12.jpg\/aid3562461-v4-728px-Check-Your-Java-Version-in-the-Windows-Command-Line-Step-12.jpg","smallWidth":460,"smallHeight":345,"bigWidth":728,"bigHeight":546,"licensing":"

License: Fair Use<\/a> (screenshot)
\n<\/p><\/div>"}, {"smallUrl":"https:\/\/www.wikihow.com\/images\/thumb\/b\/b9\/Check-Your-Java-Version-in-the-Windows-Command-Line-Step-13.jpg\/v4-460px-Check-Your-Java-Version-in-the-Windows-Command-Line-Step-13.jpg","bigUrl":"\/images\/thumb\/b\/b9\/Check-Your-Java-Version-in-the-Windows-Command-Line-Step-13.jpg\/aid3562461-v4-728px-Check-Your-Java-Version-in-the-Windows-Command-Line-Step-13.jpg","smallWidth":460,"smallHeight":345,"bigWidth":728,"bigHeight":546,"licensing":"

License: Fair Use<\/a> (screenshot)
\n<\/p><\/div>"}, {"smallUrl":"https:\/\/www.wikihow.com\/images\/thumb\/8\/8c\/Check-Your-Java-Version-in-the-Windows-Command-Line-Step-14.jpg\/v4-460px-Check-Your-Java-Version-in-the-Windows-Command-Line-Step-14.jpg","bigUrl":"\/images\/thumb\/8\/8c\/Check-Your-Java-Version-in-the-Windows-Command-Line-Step-14.jpg\/aid3562461-v4-728px-Check-Your-Java-Version-in-the-Windows-Command-Line-Step-14.jpg","smallWidth":460,"smallHeight":345,"bigWidth":728,"bigHeight":546,"licensing":"

License: Fair Use<\/a> (screenshot)
\n<\/p><\/div>"}, {"smallUrl":"https:\/\/www.wikihow.com\/images\/thumb\/6\/64\/Check-Your-Java-Version-in-the-Windows-Command-Line-Step-15.jpg\/v4-460px-Check-Your-Java-Version-in-the-Windows-Command-Line-Step-15.jpg","bigUrl":"\/images\/thumb\/6\/64\/Check-Your-Java-Version-in-the-Windows-Command-Line-Step-15.jpg\/aid3562461-v4-728px-Check-Your-Java-Version-in-the-Windows-Command-Line-Step-15.jpg","smallWidth":460,"smallHeight":345,"bigWidth":728,"bigHeight":546,"licensing":"

License: Fair Use<\/a> (screenshot)
\n<\/p><\/div>"}, {"smallUrl":"https:\/\/www.wikihow.com\/images\/thumb\/e\/e2\/Check-Your-Java-Version-in-the-Windows-Command-Line-Step-16.jpg\/v4-460px-Check-Your-Java-Version-in-the-Windows-Command-Line-Step-16.jpg","bigUrl":"\/images\/thumb\/e\/e2\/Check-Your-Java-Version-in-the-Windows-Command-Line-Step-16.jpg\/aid3562461-v4-728px-Check-Your-Java-Version-in-the-Windows-Command-Line-Step-16.jpg","smallWidth":460,"smallHeight":345,"bigWidth":728,"bigHeight":546,"licensing":"

License: Fair Use<\/a> (screenshot)
\n<\/p><\/div>"}, {"smallUrl":"https:\/\/www.wikihow.com\/images\/thumb\/b\/bb\/Check-Your-Java-Version-in-the-Windows-Command-Line-Step-17.jpg\/v4-460px-Check-Your-Java-Version-in-the-Windows-Command-Line-Step-17.jpg","bigUrl":"\/images\/thumb\/b\/bb\/Check-Your-Java-Version-in-the-Windows-Command-Line-Step-17.jpg\/aid3562461-v4-728px-Check-Your-Java-Version-in-the-Windows-Command-Line-Step-17.jpg","smallWidth":460,"smallHeight":345,"bigWidth":728,"bigHeight":546,"licensing":"

License: Fair Use<\/a> (screenshot)
\n<\/p><\/div>"}. This wikiHow teaches you how to check what version of java you have installed on your Windows computer using Command Prompt. To confirm that you have the right version of the Java interpreter installed, type the command in boldface below and check that the output matches: C:\Users\username> java -version java version "1.6.0_67" Java(TM) SE Runtime Environment (build 1.6.0_67-b07) Java HotSpot(TM) 64-Bit Server VM (build 20.2-b06, mixed mode) C:\Sample> javac Test.java. If nothing comes up, please install the latest Java version from OpenJDK. The second line includes information about the build level of the runtime environment. The concept of Enumerations and static imports was discovered in this version. Adding JAVA_HOME variable-java is not recognized as an internal or external command. This Java version was founded on 30th September 2004 which was codenamed as Tiger. It supports a set of commands and utilities; and has its own programming language for writing batch files. Open a command-line window on the server where Java is installed. 2nd Step: Now Click on the Accessories which is the sub-folder of the All Programs. In that case, the version of Java you see in the console is of the first JRE/JDK found in the list of environment variables. These instructions are specialized to Windows 7, but are similar for Windows XP and Windows Vista. Whether they're set ergonomically, in a command line, by an input tool, or through the APIs (for example, classes contained in the package java.lang.management) the values provided to all Java Virtual Machine (JVM) command-line flags are validated. Note: Open terminal on *nix machines. With over eight years of experience, Yaffet specializes in computer repairs and technical support. Then, enter option "10" and press ENTER. Computer Specialist. Type cmd to display the Command Prompt icon in the Start menu. Note: We are considering that Java is properly installed and the path is properly set in your system. Since Java supports a -version command line option, you can use it to select a specific version to run, e.g. Linux: Start a terminal window with the terminal window open type in "java -version". The java command gives the version of the JRE, the runtime environment. The Java version can be found: under the Windows Start Menu; in the Java Control Panel (Windows and Mac) under Programs of the Windows Control Panel; in terminal window command line (Mac) Use any of these options if you are having trouble running applets to confirm that you have a specific Java version. We have run the commands and procedures mentioned in this article on a Ubuntu 18.04 LTS system. First, open the terminal. The Java development kit (JDK) is NOT the same thing as the Java runtime environment (JRE). Last Updated: October 7, 2020 now when I check the version of the java jre again it still shows the older version 1.4 I cannot override the path variable using set path="C:\Program Files\Java\jre1.5.0_05\bin" as it affects the other variables. 1st Step: Click on the windows button situated in the left side corner of the screen or press windows button from the keyboard. 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. This article was co-authored by Yaffet Meshesha. J2SE 1.4 was found on 6th February 2002 with a codename Merlin. C:> cd Sample. Oracle named it is Oak. The best part is, this CMD works with all Windows versions. 3rd Step: Click on the Programs icon and the second screen will be opened as shown in the following image. I already have this set up correctly. Command Prompt. Originally it was launched on 7th July 2011 but was available on 28th July. This will output the version of Java installed on your computer. This is an alternate method to check the current java version installed in your PC. To check if you have Java installed on a Windows PC, search in the start bar for Java or type the following in Command Prompt (cmd.exe): Java 1 comes with the private and protected which could be used together. How to Downgrade Java Version (Windows User) Print. With over eight years of experience, Yaffet specializes in computer repairs and technical support. Java SE 6 was founded on 11th December 2006 with a code-name of Mustang. Get a name of version you want to use, then issue this command, sudo archlinux-java set JAVA-X-JDK where JAVA-X-JDK is the name result from the status command. How to Check Your Java Version in the Windows Command Line, How to Check If Your PC is Running the 32-bit or 64-bit Version of Windows, https://www.youtube.com/watch?v=vaJLupUp79A, vérifier la version de Java avec l'invite de commande, विंडोज कमांड लाइन में जावा वर्जन चेक करें।, Windows'ta Komut Satırında Java Sürümün Nasıl Kontrol Edilir, If it doesn't display any information or there is an error while running the command, you might not have Java installed on your computer. This is the first Java platform released under Java Community Process. If executing the command java -version results in a messsage similar to: java: not found this is an indication that your PATH variable is not correctly configured or you need to specify the full path to the java command. If no older versions of Java appear in the Control Panel, download and install one from the Oracle archive site: Java SE 8 Archive Downloads. Note, I'm using a Mac, and the scripts in this post will work on a Mac and, perhaps, on some Linux machines. Finally, press the F11 key twice to … Now the current directory is Sample. Step 1 - Need to create a java program either in Notepad or other IDE. Java SE 7 comes with additional features like JVM support for the Dynamic Languages and the string Added in the switch. The steps below will outline this: - Click your Windows Icon (bottom left on your screen) to open the Start Menu, depending on your Windows version the Control Panel will be in a different place. The first way is running java command in command line with version information. If there is not an older version of Java on your machine, you will need to download and install the previous version and reinstall Voyant. 22 September 2020. First, check available Java versions on your Linux system by using update-alternatives command: $ sudo update-alternatives --display java In this example, there are four different Java versions that are installed: OpenJDK JRE 1.6, Oracle Java JRE 1.6, OpenJDK JRE 1.7 and Oracle Java JRE 1.7. If not, you won't be able to use any of the java executables from the command prompt. Yaffet Meshesha. In my case I installed java jdk in C:\Program Files\Java\jdk-10.0.2. Run the following command: java -version. After a moment, your screen should display the information … If javac.exe file is found then try to configure java jdk\bin location directory path in environment path variable to use javac command in any path directory. 6th Step: Click on the about button situated on the top right corner. > java -version. 3. C:\Sample> set path=%path%;C:\Program Files\Java\jdk1.8.0_101\bin. In the below example, the JDK version is 11.0.7 java -version and you should see output similar to this: java version "1.7.0_04" Java(TM) SE Runtime Environment (build 1.7.0_04-b20) Java HotSpot(TM) 64-Bit Server VM (build 23.0-b21, mixed mode) Although yours will be in 32 bits. Checklist Item 1: In your windows please find the configure java option to view or change java settings. We use cookies to make wikiHow great. Java Version = 10.0.1+10 Java Version Feature Element = 10 Java Version Interim Element = 0 Java Patch Element Version = 0 Java Update Element Version = 1 Java Version Build = 10 Java Pre-Release Info = NA Note that the program output matches with the output from java -version command. How to Check Java Version in Cmd for Windows 10, 3. click this configure java option. 3. 4th Step: Now Click on the java icon which is in the third position. By using our site, you agree to our. Let us see how to check java version using control panel. The wikiHow Tech Team also followed the article's instructions and verified that they work. To do so, click the Spotlight Search button in the top-right of the screen. 3rd Step: Select Command Prompt Application from the List and the command prompt will be displayed on the screen. There are many middleware tools which require latest version of java jdk to be installed on your Linux machine. So this was the methods to Check the java version using Cmd and using Control Panel. Disable or Enable All Java Plugins in browsers with a Single Click; Java 8 Now available on Java.com for download as default JRE; Checking Java Version online: To verify, you have the recommended version of Java installed for your Operating … There could be more than one Java version installed on Linux and windows. Java You will use the Java compiler javac to compile your Java programs and the Java interpreter java to run them. This is the first version of java which was founded on 23rd January 1996 which was the first stable version of java. I have circled with a red colour. If not found javac.exe file, need to install the java properly on windows 10 machine. JDK 1.1 was launched on 19th February 1997. Jawa. You should skip the first step if Java is already installed on your machine. 1.Open Cmd prompt from the Start menu 2.Type java -version in Cmd prompt and press enter 3.Java Version The first method for checking your Elasticsearch version makes use of the curl command. We will also provide -version option like below. This release was very important which comes with Java Plug-in and the collection frameworks. The first way is running java command in command line with version information. Replace the above JDK version with your installed java version. So it is helpful to be able to quickly and easily change the Java version to be used for compiling code or executing class files. Identification Methods. In this post, I want to share my setup to switch the active JDK version on the command line. Read: How to Convert Char to Int in Java. 4th Step: After opening the application just type java -version in the window and press Enter. This is how to run the program in cmd using interpreter. Installing an older release of Java. With upcoming changes to Java it may be necessary to revert back to an older version in order to continue using the streamer's Web Start Installer without issue. 3rd Step: Click on the black coloured application which contains white coloured C: text. In this short tutorial, we're going to take a look at a few ways to determine if Java is installed on a machine. java -version. Step A. Open a terminal window. Run the Java Program in CMD. This will Compile the program in cmd. Installed java version will be shown in the Command prompt window. 3rd Step: Now type cmd.exe next to the open tab and click Ok. To confirm that you have the right version of the Java interpreter installed, type the command in boldface below and check that the output matches: C:\Users\username> java -version java version "1.6.0_67" Java(TM) SE Runtime Environment (build 1.6.0_67-b07) Java HotSpot(TM) 64-Bit Server VM (build 20.2-b06, mixed mode) We have different methods to determine Java or JRE version in windows. Yaffet Meshesha is a Computer Specialist and the Founder of Techy, a full-service computer pickup, repair, and delivery service. There could be more than one Java version installed on Linux and windows. It conjointly shows a slip if any. Note: If the output indicates there is no such package on the system, you can install it with the help of one of our guides - How to install Java on Ubuntu or How to Install Java on CentOS. Now in the Command Prompt window type java –version and press enter. The output tells us where the Java command is: /usr/bin/java. The command prompt will be opened on the screen. Click Start button > Run > type CMD and press Enter. 4. For me on win 10, javac -version showed java7 and java -version showed java8.Doing "where java" on command prompt showed java at three locations. It will print the following output : Output:Sample Class to test Additional Points Replace … 7th Step: After Clicking on about button the Oracle window will appear which tells about the version of java installed in your Computer. It is developed by Sun Microsystems Incorporation. Techy has been featured on TechCrunch and Time. Java is a set of computer software and specifications developed by James Gosling at Sun Microsystems, which was later acquired by the Oracle Corporation, that provides a system for developing application software and deploying it in a cross-platform computing environment. a.) This article was co-authored by Yaffet Meshesha. This version comes with additional features which include HotSpot JVM, Java Naming and Directory Interface(JNDI) and JavaSound. 2nd Step: Now click the Control Panel and the Panel will be displayed on the screen. Step 5: Use the subsequent command to run the Java program: Do This In CMD And Know how to run java program in cmd… Thank You Since Java supports a -version command line option, you can use it to select a specific version to run, e.g. Static Installation. After Clicking on Accessories the list of pre-installed windows programs will be displayed. The output provides the following information: The first line indicates the Java standard edition class library level. If you are sure you are installed Java in your Computer, to check its version. In order to complete this task the first step will be to remove your current Java version, then follow our link to download an older version.