{"id":3206,"date":"2014-03-20T02:40:52","date_gmt":"2014-03-20T02:40:52","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/20\/when-i-am-running-gradle-project-via-eclipse-i-got-some-exception-collection-of-common-programming-errors\/"},"modified":"2014-03-20T02:40:52","modified_gmt":"2014-03-20T02:40:52","slug":"when-i-am-running-gradle-project-via-eclipse-i-got-some-exception-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/20\/when-i-am-running-gradle-project-via-eclipse-i-got-some-exception-collection-of-common-programming-errors\/","title":{"rendered":"when i am running gradle project via eclipse i got some exception-Collection of common programming errors"},"content":{"rendered":"<p>Although you may have a full JDK installed somewhere, and pointed to by JAVA_HOME, I don&#8217;t think the Eclipse Gradle plugin will use it by default. I ran into the same problem running the the &#8220;test&#8221; target for the Gradle &#8220;quickstart&#8221; app in Springsource Groovy\/Grails Tool Suite 3.3.0(Gradle IDE 3.3.0.201307040643 plugin).<\/p>\n<p>If you re-run the failed Gradle target from the &#8220;External Tools&#8221; menu (under the &#8220;arrow with a suitcase icon&#8221;), adding &#8220;&#8211;debug&#8221; in the &#8220;Program Args&#8221; under the Arguments tab, it will show you in the console what JVM\/JDK it uses. I was able to get around the problem by deselecting &#8220;Use Gradle wrapper&#8217;s default&#8221; in the Java Home section of the Arguments tab, and replacing it with an Execution Environment setting that pointed to my 1.7 JDK that I had installed. I&#8217;m sure there&#8217;s a way to have it do this by default, so you don&#8217;t have to configure each targets run configuration, but this method should fix the immediate problem.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Although you may have a full JDK installed somewhere, and pointed to by JAVA_HOME, I don&#8217;t think the Eclipse Gradle plugin will use it by default. I ran into the same problem running the the &#8220;test&#8221; target for the Gradle &#8220;quickstart&#8221; app in Springsource Groovy\/Grails Tool Suite 3.3.0(Gradle IDE 3.3.0.201307040643 plugin). If you re-run the [&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-3206","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3206","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=3206"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3206\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=3206"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=3206"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=3206"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}