Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse considers "src" to be a part of the package name after importing existing project

Tags:

java

eclipse

I have imported an Eclipse (Mars) project on another Computer with the latest version of Eclipse. Now Eclipse considers the /src/ folder as a part of the package name. E.g. src.org.domain.subdomain instead of org.domain.subdomain.

The package names in the project view

I can rename the package, removing src but then Eclipse will actually move the folder to the root folder, but I want the source to stay in src.

Is there a way to fix this? How does Eclipse determine what the root folder of the source is, is it possible to set this manually? Has this behavior changed from Mars to the latest version?

like image 919
Ole Avatar asked Oct 12 '25 16:10

Ole


1 Answers

Thanks to daniu's comment I could resolve my issue, I'll quote it:

Select Project->Properties->Build Path, remove the existing source folders, select the folder "src".

Thanks!

like image 96
Ole Avatar answered Oct 14 '25 08:10

Ole