Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you install JOGL on windows 7 64bit for use with Eclipse?

Tags:

java

eclipse

jogl

I've tried to follow any number of tutorials:

But I still can't get eclipse to recognise any of my import statements:

import net.java.games.jogl.Animator;
import net.java.games.jogl.GL;
import net.java.games.jogl.GLCanvas;
import net.java.games.jogl.GLCapabilities;
import net.java.games.jogl.GLDrawable;
import net.java.games.jogl.GLDrawableFactory;
import net.java.games.jogl.GLEventListener;

Having said that there always seems to be something different with the tutorials and what I am able to do (ie different files, different packages, different steps etc).

This tutorial installs JOGL as a user library which I like but references files ( nativewindow.all.jar, newt.all.jar) that I could not find in the JOGL download I found. It also talks about referencing .dll files which the download help.txt and wiki state are deprecated and should not be used. Having said that I followed the instructions as best I could (using files mentioned in wiki) but it still doesn't work.

The official wiki talks about downloading different packages for different systems, but they all seemed to be bundled into one "jogamp-all-platforms.7z" file now. It says the files you need are: "gluegen-rt.jar, jogl.all.jar, gluegen-java-src.zip, jogl-java-src.zip, gluegen-rt-natives-windows-amd64.jar, jogl-all-natives-windows-amd64.jar" but it doesn't say what you are supposed to do with them. (I've referenced them in my build path, but it hasn't worked).

Anyway I am probably doing something very stupid, but am not sure what.

Can someone give step by step newbie-proof instructions on how to add JOGL to my eclipse project?

EDIT**** Here's an image of my project properties window: my project properties window

like image 513
kiman Avatar asked May 10 '12 15:05

kiman


1 Answers

The user library JOGL is fine. However you are duplicating it again under GameTutorials/lib. I think this tell jogl not to look any deeper. Try removing the jogl jar files under GameTutorials/lib, but keep the jogl jar files under the jogl user library. That should work fine.

like image 147
Pixelapp Avatar answered Sep 22 '22 20:09

Pixelapp