Could not find the main class. Program will exit.
2015-01-07 16:03
435 查看
用新搭建的eclipse IDE开发环境打开之前的eclipse工作空间之后,执行ant脚本报错:"Could not find the main class. Program will exit"。G了下资料,发现有人说,可能是更换环境之后,当前ant_home的目录依然指向之前eclipse plugins的ant,于是按照说明将Window->Preferences->Ant->Runtime中的ant_home置为当前eclispe plugins中的ant目录。但是依然没能解决问题。想了下,可能当前eclipse的某些配置确实受之前的影响,而这个唯一的影响点就是工作空间下的metadata,于是我将工作空间下的metadata删除,然后将之前的项目依次导入,执行ant脚本发现问题解决。
相关文章推荐
- myeclipse启动tomcat 出现could not find the main class Program will exit
- could not find the main class : program will exit
- could not find the main class .program will exit的解决方案
- Could not find the main class. Program will exit
- 错误处理:could not find the main class, Program will exit
- Java中Could not find the main class.program will exit和java.lang.UnsupportedClassVersionError 的解决方法 .
- (报错)could not find the main class, Program will exit(已解决)
- Java中Could not find the main class.program will exit和java.lang.UnsupportedClassVersionError 的解决方法 .
- 安装java的时候出现Could not find the main class.program will exit
- could not find the main class, Program will exit(已解决)
- Java中Could not find the main class.program will exit和java.lang.UnsupportedClassVersionError 的解决方法
- Could not find the main class.program will exit和java.lang.UnsupportedClassVersionError 错误的解决办法
- Eclipse 出错:Could not find the main class. Program will exit
- could not find the main class, Program will exit(已解决)
- javaw和* Could not find the main class. Program will exit!
- [Eclipse] Could not find the main class. Program will exit
- Java中Could not find the main class.program will exit和java.lang.UnsupportedClassVersionError 的解决方法
- java程序运行时出现问题:Could not find the main class: test_jena. Program will exit.
- Could not find the main class. Program will exit...
- could not find the main class. Program will exit.