Creating a Java Package in Eclipse
Opening the New Java Package Wizard
You can use the New Java Package Wizard to create a Java package. The ways to open the Java Package Wizard include:
By clicking the "File" menu and selecting New > Package
By right-clicking in the Package Explorer and selecting New > Package
By clicking the package button on the toolbar
If you want to create a subpackage, select the parent package before opening the Java Package Wizard, so the parent package's value is in the name field.
Using the Java Package Wizard
In the wizard dialog (New Java Package), you can perform the following actions:
Enter the source folder name (Source Folder field)
Enter the package name (Name field)
Click the "Finish" button
Viewing the New Package
We can view the newly created package under the source folder in the Package Explorer.