简体   繁体   中英

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.

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.

The web app runs, but I just don't get why Eclipse is doing this.

Oh and yes, I've done as Eclipse suggests and refreshed and rebuilt (cleaned) the project, still no joy.

Problem is not with the eclipse, but with your package declaration. Your package names should be in lowercase only.

From Javadocs

Package names are written in all lower case to avoid conflict with the names of classes or interfaces.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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