Monday, March 31, 2014

How to install JOGL1.1 into Netbeans?

  1. Download JOGL1.1 "windows amd64 and i586" zip file from here or here.
  2. Extract this zip file to C:\ so you should have C:\JOGLwin\lib32 and C:\JOGLwin\lib64
  3. Open Netbeans and create a new project, call it "Computer Graphics" for example.
  4. Download the file "SimpleJoglApp.java" or from here and add it to your project.
  5. Right-click the project and choose properties.
  6. Select Run from the left, then add this Java VM option: "-Djava.library.path=C:\JOGLwin\lib64", and press Ok.
  7. After this, right-click on Libraries and select "Add Library", or simply choose "Libraries" from project properties on the left.  
  8. Press Add Library -> Create -> Type the library name "Jogl" and press Ok.
  9. Now, click "Add JAR/Folder", browse to "C:\JOGLwin\lib32", and select all files then press "Add JAR/Folder", then do the same for "C:\JOGLwin\lib64".
  10. After adding both sets of JARs, your library should look like this:
  11. Click OK -> OK, run your project/file and it should work.
  12. Download the book from here or here.

No comments:

Post a Comment