Java with NetBeans IDE, import library JAR
I used Java a lot in college… But it’s been a while. I’m trying out NetBeans IDE (for both Java and Python). Here’s some notes from writing my Java application.
System.out.println(), System.out.print()
…
Add a .jar library:
1. Right-click the Libraries node and choose "Add JAR/Folder".
2. Browse to and select the .jar file(s). It didn’t work when I added it as a folder, so i strongly recommend you add each .jar file separately. ![]()
3. Right-click the Libraries node and choose Properties
4. Choose the file you added (for each file), then Edit, then specify the Javadoc and Sources
5. In your java code, import the package. The package names should be specified in the java doc. In my example, this would be (import net.sf.sevenzipjbinding.*;) or (import net.sf.sevenzipjbinding.SevenZip;) etc.
…
Shift+F11 to build main project. F6 to run main project.
…
Pem (Admin) :: 2010/01/22 (Friday, January 22, 2010) :: Software Development, Software Development - Java :: No Comments »
Del.icio.us
Digg
Technorati
Blinklist
Furl
reddit