Java – How to set the classpath in NetBeans


Can someone tell me where and how I set the classpath in NetBeans? I would like to add a .jar file.

Best Solution

  1. Right-click your Project.
  2. Select Properties.
  3. On the left-hand side click Libraries.
  4. Under Compile tab - click Add Jar/Folder button.


  1. Expand your Project.
  2. Right-click Libraries.
  3. Select Add Jar/Folder.