{"id":3962,"date":"2021-03-24T15:10:46","date_gmt":"2021-03-24T20:10:46","guid":{"rendered":"http:\/\/www.incredigeek.com\/home\/?p=3962"},"modified":"2021-03-24T15:11:32","modified_gmt":"2021-03-24T20:11:32","slug":"error-could-not-create-the-java-virtual-machine","status":"publish","type":"post","link":"https:\/\/www.incredigeek.com\/home\/error-could-not-create-the-java-virtual-machine\/","title":{"rendered":"Error: Could not create the Java Virtual Machine"},"content":{"rendered":"\n<p>Apparently on some versions of Java checking the Java version will give you the following error.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">root@local:~# java -v\nUnrecognized option: -v\nError: Could not create the Java Virtual Machine.\nError: A fatal exception has occurred. Program will exit.\nroot@local:~#<\/pre>\n\n\n\n<p>The issue being the -v or &#8211;version options are not recognized.  On newer versions of Java it is recognized.<\/p>\n\n\n\n<p>The proper way to do it is -version with only one dash<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">root@local:~# java -version<br>openjdk version \"1.8.0_252\"<br>OpenJDK Runtime Environment (build 1.8.0_252-8u252-b09-1ubuntu1-b09)<br>OpenJDK 64-Bit Server VM (build 25.252-b09, mixed mode)<br>root@local:~#<\/pre>\n\n\n\n<p><a href=\"https:\/\/askubuntu.com\/questions\/324858\/installed-jdk-by-and-have-error-could-not-create-the-java-virtual-machine\">https:\/\/askubuntu.com\/questions\/324858\/installed-jdk-by-and-have-error-could-not-create-the-java-virtual-machine<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Apparently on some versions of Java checking the Java version will give you the following error. root@local:~# java -v Unrecognized option: -v Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. root@local:~# &hellip; <a href=\"https:\/\/www.incredigeek.com\/home\/error-could-not-create-the-java-virtual-machine\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[1051,7,49,762],"class_list":["post-3962","post","type-post","status-publish","format-standard","hentry","category-linux","tag-java","tag-linux-2","tag-ubuntu-2","tag-version"],"_links":{"self":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/3962","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/comments?post=3962"}],"version-history":[{"count":2,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/3962\/revisions"}],"predecessor-version":[{"id":3965,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/3962\/revisions\/3965"}],"wp:attachment":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/media?parent=3962"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/categories?post=3962"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/tags?post=3962"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}