Hi,
I am getting back into Java programming (I used to do it obsessively about 7 years ago) and I am having terrible difficulties with importing certain packages. I am specifically interested in using Jogl and my problems have started since I tried using it, but they might be caused by something unrelated to Jogl. From what I can tell the problem is a minor one, so I am hoping that someone will know what I have done wrong.
From the beginning.
I downloaded the latest JDK, JRE, NetBeans, and then I got the latest Jogl build. I added the paths to the PATH and CLASSPATH variables – like every article on the topic instructs. Then I downloaded a number of extremely simple Jogl tutorials as well as Chris Campbell’s PhotoCube demo – as a NetBeans project.
The problem has been that the imports aren’t registering, they aren’t being found.
For example, Cambell’s PhotoCube uses these (among others) and they aren’t found:
import org.jdesktop.animation.timing.Cycle;
import org.jdesktop.animation.timing.Envelope;
import org.jdesktop.animation.timing.TimingController;
import org.jdesktop.animation.timing.TimingEvent;
import org.jdesktop.animation.timing.TimingListener;
import org.jdesktop.animation.timing.interpolation.ObjectModifier;
import org.jdesktop.animation.timing.interpolation.PropertyRange;
Originally, an even greater number of imports didn’t work but I fished around the internet until I found some packages that seemed to be what I needed, downloaded them into a “Packages” folder, and added the folder to my project libraries.
It would seem, from the failed imports listed above, that I need the org.jdesktop.animation.timing package . . . but I have it, that is why these DO register:
import org.jdesktop.animation.timing.TimingTarget;
import org.jdesktop.animation.timing.interpolation.KeyFrames;
import org.jdesktop.animation.timing.interpolation.KeyTimes;
import org.jdesktop.animation.timing.interpolation.KeyValues;
import org.jdesktop.animation.timing.interpolation.ObjectModifier;
I can’t understand this. Why would some be found and others not?
In regard to Jogl, most of the demos I have downloaded use net.java.games.jogl.* (which didn’t register) while Cambell’s PhotoCube used javax.media.opengl.GL; (which I eventually got to register somehow). Are these two different versions of the same thing? Different packages?
From what I have read, everyone seems to think that if I just download the jogl stuff and add it to my PATHs and/or project libraries list, everything will be found. That isn’t happening. Any suggestions?
[I am assuming that I am simply missing some crucial packages or haven’t put something in the right place.]