{"id":1274,"date":"2016-09-06T05:39:48","date_gmt":"2016-09-06T05:39:48","guid":{"rendered":"http:\/\/www.testingdocs.com\/questions\/?p=1274"},"modified":"2024-12-14T03:35:27","modified_gmt":"2024-12-14T03:35:27","slug":"how-to-check-java-version-on-windows","status":"publish","type":"post","link":"https:\/\/www.testingdocs.com\/questions\/how-to-check-java-version-on-windows\/","title":{"rendered":"How to check Java version on Windows?"},"content":{"rendered":"<h2>How to check the Java version on Windows?<\/h2>\n<p>You can check the Java version by using the command line window.<\/p>\n<h3><strong>Command Prompt<\/strong><\/h3>\n<p>Type \u201ccmd\u201d in the Search box after clicking on Start.<\/p>\n<p>Alternatively, On the Windows 10 operating system, you can ask Cortana to open the command.<\/p>\n<p>Say the command \u201copen command prompt\u201d , and Cortana will open the command window for you.<\/p>\n<p>To open the Command prompt with Administrator privileges:<\/p>\n<p>Type cmd in the search box. Right-click Cthe ommand prompt, and then click Run as administrator. If the User Account Control dialog box appears, confirm that the action it displays is what you want, and then click Continue.<\/p>\n<p>&nbsp;<\/p>\n<h3><strong>Java -version<br \/>\n<\/strong><\/h3>\n<p>Type java -version at the command line and hit Enter.<\/p>\n<p>You will see the java version in the output as shown below.<\/p>\n<p>\u2014\u2013<\/p>\n<p>C:\\WINDOWS\\system32&gt;java -version<br \/>\njava version \u201c1.8.0_131\u201d<br \/>\nJava(TM) SE Runtime Environment (build 1.8.0_131-b11)<br \/>\nJava HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-524\" src=\"http:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/java-version-check.jpeg\" sizes=\"auto, (max-width: 1339px) 100vw, 1339px\" alt=\"java version check\" width=\"1339\" height=\"572\" title=\"\"><\/p>\n<p>&nbsp;<\/p>\n<p>Java command is normally used to execute a class or a jar file, as shown below:<\/p>\n<p>Usage: java [-options] class [args\u2026]<br \/>\n(to execute a class)<br \/>\nor java [-options] -jar jarfile [args\u2026]<br \/>\n(to execute a jar file)<\/p>\n<p>The common problem is that, if there are any error messages, then the PATH environment variable is not set on the machine. You can add the \u201cbin\u201d folder of JDK installation to the PATH of environment variable.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to check the Java version on Windows? You can check the Java version by using the command line window. Command Prompt Type \u201ccmd\u201d in the Search box after clicking on Start. Alternatively, On the Windows 10 operating system, you can ask Cortana to open the command. Say the command \u201copen command prompt\u201d , and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1274","post","type-post","status-publish","format-standard","hentry","category-automation","has-post-title","has-post-date","has-post-category","has-post-tag","has-post-comment","has-post-author",""],"_links":{"self":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/1274","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/comments?post=1274"}],"version-history":[{"count":5,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/1274\/revisions"}],"predecessor-version":[{"id":26338,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/1274\/revisions\/26338"}],"wp:attachment":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/media?parent=1274"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/categories?post=1274"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/tags?post=1274"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}