{"id":8029,"date":"2014-01-07T16:00:19","date_gmt":"2014-01-07T14:00:19","guid":{"rendered":"http:\/\/examples.javacodegeeks.com\/?p=8029"},"modified":"2021-05-24T13:03:41","modified_gmt":"2021-05-24T10:03:41","slug":"java-version-check-checking-java-version-in-windows-linux-macos","status":"publish","type":"post","link":"https:\/\/examples.javacodegeeks.com\/check-java-version-in-windows-linux-macos\/","title":{"rendered":"How to Check Java version in Windows, Linux, MacOS"},"content":{"rendered":"<p>In this tutorial we will show how to check the Java version in different operating systems, such as Windows, Linux and Macintosh.<\/p>\n<p>Depending on your operating system, there are a couple of methods, in order to find the installed <code>Java version<\/code>. There are methods that apply to all operating systems and methods that apply to each one exclusively.<\/p>\n<h2 class=\"wp-block-heading\" id=\"h-1-check-java-version-in-all-operating-systems\">1. Check Java version in all Operating Systems<\/h2>\n<p>1. First of all, using the terminal (Linux or Mac) or the command prompt (Windows), issue the following command:<\/p>\n<div>\n<div id=\"highlighter_108966\" class=\"syntaxhighlighter  bash\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td class=\"gutter\">\n<div class=\"line number1 index0 alt2\">1<\/div>\n<\/td>\n<td class=\"code\">\n<div class=\"container\">\n<div class=\"line number1 index0 alt2\"><code class=\"bash plain\">java \u2013version<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>A sample execution of the command in a Linux computer is shown below:<\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2014\/01\/java_version_Linux_WM.png\"><img decoding=\"async\" width=\"471\" height=\"129\" src=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2014\/01\/java_version_Linux_WM.png\" alt=\"Check Java version - java_version_Linux_WM\" class=\"wp-image-8030\" srcset=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2014\/01\/java_version_Linux_WM.png 471w, https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2014\/01\/java_version_Linux_WM-300x82.png 300w\" sizes=\"(max-width: 471px) 100vw, 471px\" \/><\/a><figcaption>java_version_Linux_WM<\/figcaption><\/figure>\n<\/div>\n<p><b>Important:<\/b> In order for this command to be executed in Windows, the <code>$JAVA_HOME<\/code> environment variable must be defined and properly point to the home installation folder of Java.<\/p>\n<p>2. Using your Web browser, you can visit the <a href=\"http:\/\/java.com\/en\/download\/installed.jsp\">Verify Java Version<\/a> page.<\/p>\n<p>However, if your browser does not contain the necessary plugins or there is some configuration error, you will not be able to execute the aforementioned verification applet. Also, if you don\u2019t succeed in executing the applet, this does not suggest that Java is not installed in your system.<\/p>\n<p>3. Moreover, you can execute the following Java code that prints the current <code>version<\/code> of Java:<\/p>\n<p><i><span style=\"text-decoration: underline;\">FindJavaVersion.java:<\/span><\/i><\/p>\n<div>\n<div id=\"highlighter_575058\" class=\"syntaxhighlighter  java\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td class=\"gutter\">\n<div class=\"line number1 index0 alt2\">1<\/div>\n<div class=\"line number2 index1 alt1\">2<\/div>\n<div class=\"line number3 index2 alt2\">3<\/div>\n<div class=\"line number4 index3 alt1\">4<\/div>\n<div class=\"line number5 index4 alt2\">5<\/div>\n<div class=\"line number6 index5 alt1\">6<\/div>\n<div class=\"line number7 index6 alt2\">7<\/div>\n<\/td>\n<td class=\"code\">\n<div class=\"container\">\n<div class=\"line number1 index0 alt2\"><code class=\"java keyword\">package<\/code> <code class=\"java plain\">main.java;<\/code><\/div>\n<div class=\"line number2 index1 alt1\">&nbsp;<\/div>\n<div class=\"line number3 index2 alt2\"><code class=\"java keyword\">public<\/code> <code class=\"java keyword\">class<\/code> <code class=\"java plain\">FindJavaVersion {<\/code><\/div>\n<div class=\"line number4 index3 alt1\"><code class=\"java spaces\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"java keyword\">public<\/code> <code class=\"java keyword\">static<\/code> <code class=\"java keyword\">void<\/code> <code class=\"java plain\">main(String[] args) {<\/code><\/div>\n<div class=\"line number5 index4 alt2\"><code class=\"java spaces\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"java plain\">System.out.println(System.getProperty(<\/code><code class=\"java string\">\"java.version\"<\/code><code class=\"java plain\">));<\/code><\/div>\n<div class=\"line number6 index5 alt1\"><code class=\"java spaces\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code class=\"java plain\">}<\/code><\/div>\n<div class=\"line number7 index6 alt2\"><code class=\"java plain\">}<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<h2 class=\"wp-block-heading\" id=\"h-2-find-java-version-windows-only\">2. Find Java version \u2013 Windows only<\/h2>\n<p>The latest versions of Java, along with the installed JRE, they provide a <code>Java Control Panel<\/code>. Among other informations, the <code>Java Control Panel<\/code> also contains the installed <code>Java version<\/code>:<div style=\"display:inline-block; margin: 15px 0;\"> <div id=\"adngin-JavaCodeGeeks_incontent_video-0\" style=\"display:inline-block;\"><\/div> <\/div><\/p>\n<ul class=\"wp-block-list\">\n<li>Open the Windows Control Panel.<\/li>\n<li>In the Control Panel Search area, enter Java Control Panel.<\/li>\n<li>Click on the Java icon that appears, in order to open the Java Control Panel.<\/li>\n<li>Click on the <code>About\u2026<\/code> button. The following screen shall appear:\n<\/li>\n<\/ul>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2014\/01\/about_Java_WM.png\"><img decoding=\"async\" src=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2014\/01\/about_Java_WM.png\" alt=\"about_Java_WM\" width=\"398\" height=\"268\"><\/a><figcaption>about_Java_WM<\/figcaption><\/figure>\n<\/div>\n<p>An extra way to find the installed Java version in Windows 7 and Vista is the following:<\/p>\n<ul class=\"wp-block-list\">\n<li>Open the Windows \u201cControl Panel\u201d.<\/li>\n<li>Select \u201cPrograms\u201d and then, \u201cPrograms and Features\u201d.<\/li>\n<li>The installed Java will be listed among the list of applications.<\/li>\n<\/ul>\n<h2 class=\"wp-block-heading\" id=\"h-3-find-java-version-linux-and-mac\">3. Find Java version &#8211; Linux and Mac<\/h2>\n<p>In either operating system, open a terminal and issue the following command:<\/p>\n<div>\n<div id=\"highlighter_713380\" class=\"syntaxhighlighter  bash\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td class=\"gutter\">\n<div class=\"line number1 index0 alt2\">1<\/div>\n<\/td>\n<td class=\"code\">\n<div class=\"container\">\n<div class=\"line number1 index0 alt2\"><code class=\"bash functions\">which<\/code> <code class=\"bash plain\">java<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>The output of the command\u2019s execution will be the absolute path of Java\u2019s executable file. Copy that absolute path and execute it along with the <code>\u2013version<\/code> argument. The output of this command will show you the installed Java version.<\/p>\n<p>Furthermore, a more slow way is to search for the java folder, starting from the root. Depending on your personal computer, the following command may require enough time to be executed:<\/p>\n<div>\n<div id=\"highlighter_945875\" class=\"syntaxhighlighter  bash\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td class=\"gutter\">\n<div class=\"line number1 index0 alt2\">1<\/div>\n<\/td>\n<td class=\"code\">\n<div class=\"container\">\n<div class=\"line number1 index0 alt2\"><code class=\"bash functions\">sudo<\/code> <code class=\"bash functions\">find<\/code> <code class=\"bash plain\">\/ -name java<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<h2 class=\"wp-block-heading\" id=\"h-4-find-java-version-linux-only\">4. Find Java version \u2013 Linux only<\/h2>\n<p>In Ubuntu systems, an extra command that lists all installed java versions is provided:<\/p>\n<div>\n<div id=\"highlighter_933051\" class=\"syntaxhighlighter  bash\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td class=\"gutter\">\n<div class=\"line number1 index0 alt2\">1<\/div>\n<\/td>\n<td class=\"code\">\n<div class=\"container\">\n<div class=\"line number1 index0 alt2\"><code class=\"bash plain\">update-java-alternatives \u2013l<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>Also, in RPM-based system, the RPM database can be queried to determine what packages have been installed. This command will try to locate any Java installed on the system:<\/p>\n<div>\n<div id=\"highlighter_585911\" class=\"syntaxhighlighter  bash\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td class=\"gutter\">\n<div class=\"line number1 index0 alt2\">1<\/div>\n<\/td>\n<td class=\"code\">\n<div class=\"container\">\n<div class=\"line number1 index0 alt2\"><code class=\"bash plain\">rpm -q --list jre | <\/code><code class=\"bash functions\">grep<\/code> <code class=\"bash string\">\"bin\/java\"<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p><b>Note:<\/b> If a <code>version<\/code> of Java is installed on the system, but is not listed by the RPM query, then it is not an RPM installation.<\/p>\n<h2 class=\"wp-block-heading\" id=\"h-5-find-java-version-macintosh-only\">5. Find Java version \u2013 Macintosh only<\/h2>\n<p>In the Mac Os operating system, inside the <code>\/Applications\/Utilities\/<\/code> folder, launch <code>Java Preferences<\/code>. The Java version is displayed under the <code>General<\/code> tab.<\/p>\n<p>For those systems that use the Mac OS X (10.7.3 and above):<\/p>\n<ul class=\"wp-block-list\">\n<li>Click on Apple icon on upper left of screen.<\/li>\n<li>Go to&nbsp;<code>System Preferences<\/code><\/li>\n<li>Click on the Java icon to access the Java Control Panel.<\/li>\n<li>Click on <code>About\u2026<\/code> to view the information about the installed Java version.<\/li>\n<\/ul>\n<p>This was a tutorial on how to find the Java version in different operating systems.<\/p>\n<h2 class=\"wp-block-heading\" id=\"h-6-more-articles\">6. More articles<\/h2>\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/examples.javacodegeeks.com\/what-is-java-used-for\/\">What is Java used for<\/a><\/li>\n<li><a href=\"https:\/\/examples.javacodegeeks.com\/how-to-update-java-for-windows-10-macos-and-android\/\">How to update Java for Windows 10, macOS, and Android<\/a><\/li>\n<li><a href=\"https:\/\/examples.javacodegeeks.com\/download-and-install-java-development-kit-jdk-8\/\">Download and Install Java Development Kit (JDK) 8<\/a><\/li>\n<li><a href=\"https:\/\/examples.javacodegeeks.com\/download-and-install-java-development-kit-jdk-11\/\">Download and Install Java Development Kit (JDK) 11<\/a><\/li>\n<li><a href=\"https:\/\/examples.javacodegeeks.com\/download-and-install-java-development-kit-jdk-13\/\">Download and Install Java Development Kit (JDK) 13<\/a><\/li>\n<\/ul>\n<p><strong>Last updated on May 24th, 2021<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial we will show how to check the Java version in different operating systems, such as Windows, Linux and Macintosh. Depending on your operating system, there are a couple of methods, in order to find the installed Java version. There are methods that apply to all operating systems and methods that apply to &hellip;<\/p>\n","protected":false},"author":8,"featured_media":1204,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"class_list":["post-8029","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-java-basics"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Check Java version - Examples Java Code Geeks - 2026<\/title>\n<meta name=\"description\" content=\"In this tutorial we will show how to check the Java version in different operating systems, such as Windows, Linux and Macintosh. Depending on your\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/examples.javacodegeeks.com\/check-java-version-in-windows-linux-macos\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Check Java version - Examples Java Code Geeks - 2026\" \/>\n<meta property=\"og:description\" content=\"In this tutorial we will show how to check the Java version in different operating systems, such as Windows, Linux and Macintosh. Depending on your\" \/>\n<meta property=\"og:url\" content=\"https:\/\/examples.javacodegeeks.com\/check-java-version-in-windows-linux-macos\/\" \/>\n<meta property=\"og:site_name\" content=\"Examples Java Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/javacodegeeks\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/stathis.maneas\" \/>\n<meta property=\"article:published_time\" content=\"2014-01-07T14:00:19+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-05-24T10:03:41+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Sotirios-Efstathios Maneas\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:site\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Sotirios-Efstathios Maneas\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/check-java-version-in-windows-linux-macos\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/check-java-version-in-windows-linux-macos\/\"},\"author\":{\"name\":\"Sotirios-Efstathios Maneas\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/03673b064b32807176478bd144079be1\"},\"headline\":\"How to Check Java version in Windows, Linux, MacOS\",\"datePublished\":\"2014-01-07T14:00:19+00:00\",\"dateModified\":\"2021-05-24T10:03:41+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/check-java-version-in-windows-linux-macos\/\"},\"wordCount\":607,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/check-java-version-in-windows-linux-macos\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-logo.jpg\",\"articleSection\":[\"Java Basics\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/examples.javacodegeeks.com\/check-java-version-in-windows-linux-macos\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/check-java-version-in-windows-linux-macos\/\",\"url\":\"https:\/\/examples.javacodegeeks.com\/check-java-version-in-windows-linux-macos\/\",\"name\":\"How to Check Java version - Examples Java Code Geeks - 2026\",\"isPartOf\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/check-java-version-in-windows-linux-macos\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/check-java-version-in-windows-linux-macos\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-logo.jpg\",\"datePublished\":\"2014-01-07T14:00:19+00:00\",\"dateModified\":\"2021-05-24T10:03:41+00:00\",\"description\":\"In this tutorial we will show how to check the Java version in different operating systems, such as Windows, Linux and Macintosh. Depending on your\",\"breadcrumb\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/check-java-version-in-windows-linux-macos\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/examples.javacodegeeks.com\/check-java-version-in-windows-linux-macos\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/check-java-version-in-windows-linux-macos\/#primaryimage\",\"url\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-logo.jpg\",\"contentUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-logo.jpg\",\"width\":150,\"height\":150,\"caption\":\"Bipartite Graph\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/check-java-version-in-windows-linux-macos\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/examples.javacodegeeks.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Java Development\",\"item\":\"https:\/\/examples.javacodegeeks.com\/category\/java-development\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Java Basics\",\"item\":\"https:\/\/examples.javacodegeeks.com\/category\/java-development\/java-basics\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"How to Check Java version in Windows, Linux, MacOS\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#website\",\"url\":\"https:\/\/examples.javacodegeeks.com\/\",\"name\":\"Java Code Geeks\",\"description\":\"Java Examples and Code Snippets\",\"publisher\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/#organization\"},\"alternateName\":\"JCG\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/examples.javacodegeeks.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\/\/examples.javacodegeeks.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"contentUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/javacodegeeks\",\"https:\/\/x.com\/javacodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/03673b064b32807176478bd144079be1\",\"name\":\"Sotirios-Efstathios Maneas\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2013\/10\/Stathis-Maneas-96x96.jpg\",\"contentUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2013\/10\/Stathis-Maneas-96x96.jpg\",\"caption\":\"Sotirios-Efstathios Maneas\"},\"description\":\"Sotirios-Efstathios (Stathis) Maneas is a PhD student at the Department of Computer Science at the University of Toronto. His main interests include distributed systems, storage systems, file systems, and operating systems.\",\"sameAs\":[\"https:\/\/www.cs.utoronto.ca\/~smaneas\/\",\"https:\/\/www.facebook.com\/stathis.maneas\",\"https:\/\/linkedin.com\/in\/smaneas\"],\"url\":\"https:\/\/examples.javacodegeeks.com\/author\/stathis-maneas\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Check Java version - Examples Java Code Geeks - 2026","description":"In this tutorial we will show how to check the Java version in different operating systems, such as Windows, Linux and Macintosh. Depending on your","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/examples.javacodegeeks.com\/check-java-version-in-windows-linux-macos\/","og_locale":"en_US","og_type":"article","og_title":"How to Check Java version - Examples Java Code Geeks - 2026","og_description":"In this tutorial we will show how to check the Java version in different operating systems, such as Windows, Linux and Macintosh. Depending on your","og_url":"https:\/\/examples.javacodegeeks.com\/check-java-version-in-windows-linux-macos\/","og_site_name":"Examples Java Code Geeks","article_publisher":"https:\/\/www.facebook.com\/javacodegeeks","article_author":"https:\/\/www.facebook.com\/stathis.maneas","article_published_time":"2014-01-07T14:00:19+00:00","article_modified_time":"2021-05-24T10:03:41+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-logo.jpg","type":"image\/jpeg"}],"author":"Sotirios-Efstathios Maneas","twitter_card":"summary_large_image","twitter_creator":"@javacodegeeks","twitter_site":"@javacodegeeks","twitter_misc":{"Written by":"Sotirios-Efstathios Maneas","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/examples.javacodegeeks.com\/check-java-version-in-windows-linux-macos\/#article","isPartOf":{"@id":"https:\/\/examples.javacodegeeks.com\/check-java-version-in-windows-linux-macos\/"},"author":{"name":"Sotirios-Efstathios Maneas","@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/03673b064b32807176478bd144079be1"},"headline":"How to Check Java version in Windows, Linux, MacOS","datePublished":"2014-01-07T14:00:19+00:00","dateModified":"2021-05-24T10:03:41+00:00","mainEntityOfPage":{"@id":"https:\/\/examples.javacodegeeks.com\/check-java-version-in-windows-linux-macos\/"},"wordCount":607,"commentCount":0,"publisher":{"@id":"https:\/\/examples.javacodegeeks.com\/#organization"},"image":{"@id":"https:\/\/examples.javacodegeeks.com\/check-java-version-in-windows-linux-macos\/#primaryimage"},"thumbnailUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-logo.jpg","articleSection":["Java Basics"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/examples.javacodegeeks.com\/check-java-version-in-windows-linux-macos\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/examples.javacodegeeks.com\/check-java-version-in-windows-linux-macos\/","url":"https:\/\/examples.javacodegeeks.com\/check-java-version-in-windows-linux-macos\/","name":"How to Check Java version - Examples Java Code Geeks - 2026","isPartOf":{"@id":"https:\/\/examples.javacodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/examples.javacodegeeks.com\/check-java-version-in-windows-linux-macos\/#primaryimage"},"image":{"@id":"https:\/\/examples.javacodegeeks.com\/check-java-version-in-windows-linux-macos\/#primaryimage"},"thumbnailUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-logo.jpg","datePublished":"2014-01-07T14:00:19+00:00","dateModified":"2021-05-24T10:03:41+00:00","description":"In this tutorial we will show how to check the Java version in different operating systems, such as Windows, Linux and Macintosh. Depending on your","breadcrumb":{"@id":"https:\/\/examples.javacodegeeks.com\/check-java-version-in-windows-linux-macos\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/examples.javacodegeeks.com\/check-java-version-in-windows-linux-macos\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/examples.javacodegeeks.com\/check-java-version-in-windows-linux-macos\/#primaryimage","url":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-logo.jpg","contentUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-logo.jpg","width":150,"height":150,"caption":"Bipartite Graph"},{"@type":"BreadcrumbList","@id":"https:\/\/examples.javacodegeeks.com\/check-java-version-in-windows-linux-macos\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/examples.javacodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"Java Development","item":"https:\/\/examples.javacodegeeks.com\/category\/java-development\/"},{"@type":"ListItem","position":3,"name":"Java Basics","item":"https:\/\/examples.javacodegeeks.com\/category\/java-development\/java-basics\/"},{"@type":"ListItem","position":4,"name":"How to Check Java version in Windows, Linux, MacOS"}]},{"@type":"WebSite","@id":"https:\/\/examples.javacodegeeks.com\/#website","url":"https:\/\/examples.javacodegeeks.com\/","name":"Java Code Geeks","description":"Java Examples and Code Snippets","publisher":{"@id":"https:\/\/examples.javacodegeeks.com\/#organization"},"alternateName":"JCG","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/examples.javacodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/examples.javacodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/examples.javacodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/javacodegeeks","https:\/\/x.com\/javacodegeeks"]},{"@type":"Person","@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/03673b064b32807176478bd144079be1","name":"Sotirios-Efstathios Maneas","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/image\/","url":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2013\/10\/Stathis-Maneas-96x96.jpg","contentUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2013\/10\/Stathis-Maneas-96x96.jpg","caption":"Sotirios-Efstathios Maneas"},"description":"Sotirios-Efstathios (Stathis) Maneas is a PhD student at the Department of Computer Science at the University of Toronto. His main interests include distributed systems, storage systems, file systems, and operating systems.","sameAs":["https:\/\/www.cs.utoronto.ca\/~smaneas\/","https:\/\/www.facebook.com\/stathis.maneas","https:\/\/linkedin.com\/in\/smaneas"],"url":"https:\/\/examples.javacodegeeks.com\/author\/stathis-maneas\/"}]}},"_links":{"self":[{"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/8029","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/comments?post=8029"}],"version-history":[{"count":0,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/8029\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/media\/1204"}],"wp:attachment":[{"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/media?parent=8029"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/categories?post=8029"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/tags?post=8029"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}