{"id":5308,"date":"2014-03-30T20:35:39","date_gmt":"2014-03-30T20:35:39","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/how-to-export-all-installed-versions-of-java-to-a-text-file-under-windows-xp-collection-of-common-programming-errors\/"},"modified":"2014-03-30T20:35:39","modified_gmt":"2014-03-30T20:35:39","slug":"how-to-export-all-installed-versions-of-java-to-a-text-file-under-windows-xp-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/how-to-export-all-installed-versions-of-java-to-a-text-file-under-windows-xp-collection-of-common-programming-errors\/","title":{"rendered":"How to export all installed versions of Java to a text file under Windows XP-Collection of common programming errors"},"content":{"rendered":"<p>Assuming your runtimes are all in the same folder, You can grab the &#8220;JAVA_HOME&#8221; environment variable then just print a list of the folders in the parent directory of wherever it points.<\/p>\n<p>However individual applications can bundle their own runtimes, which can be anywhere pretty much.<\/p>\n<p>Since you reference -version though, I assume you are using it from the command line so pulling in JAVA_HOME and looking around there seems like a good place to start.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Assuming your runtimes are all in the same folder, You can grab the &#8220;JAVA_HOME&#8221; environment variable then just print a list of the folders in the parent directory of wherever it points. However individual applications can bundle their own runtimes, which can be anywhere pretty much. Since you reference -version though, I assume you are [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5308","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5308","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=5308"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5308\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5308"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5308"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5308"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}