Open the new Java Package Wizard
You can use the New Java Package Wizard to create a Java package. The Java Package Wizard opens in the following ways:
- By clicking on the "File" menu and selecting New > Package
- Select > Package in the Package Explorer by right-clicking the mouse
- Click the package button () on the tool bar
If you are creating a child package, select the parent package before opening the Create Java Package Wizard so that the Name field has the value of the parent package.
Using the Create Java Package Wizard
In the Out-of-box (New Java package), you can perform the following actions:
- Enter the resource folder name (Source directory field)
- Enter the package name (Name field)
- Click the "Finish" button
View New Package
Under the Resources folder of the package Explorer, we can view the new packages.
Eclipse Create Java Package---Eclipse tutorial Lesson No. 09