How do I set the classpath in NetBeans?

Borut Flis picture Borut Flis · Sep 29, 2011 · Viewed 131.4k times · Source

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

Answer

Bhesh Gurung picture Bhesh Gurung · Sep 29, 2011
  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.

Or

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