English 中文(简体)
Eclipse - Create Java Package
  • 时间:2024-11-03

Ecppse - Create Java Package


Previous Page Next Page  

Opening 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 in different ways −

    By cpcking on the File menu and selecting New → Package.

    By right cpck in the package explorer and selecting New → Package.

    By cpcking on the package icon which is in the tool bar(Package Icon ).

If you are creating a sub package, before opening the Java Package wizard select the parent package so that name field can have a default value in it.

Using the New Java Package Wizard

Once the Java Package wizard comes up −

    Enter/confirm the source folder name.

    Enter the package name.

    Cpck on the Finish button.

New Java Package

Viewing the Newly Created Package

The package explorer will show the newly created package under the source folder.

Create Java Package Advertisements