码迷,mamicode.com
首页 > 系统相关 > 详细

Eclipse中执行Ant脚本出现Could not find the main class的问题及解

时间:2018-05-02 11:10:26      阅读:1962      评论:0      收藏:0      [点我收藏+]

标签:项目   not   ext   启动   执行   联想   net   run   图片   

试过了:https://blog.csdn.net/bookroader/article/details/2300337

但是不管用,偶然看到这篇没有直接关系的

https://blog.csdn.net/jiuyueguang/article/details/9350753

 

联想了一下。项目是JDK1.5,Eclipse是JDK1.8启动,所以在Run as->Ant build之前,先Run as->External Tools Configurations,找到之前报错的Ant Build,然后按如下图片,选择Eclipse的JDK启动而不是项目的JDK。

技术分享图片

 

Eclipse中执行Ant脚本出现Could not find the main class的问题及解

标签:项目   not   ext   启动   执行   联想   net   run   图片   

原文地址:https://www.cnblogs.com/wang-ze/p/8978909.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!