How to install JOGL on Windows 7 64bit for use with Eclipse?

I tried to complete any number of tutorials :

But I still can't get the eclipse to recognize 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 is always something else with the workbooks and what I can do (for example, different files, different packages, different steps, etc.).

This guide installs JOGL as a user library that I like, but contains links to files (nativewindow.all.jar, newt.all.jar) that I could not find in the JOGL download I found. It also talks about links to .dll files that load help.txt and the wiki status is outdated and should not be used. Having said that, I followed the instructions as best I could (using the files mentioned on the wiki), but that still doesn't work.

The official wiki talks about downloading different packages for different systems, but now they all seem to be combined into a single file "jogamp-all-platform.7z". He says that you need the following files: "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 should do with them. (I referenced them in my build path, but that didn't work).

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

Can someone give step-by-step instructions for beginners on how to add JOGL to my Eclipse project?

EDIT **** Here is a picture of the properties window of my project: my project properties window

+6
source share
1 answer

The JOGL user library is fine. However, you duplicate it again in GameTutorials / lib. I think this says that he should not look deeper. Try deleting the jogl jar files in GameTutorials / lib, but save the jogl jar files in the jogl user library. This should work fine.

+2
source

Source: https://habr.com/ru/post/915411/


All Articles