Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Importing defaults to src.com
Importing defaults to src.com [message #242687] Mon, 10 December 2007 19:26 Go to next message
Eclipse UserFriend
Originally posted by: bstone.doubleclick.com

Hello,

When using eclipse and trying to import a class by setting my cursor on
the class and typing "ctrl-shift-m", the import appears at the top of the
class as "src.com.project.test", instead of simply "com.project.test".

Does anyone know why this is happening and how i can prevent it?

Thanks.
Re: Importing defaults to src.com [message #242742 is a reply to message #242687] Tue, 11 December 2007 03:46 Go to previous message
Eclipse UserFriend
Originally posted by: wegener.cboenospam.com

Brett wrote:
> Hello,
>
> When using eclipse and trying to import a class by setting my cursor on
> the class and typing "ctrl-shift-m", the import appears at the top of
> the class as "src.com.project.test", instead of simply "com.project.test".
>
> Does anyone know why this is happening and how i can prevent it?
>
> Thanks.
>
It sounds like you don't have your source folder setup properly. On the
Java Build Path, the src directory should be defined as a source
directory. That places the com directory in the root and your packaging
should work correctly.

You may need to check the classes that you are importing. Their package
statement may have src as the start of the package statement.
Previous Topic:Project import failure
Next Topic:tag library descriptor?
Goto Forum:
  


Current Time: Sat Oct 19 10:35:39 GMT 2024

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

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

Back to the top