Eclipse tutoria...login
Eclipse tutorial
author:php.cn  update time:2022-04-13 14:09:28

Eclipse creates Java packages



Open the New Java Package Wizard

You can use the New Java Package Wizard to create a Java package. The Java Package Wizard can be opened by:

  • By clicking the "File" menu and selecting New > Package

  • In the Package Explorer by right-clicking Mouse select>Package

  • Click the package button (new_java_package_button.jpg) on the toolbar

If you want to create a sub-package, open it Select the parent package before the Create Java Package Wizard so that the name field has the value of the parent package.

Use the Create Java Package Wizard

You can perform the following operations in the wizard pop-up box (New Java Package):

  • Enter the resource folder name ( Source Folder field)

  • Enter the package name (Name field)

  • Click the "Finish" button

new_java_package

View the new package

We can view the newly created package in the resource folder of Package Explorer.

new_java_package_pe

php.cn