Adding Folders and JAR Files to the Classpath


If your project relies on prebuilt binaries or classes that are not part of a NetBeans IDE project, you can add these to your classpath as well.

To add a JAR file or a set of classes to your project classpath:

  1. Expand the project's node in the Projects window.

  2. Right-click the project's Libraries node and choose Add JAR/Folder. In the file chooser, navigate to and select the folder or JAR file and click Open.

If the JAR file you want to add to the classpath is built from another project in the IDE, you can link the project so that JAR is rebuilt each time you build your current project. See Structuring Your Projects later in this chapter.




NetBeans IDE Field Guide(c) Developing Desktop, Web, Enterprise, and Mobile Applications
NetBeans IDE Field Guide(c) Developing Desktop, Web, Enterprise, and Mobile Applications
ISBN: N/A
EAN: N/A
Year: 2004
Pages: 279

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net