Creating a Java Project as a Source Container

Because it is the best to store all auxiliary classes externally, you will need a Java project as a separate source container. This enables a clear separation between EJBs and the required auxiliary classes.

Procedure

Choose...

       1.      Choose the menu File ® New ® Project…to start the New Project Wizard.

       2.      Select Java (in the left pane), followed by Java Project (in the right pane). Choose Next.

       3.      In the Project name field, type the name Helperclasses  for your new Java project and leave the default settings for Project contents unchanged.

       4.      Choose Finish.

A dialog box appears asking you whether you want to switch to Java Perspective.

       5.      Choose Yes.

Result

The wizard generates a new Java project that will serve as a source container for all your auxiliary classes.

Next step:

The Constants Class