Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » package and imported classes not identified
package and imported classes not identified [message #711145] Fri, 05 August 2011 20:30 Go to next message
coolnfunky_raj is currently offline coolnfunky_rajFriend
Messages: 2
Registered: August 2011
Junior Member
Hello

I am using Eclipse Helios. I have a project checked out from SVN. I use Ant to build jars and dists. Since yesterday, whenever I build, the class files are being put in a folder called build-test instead of the regular build folder. I was looking into Project->Preferences to see if I can fix it. Since this morning, the package is not identified and all the imported classes are also not identified. These are the errors I am seeing -
The declared package "x.y.z" does not match the expected package "src.x.y.z"
The import java.io cannot be resolved

These occur for all files in the project and for all imported classes. I don't know what settings I changed, how do I fix these issues? Any suggestions?

Thanks a bunch

[Updated on: Fri, 05 August 2011 20:31]

Report message to a moderator

Re: package and imported classes not identified [message #711160 is a reply to message #711145] Fri, 05 August 2011 20:51 Go to previous messageGo to next message
coolnfunky_raj is currently offline coolnfunky_rajFriend
Messages: 2
Registered: August 2011
Junior Member
I also just noticed that all the folders in the project are being treated as packages.. meaning, the folder icon is replaced with an icon that looks like a package (and is white in color) and the folder structure is showed like a package. E.g - the path data/a/b is showed as data.a.b.*files* in the package explorer.
Re: package and imported classes not identified [message #714139 is a reply to message #711160] Tue, 09 August 2011 21:39 Go to previous message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3070
Registered: July 2009
Senior Member
On 8/5/11 4:51 PM, coolnfunky_raj wrote:
> I also just noticed that all the folders in the project are being
> treated as packages.. meaning, the folder icon is replaced with an icon
> that looks like a package (and is white in color) and the folder
> structure is showed like a package. E.g - the path data/a/b is showed as
> data.a.b.*files* in the package explorer.

It sounds like you set the project root as the source folder. Open the
project properties, select Java Build Path section, and the Source tab.
See what is listed as the source folder for your project. It should be
the src folder, not the project's root.

Eric
Previous Topic:Eclipse 3.6.x + Ubuntu equals 100% CPU?
Next Topic:What download for NDK debug on android
Goto Forum:
  


Current Time: Tue Sep 24 14:16:48 GMT 2024

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

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

Back to the top