The declared package does not match the expected package [message #212145] |
Tue, 16 March 2004 18:02  |
Eclipse User |
|
|
|
Originally posted by: william.messagefolder.com
I started using eclipse as Java development tool, but running into some
problem when I try to compile existing package.
My enviorment is Window 2000, JDK 1.4.2, eclipse 3.0
Try to compile package foo, always get 'The declared package does not
match the expected package'.
The directory structure is like this:
Project bar:
/html
/jsp
/Web-inf/classes/foo/*.java
When I use other Java tool like SunOne, this package was compile fine.
Please advise,
William
|
|
|
Re: The declared package does not match the expected package [message #212153 is a reply to message #212145] |
Tue, 16 March 2004 18:10  |
Eclipse User |
|
|
|
Originally posted by: richkulp.NO.SPAM.us.ibm.com
You need to open the project's properties and go to java build path, and
change it to use "/Web-inf/classes" as your source folder. The
default is using project root, so it would expect java files in the foo
directory to be in package Web-inf.classes.foo instead of just foo.
--
Thanks, Rich Kulp
|
|
|
Powered by
FUDForum. Page generated in 0.08979 seconds