简体   繁体   English

Eclipse Juno更改了我的一个Java包的大小写并导致错误

[英]Eclipse Juno changing the case of one of my java packages and causing an error

Getting a funny outcome which I've never seen before in Eclispe Juno. 得到一个有趣的结果,这是我在Eclispe Juno中从未见过的。

Problems: 问题:

Errors (1 item)
The project was not built due to "A resource exists with a different case: '/rev_4677/bin/com/utils/anttasks'.". Fix the problem, then try refreshing this project and building it since it may be inconsistent.
Type: Java Problem

In my project the resource (package) is 'com.utils.antTasks' but under the build path it's changed to WEB-INF/com/utils/anttasks. 在我的项目中,资源(程序包)为“ com.utils.antTasks”,但在构建路径下将其更改为WEB-INF / com / utils / anttasks。

The web app runs, but I just don't get why Eclipse is doing this. Web应用程序可以运行,但是我不明白为什么Eclipse会这样做。

Oh and yes, I've done as Eclipse suggests and refreshed and rebuilt (cleaned) the project, still no joy. 哦,是的,我已经按照Eclipse的建议完成了工作,刷新并重建(清理)了项目,但仍然没有喜悦。

Problem is not with the eclipse, but with your package declaration. 问题不在于日食,而在于您的包裹声明。 Your package names should be in lowercase only. 您的软件包名称只能是小写字母。

From Javadocs 从Javadocs

Package names are written in all lower case to avoid conflict with the names of classes or interfaces. 包名称以小写形式编写,以避免与类或接口的名称冲突。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM