原文地址:http://blog.csdn.net/jiangtaoking/article/details/49151763 Could not find the main class: org.eclipse.ant.internal.launching.remote.InternalAntRunner. 最近更新了eclipse,发现运行ant不好使来了,报的异常如标题所示.然后各种百度,尼玛!我只想说百度上写这些bug文档的人,能不能别乱写啊,艹.按照上面所说各种尝试,都不行.没办法,还
changed the ANT_HOME in the Windows>Preferences>Ant>Runtime>Classpath>Ant Home>浏览文件夹>Apply>OK 在 Run As>External Tools Configurations>Environment>Select>select 'ANT_HOME'>OK>Editor 是没用的,这个值就是自定义了每次都会被重写掉.
导入Ant项目有以下方式: 1.[File]->[Project]->[Java Project from Existing Ant Buildfile] 选择build.xml文件即可,如果出现:Specified buildfile does not contain a javac task,那么就不能使用这种方式导入,需要使用第2种方式. 2.[File]->[Project]->[Java Project],也就是新建一个Java项目. 新建好之后,把全部文件拖入到项目,包
按网上的操作,实现一下. build.xml: <?xml version="1.0" ?> <project name ="antwebproject" default ="war" basedir ="."> <property name ="classes" value ="build/classes"/> <property name =