Adding or Removing Existing Sources for a Project

You can add existing Java files to a project or remove them from the Project Files list using the information on this page.

Adding Files

You can add existing Java files to your new project by either adding all of the files in the source directory or adding individual files from any directory. Use the appropriate steps below to add existing files:

To add all of the files in the project source directory:

To add a file from another directory:

  1. Click Add.
    The file chooser is displayed.
  2. Type the path and file name of the file you want to add.
  3. Click OK.
    The file you specified will be added to the Project Files list. The Project Files list indicates each file name to be added to the project.

Removing Files

If after adding files to the Project Files list, you decide you want to remove any or all of the files, do one of the following:

To remove one file:

  1. Select the file you want to remove by clicking on the file name.
  2. Click Delete.
    The file is removed from the Project Files list.

To remove all of the files from the project file list:

After Adding Existing Source Files

  1. Click Next.
  2. Depending on your scenario do one of the following: