Eclipse中,Ant编译提示:Could not find the main class.Program will exit.

解决方法:

右键build.xml --> Run As --> External Tools Configurations

Eclipse中,Ant编译提示:Could not find the main class.Program will exit.

选择JRE页面,然后选中Run in the same JRE as the workspace,Apply下,然后Run,应该就可以了

Eclipse中,Ant编译提示:Could not find the main class.Program will exit.