Could not find the main class. Program will exit
2006-08-10 15:32
513 查看
“Could not find the main class. Program will exit.”
February 20, 2006 at 1:28 pm · Filed under GeneralI just installed the latest available Eclipse version (3.2 milestone 5) and couldn’t run my ANT builds anymore. The error I got in the alert box was “Could not find the main class. Program will exit”.
The problem was that the ANT_HOME variable was still pointing to the previous Eclipse folder and the solution was simply to change the path. This can be done through Window->Preferences->Ant->Runtime. Once there, click the “Ant home…” button in the “Classpath” tab and browse to the ANT plugin folder in your Eclipse installation. Now hit the OK button and try to run the build file again. Everything should work again.
Oh and by the way, I had a really good laugh with the “Run Garbage Collector” button
http://www.herrodius.com/blog/?p=42
相关文章推荐
- @(报错)could not find the main class, Program will exit(已解决)
- could not find the main class, Program will exit(已解决)
- MyEclipse导入项目错误:Could not find the main class.Program will exit.
- could not find the main class. program will exit问题的解决方法
- Could not find the main class: org.elasticsearch.bootstrap.Elasticsearch. Program will exit.
- 解决运行java application时提示Could not find the main class.Program will exit.问题
- Could not find the main class: org.apache.catalina.startup.Boostrap. Program will exit
- Java中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
- [Eclipse] Could not find the main class. Program will exit
- 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: test_jena. 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 exitmain
- java调用本地方法的时候报错 could not find the main class:xx.program will exit
- "Could not find the main class: org.apache.catalina.startup.Boostrap. Program will exit."