eclipse不编译的原因

eclipse不编译的原因_第1张图片Eclipse不编译解决1. 确保 project->build automatically 已经被选上.

Eclipse不编译解决2. 如果选上了,也不好使, 使用这一招: project->clean…->选第2个clean select project, 勾上start build immediatelly

Eclipse不编译解决3.删除现在的项目,提前设置好编译文件输出路径,重新导入源文件,设置Eclipse为保存时编译,然后在保存的时候就可以自动编译了

Eclipse不编译解决4.如果项目里引了某个不用的jar包,而那个包又被你删了,就会出现不报错但怎么也编译不出来class文件的情况,可以把所有包都删除,然后一个一个的再引入(需要的),不要一下子把所有包都引入来,没用的可能会引起不良后果.

Eclipse不编译解决5. 想删掉某个class文件重新生成,删除class文件后,但classes目录下的文件夹被其它程序打开,比如Total Commander。此时编译也不会通过,在problems下可能会提示“con’'t delete classes ……”。关掉其它程序重新编译即可。

Eclipse不编译解决6.还有种情况是remove掉 JRE System Library,重新导入即可编译。但是什么原因导致的还不清楚。

Eclipse不编译解决7.把build path中所有包都remove掉。然后又add jars,add libraries把需要的加进去,居然又开始编译了。。。

Eclipse不编译解决8.project->properties->java build path->source->…/WEB-INF/src的output folder不要默认,编辑让它指向…/WEB-INF/classes

然后重新点击build工程即可自动编译。我的问题出在这里,我把这个编译目录给误删了

Eclipse不编译解决9.再就是最重要的要看工程下面是否缺少了work目录,由于CVS控制时不把work加如版本,所以checkout后没有这个目录,要手工加上有的工程就能自动编译了

最开始的时候,我只找到了前面7个方法,但是他们都没有解决我的问题.无意中我打开了"Problems"标签,发现里面说缺少work目录,手工加上,然后刷新项目就可以了.

最后两个是我在写这个总结的时候发现的.特别是第九条,对使用CVS进行版本控制的项目比较有用.

U2FsdGVkX196AS/o10zQRjPPgU6muzX0X6V7KKBJ0+/egZXbTef4rYDJ1+MrJhIZ
5gVekqLlDTEW8jL6809NzO9pnNLhHpds+kxQ+hoQzVPg8+RVt6R35WxyfSkAKwhu
NXpCGhKs5uMTPaxOay+7bXiw1HDcibu/afSO/LgvPD7AP7f5NP1Mx4MYNIbzt/8F
5qo2civw0F0zT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