Configuring the Java Library Search Path

In a Java project or another project that has the Java nature, the Java Library settings configure the class search path used by the Java compiler and Java runtime interpreter to find Java class files.

These settings are analogous to the CLASSPATH environment setting when using the command-line Java compiler or interpreter.

  1. In the WorkSpace Navigator, right-click on the project and select Properties.
  2. Display the Java Build Path page in the project properties.
    Note: If this page is not available in the project properties, click Cancel, then verify the project has the Java nature.
  3. Click Libraries to display the class folders and JAR files in the class search path.
    • To add a JAR file, click Add JARs or Add External JARs, then browse to specify the JAR file to add to the class search path.
    • To add a folder that contains a class tree, click Add Class Folder, then browse to specify the folder that contains the root of the class tree folders.
    For more information on these settings, see the Java Development User's Guide or press F1 with the focus on the Java Build Path page in the Project Properties dialog.
  4. Click OK.
Related tasks
Creating a Java Project
Configuring the Java Project Nature
Configuring a Java Source Folder
Configuring Java Builder Resource Filters
Importing Java Source Files

Send your feedback on this help topic to Sybase Technical Publications: pubs@sybase.com

Your comments will be sent to the technical publications staff at Sybase, Inc. For product-related issues or technical support, contact Sybase Technical Support at 1-800-8SYBASE.