{"id":177,"date":"2014-05-09T15:39:46","date_gmt":"2014-05-09T13:39:46","guid":{"rendered":"http:\/\/www.descher.at\/descher-vu\/?p=177"},"modified":"2014-05-09T15:41:50","modified_gmt":"2014-05-09T13:41:50","slug":"setting-java-for-eclipse-on-os-x","status":"publish","type":"post","link":"http:\/\/www.descher.at\/descher-vu\/2014\/05\/setting-java-for-eclipse-on-os-x\/","title":{"rendered":"Setting Java for Eclipse on OS X &#8230;"},"content":{"rendered":"<p>It already bothered me for some time, that one constantly seems to have Eclipse running with the wrong Java version. That is, if you&#8217;re doing heavy development you might have Java 6, 7 and 8 installed on your machine.<\/p>\n<p>In order to switch the main JVM Eclipse will run with you have to follow these <a href=\"https:\/\/wiki.eclipse.org\/Eclipse.ini\">instructions<\/a>, which involves manually changing the <em>.ini<\/em> file each time you want to change the version. This is quite cumbersome, so I decided to learn some <a href=\"http:\/\/en.wikipedia.org\/wiki\/Automator_%28software%29\">Apple Automator<\/a>.<\/p>\n<p>After some insatisfying approaches to generate a service, I generated an <a href=\"https:\/\/dl.dropboxusercontent.com\/u\/72943400\/EclipseJavaVersionSetter.app.zip\"><strong>application<\/strong><\/a> that works as follows:<\/p>\n<ol>\n<li>Drag an OS X Eclipse.app onto it<\/li>\n<li>The application browses all JDK installations in \/Library\/Java\/JavaVirtualMachines and prompts you to select one, which it will then configure within the resp. ini file<\/li>\n<\/ol>\n<p>\nThe app is completely realized in Automator, with some perl, I had to zip it to distribute it over Dropbox. It is in a very early stage &#8230; feedback always welcome \ud83d\ude42 Here goes a short <a href=\"ttps:\/\/dl.dropboxusercontent.com\/u\/72943400\/demoJavaSwitcher.swf\">demo video<\/a>:<\/p>\n<div id=\"efe-swf-1\" class=\"efe-flash\"><!-- --><\/div>\n","protected":false},"excerpt":{"rendered":"<p>It already bothered me for some time, that one constantly seems to have Eclipse running with the wrong Java version. That is, if you&#8217;re doing heavy development you might have Java 6, 7 and 8 installed on your machine. In order to switch the main JVM Eclipse will run with you have to follow these &hellip; <a href=\"http:\/\/www.descher.at\/descher-vu\/2014\/05\/setting-java-for-eclipse-on-os-x\/\" class=\"more-link\"><span class=\"screen-reader-text\">Setting Java for Eclipse on OS X &#8230;<\/span> weiterlesen <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"_links":{"self":[{"href":"http:\/\/www.descher.at\/descher-vu\/wp-json\/wp\/v2\/posts\/177"}],"collection":[{"href":"http:\/\/www.descher.at\/descher-vu\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.descher.at\/descher-vu\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.descher.at\/descher-vu\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.descher.at\/descher-vu\/wp-json\/wp\/v2\/comments?post=177"}],"version-history":[{"count":17,"href":"http:\/\/www.descher.at\/descher-vu\/wp-json\/wp\/v2\/posts\/177\/revisions"}],"predecessor-version":[{"id":195,"href":"http:\/\/www.descher.at\/descher-vu\/wp-json\/wp\/v2\/posts\/177\/revisions\/195"}],"wp:attachment":[{"href":"http:\/\/www.descher.at\/descher-vu\/wp-json\/wp\/v2\/media?parent=177"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.descher.at\/descher-vu\/wp-json\/wp\/v2\/categories?post=177"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.descher.at\/descher-vu\/wp-json\/wp\/v2\/tags?post=177"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}