Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » request: better message
request: better message [message #290618] Sat, 27 August 2005 20:53 Go to next message
Dave Dyer is currently offline Dave DyerFriend
Messages: 8
Registered: July 2009
Junior Member
"package does not match the expected package"

Please tell me what package was expected!

And no, it's not obvious. In the current case, I have a
file in a folder named "test" with a package declaration
of "test" and I'm mystified.
Re: request: better message [message #290653 is a reply to message #290618] Mon, 29 August 2005 12:47 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Dave Dyer wrote:
> "package does not match the expected package"
>
> Please tell me what package was expected!
>
> And no, it's not obvious. In the current case, I have a
> file in a folder named "test" with a package declaration
> of "test" and I'm mystified.

Do you have project/src_folder/test/Obj.java or project/test/Obj.java?
The first one works, the second probably not.

The error I see is "The declared package does not match the expected
package test"

Later,
PW


Re: request: better message [message #290673 is a reply to message #290618] Mon, 29 August 2005 17:02 Go to previous message
Eclipse UserFriend
Originally posted by: eclipse3.rizzoweb.com

Dave Dyer wrote:
> "package does not match the expected package"
>
> Please tell me what package was expected!
>
> And no, it's not obvious. In the current case, I have a
> file in a folder named "test" with a package declaration
> of "test" and I'm mystified.

It should be telling you what the expected package is - it does for me.
If your folder is named test and the code declares test as its package,
then you would need to have the parent of folder "test" be a Source
Location on the project's Java Build Path. Generally, projects should
have a source or src directory and that is where source packages are rooted.

HTH,
Eric
Previous Topic:Extending the Package Explorer View
Next Topic:How do I run plug-in tests from Ant?
Goto Forum:
  


Current Time: Thu Sep 19 19:53:43 GMT 2024

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

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

Back to the top