Configuring Java Source Folders

By default, Java source files are created in the root of the project. Creating a separate source folder allows you to separate Java source files from other files in the project. You can add multiple source folders.

To create a source folder:

  1. In the Workspace Navigator, right-click on the project and choose Properties from the context menu.

  2. Select the Java Build Path page in the Project Properties dialog, then select the Source tab. If this page is not available in the project properties, click Cancel, then verify the project has the Java nature.

  3. To create a new folder, click Create New Folder and enter a folder name, for example, src. The Java builder creates the folder when you rebuild the project.

    To specify an existing folder in the project, check the box next to the folder name. The Java builder compiles the Java source files in the package tree under the source folder when you rebuild the project.

  4. Click OK to close the Properties dialog. If prompted to verify removal of the project root as a source folder, click OK. If prompted to perform a full rebuild of the project, click OK.

    If you added source folders that contain existing source files, check for compile or build errors in the Problems view. Build errors may be corrected by configuring the Java library search path

Importing Java Source Files

Configuring the Java Library Search Path

Configuring Endpoints for a Services Package Profile

Creating a Java Project

Java Development User's Guide

Send your feedback on this help topic to Sybase Tech Pubs: pubs@sybase.com