Eclipse Creating a Java Package
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 are:
- By clicking the "File" menu and selecting New > Package
- In the Package Explorer, right-click and select > Package
- Click the package button on the toolbar (
)
If you want to create a subpackage, select the parent package before opening the create Java package wizard, so that the name field will have the parent package's value.
Using the create Java package wizard
In the wizard dialog (New Java Package), you can perform the following operations:
- Enter the source folder name (Source Folder field)
- Enter the package name (Name field)
- Click the "Finish" button
Viewing the new package
In the Package Explorer, under the source folder, we can view the new package.