Could not find the main class: org.eclipse.ant.internal.launching.remote.InternalAntRunner. Program
2016-06-08 11:16
549 查看
Could not find the main class: org.eclipse.ant.internal.launching.remote.InternalAntRunner. 最近更新了eclipse,发现运行ant不好使来了,报的异常如标题所示。然后各种百度,尼玛!我只想说百度上写这些bug文档的人,能不能别乱写啊,艹。按照上面所说各种尝试,都不行。没办法,还是去Google吧。
I just installed Mars and when I tried to execute a build.xml after checking out an existing and working project I got that error message: Could not find the main class: org.eclipse.ant.internal.launching.remote.InternalAntRunner. Program will exit. 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. <p>Bug fix would be to provide a working default configuration with setup. Configuration should be in a way it does not break if the user adds additional JDKs to Preferences.</p><p>原文地址:https://bugs.eclipse.org/bugs/show_bug.cgi?id=472599。噢啦,问题搞定!</p>
相关文章推荐
- JAVA Calendar详解
- java8 NIO FileChannel例
- Java中Properties类的使用
- Eclipse启动参数解决占用CPU 100%,必须“立即结束”的问题
- [javaSE] 进制转换(二进制十进制十六进制八进制)
- JAVA lombok
- jdk
- axis根据wsdl生成java客户端代码
- java.util.Date和java.sql.Date的区别和相互转化
- JD-Eclipse 安装
- 在springMVC中配置<mvc>标签,运行时报错 无法找到MVC元素
- Java并发编程总结2——慎用CAS
- java URL实现调用其他系统发送报文并获取返回数据
- java.lang.IllegalStateException: Fragment already added异常的处理
- xml在Web中的作用
- java动态代理
- java学习、java教程:Java基础常见英语词汇(共70个)
- struts1 获取前台 select多选的值
- Java中使用Observer接口和Observable类实践Observer观察者模式
- eclipse中 将java项目转换为web项目