That site is REALLY confusing. I tried to DL JOGL and I ended up with an archive with HUNDREDS of dlls & jar files in it. How the hell am I supposed to know which ones are needed?
Which site is confusing? You should use the latest dev build or the latest release candidate until the official release is ready.
Sorry but kaffeine was speaking about JOGL as far as I know, we are in the “JOGL Development” section, I assume you only did a mistake.
Several tutorials allowing to setup JOGL within Eclipse are available in the Wiki and Wade Walker has been working on an OSGI bundle for Eclipse too which is going to be a nice addition ;D
(didnt think id need to start a new topic as this one is at the top, know its a bit old)
I cannot for the life of me install this. I even have the book ‘Learning Java Bindings for OpenGL (JOGL)’, which I’m starting to fear may be useless. I just want to get it working in netbeans for windows
I have:
jogl.all.jar
gluegen-rt.jar
jogl.desktop.dll
gluegen-rt.dll
newt.dll
nativewindow_awt.dll
nativewindow_win32.dll
gluegen-java-src.zip
jogl-java-src.zip
I think these are all I need? Then I have a project in netbeans
“F:\Documents and Settings\PATH\NetBeansProjects\testProject\build\classes”
I know how to add library and choose the jars, but where should I put these files in relation to what I have? Assuming I then create a library called ‘jogl’ and add my 2 jars in netbeans, what would my VM options be
'-Djava.library.path=“F:\Documents and Settings\PATH…?”
If anyone can help it’d be much appreciated, in the mean time I’ll keep persevering.
This is why you should be using Eclipse, which lets you easily setup the java.library.path
It’s a royal pain in the ass to set up java.library.path in eclipse, since as far as I can tell, there’s no way to edit on a per-project basis the defaults for every launcher. IDEA and Netbeans have pretty much the same idea, and I find their interface a whole lot nicer, especially with my “sandbox” projects which have some 20-odd main classes and thus potentially 20 launchers.
Setting up the java.library.path in Eclipse requires you to associate the natives with the jar…that’s it…
I do like the native attachment feature, and prefer going that route for the native libs (see, I do have good things to say about Eclipse!) That of course only takes care of one aspect of launch configuration – anything else and you’re still going through a bureaucratic mess.
Please do explain how it’s a mess
Well I now have Eclipse, I like it. Guess I’ll try install JOGL with this now…
This is explained here:
http://jogamp.org/wiki/index.php/Setting_up_a_JogAmp_project_in_your_favorite_IDE
Just skip the step about native library location.
I’m getting a red line under
import javax.media.opengl.GLCanvas; - cannot find symbol
import com.sun.opengl.util.Animator; - package does not exist
When using the previous example, why does it no longer work? Also, could anyone give me a few lines of code just so I can test if its working, because I’m not sure if this error is here as iGLCanvas was removed, or I cocked it up.
Edit: Fixed it now… seems the imports are all just completely different. Basically EVERY example I have found no longer works, everything being different. Not a single example in my book works either.
Is it worth me just getting an older version (e.g. the one in my book), or perhaps I should switch to LWJGL… would I still have this problem?
But I meet the problem that “Can not be resolved import com.sun.opengl.utils”
lzpolestar, you are trying to use some obsolote source code relying on an old version of JOGL. There is no com.sun.* in JOGL 2.0, please look at the documentation:
http://jogamp.org/deployment/jogamp-next/javadoc/jogl/javadoc/