Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between "New Folder", "New Source Folder" and "New Package"?

Tags:

eclipse

When you right-click on a project in eclipse, what is the difference between "New Folder", "New Source Folder" and "New Package"? They all seem to do the same thing and the reference does not say much.

Thanks

like image 290
user1796942 Avatar asked Dec 01 '25 02:12

user1796942


1 Answers

New folder creates a new folder inside a project.

New source folder creates a new folder iside a project, and adds this folder to the set of source folders of the project. Eclipse will compile the files in this folder.

New package creates a new Java package inside a source folder. It also creates the folder associated with the package, of course.

like image 161
JB Nizet Avatar answered Dec 08 '25 22:12

JB Nizet



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!