Java Ant Could not find the main class: org.eclipse.ant.internal.launching.remote.InternalAntRunner. Program

时间:2023-03-09 02:06:02
Java Ant  Could not find the main class: org.eclipse.ant.internal.launching.remote.InternalAntRunner. Program
参考:http://blog.****.net/jiangtaoking/article/details/49151763

The solution is to go to Run as → External tools configuration… → JRE where the default was set to “Separate JDK”: jdk1.6.0_31 (I had set up JDKs 6-8 in Preferences after installing). I changed this to “run in the same JRE as the workspace” and now it works.