Eclipse Tutorial on Eclipse Create Java Package

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 clicking on the file menu and selecting new → package.

  • by right click in the package explorer and selecting new → package.

  • by clicking 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.
  • click 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