Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make a default package eclipse

Tags:

java

eclipse

I am very new to java and when I create a project, it makes the src and the JRE System Library. What it doesn't create is a default package. When i make a class in the src it names it after the project. it requires me to put package (name of project). I don't want to. How do i make the defaultenter image description here package.

enter image description here

enter image description here

like image 852
EmptyStuff Avatar asked Feb 18 '26 13:02

EmptyStuff


1 Answers

New -> class

Delete the package field and name the class whatever you want. Make sure it's in the right project.

If you have a class that is already in the wrong package, simply delete the package name from the top of the file and drag the file in the file viewer to the src folder itself.

what to delete

like image 170
Strikeskids Avatar answered Feb 20 '26 03:02

Strikeskids



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!