{"id":4798,"date":"2014-03-30T15:31:10","date_gmt":"2014-03-30T15:31:10","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/ant-not-working-in-eclipse-kepler-java-virtual-machine-launcher-a-java-exception-has-occured-collection-of-common-programming-errors\/"},"modified":"2014-03-30T15:31:10","modified_gmt":"2014-03-30T15:31:10","slug":"ant-not-working-in-eclipse-kepler-java-virtual-machine-launcher-a-java-exception-has-occured-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/ant-not-working-in-eclipse-kepler-java-virtual-machine-launcher-a-java-exception-has-occured-collection-of-common-programming-errors\/","title":{"rendered":"Ant not working in Eclipse Kepler (Java Virtual Machine Launcher &#8211; A Java Exception has occured)-Collection of common programming errors"},"content":{"rendered":"<p>I recently upgraded to Eclipse Kepler, and am having issues with Ant. I am getting the Java Virtual Machine Launcher &#8211; A Java Exception has occurred error no matter which target I choose in my build files.<\/p>\n<p>I tried reinstalling my JDK, and I still get the error. I am running the 7u25 version of the JDK. I have my JAVA_HOME environment variable set to <code>C:\\Progra~1\\Java\\jdk1.7.0_25<\/code>, so I don&#8217;t think this is the problem. What else could be causing the problem?<\/p>\n<p>EDIT: I also tested ant in the command line and it works just fine. Is this a bug in Kepler?<\/p>\n<p>EDIT 2: Here is the log of the errors:<\/p>\n<pre><code>org.eclipse.core.runtime.CoreException: Could not find one or more classes: \"org.apache.tools.ant.BuildLogger\". Please check the Ant classpath.\nat org.eclipse.ant.core.AntRunner.problemLoadingClass(AntRunner.java:467)\nat org.eclipse.ant.core.AntRunner.run(AntRunner.java:380)\nat org.eclipse.ant.internal.launching.launchConfigurations.AntLaunchDelegate.runInSameVM(AntLaunchDelegate.java:307)\nat org.eclipse.ant.internal.launching.launchConfigurations.AntLaunchDelegate.launch(AntLaunchDelegate.java:260)\nat org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:858)\nat org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:707)\nat org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:700)\nat org.eclipse.core.externaltools.internal.model.ExternalToolBuilder.launchBuild(ExternalToolBuilder.java:181)\nat org.eclipse.core.externaltools.internal.model.ExternalToolBuilder.doBuildBasedOnScope(ExternalToolBuilder.java:169)\nat org.eclipse.core.externaltools.internal.model.ExternalToolBuilder.build(ExternalToolBuilder.java:88)\nat org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:726)\nat org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)\nat org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)\nat org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239)\nat org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)\nat org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)\nat org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)\nat org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)\nat org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)\nat org.eclipse.core.internal.resources.Workspace.buildInternal(Workspace.java:514)\nat org.eclipse.core.internal.resources.Workspace.build(Workspace.java:423)\nat org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:830)\nat org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:707)\nat org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1018)\nat org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1222)\nat org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)\n\nCaused by: java.lang.NoClassDefFoundError: org\/apache\/tools\/ant\/BuildLogger\nat java.lang.Class.getDeclaredConstructors0(Native Method)\nat java.lang.Class.privateGetDeclaredConstructors(Unknown Source)\nat java.lang.Class.getConstructor0(Unknown Source)\nat java.lang.Class.newInstance(Unknown Source)\nat org.eclipse.ant.core.AntRunner.run(AntRunner.java:324)\n... 24 more\n\nCaused by: java.lang.ClassNotFoundException: org.apache.tools.ant.BuildLogger\nat java.net.URLClassLoader$1.run(Unknown Source)\nat java.net.URLClassLoader$1.run(Unknown Source)\nat java.security.AccessController.doPrivileged(Native Method)\nat java.net.URLClassLoader.findClass(Unknown Source)\nat org.eclipse.ant.internal.core.AntClassLoader.findClass(AntClassLoader.java:54)\nat java.lang.ClassLoader.loadClass(Unknown Source)\nat java.lang.ClassLoader.loadClass(Unknown Source)\n... 29 more\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I recently upgraded to Eclipse Kepler, and am having issues with Ant. I am getting the Java Virtual Machine Launcher &#8211; A Java Exception has occurred error no matter which target I choose in my build files. I tried reinstalling my JDK, and I still get the error. I am running the 7u25 version of [&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-4798","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4798","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=4798"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4798\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=4798"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=4798"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=4798"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}