Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » The declared package does not match the expected package
The declared package does not match the expected package [message #212145] Tue, 16 March 2004 18:02 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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

Previous Topic:Debugging servlet in eclipse
Next Topic:Showing a view twice in same window
Goto Forum:
  


Current Time: Sun Jun 08 07:17:14 EDT 2025

Powered by FUDForum. Page generated in 0.08979 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top