Ok, lets do this!
java version “1.5.0_07”
Java™ 2 Runtime Environment, Standard Edition (build 1.5.0_07-164)
Java HotSpot™ Client VM (build 1.5.0_07-87, mixed mode, sharing)
Where are all the files?
jogl files:
/Applications/ProgrammingAdditions/JOGL/lib
gluegen-rt.jar libgluegen-rt.jnilib libjogl_awt.jnilib
jogl.jar libjogl.jnilib libjogl_cg.jnilib
Env variables that load when I open a new terminal. I added these to the .bash_login file, because originally I didn’t have a CLASSPATH or a DYLD_LIBRARY_PATH
export CLASSPATH=".:/Applications/ProgrammingAdditions/JOGL/lib:/Applications/ProgrammingAdditions/JOGL/lib/jogl.jar:/Applications/ProgrammingAdditions/JOGL/lib/gluegen-rt.jar:$CLASSPATH"
export DYLD_LIBRARY_PATH="/Applications/ProgrammingAdditions/JOGL/lib:$DYLD_LIBRARY_PATH"
export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH"
I’ve tried multiple versions of these env variables, ones that diidn’t include a repeat of the variable at the end. But nothing seems to work.
Where are my jogl-demos?:
~/Desktop/jogl-demos
this is the unzipped directory, that comes about from the original zipped src file.
Here are its content folders, and after running ant in the make folder, a build folder was created and the jar files and classes.:
build doc lib make src
In build:
classes jogl-demos-src.zip jogl-demos.jar
jogl-demos-data.jar jogl-demos-util.jar
in classes:
demos gleem
in demos:
applets j2d testContextDestruction
common jgears testContextSharing
context jrefract texture
fullscreen misc util
gamma multisample vertexArrayRange
gears particles vertexBufferObject
hdr printext vertexProgRefract
hwShadowmapsSimple proceduralTexturePhysics vertexProgWarp
infiniteShadowVolumes tess xtrans
So everything is there the compile worked correctly. I can show you the ant out put if you prefer.
Buildfile: build.xml
test.for.jogl.demos.jar:
java.class.path.validate:
setup.cg.excludes:
skip.cg.excludes:
init:
all:
[delete] Deleting: /Users/Eric/Desktop/jogl-demos/build/jogl-demos-src.zip
[zip] Building zip: /Users/Eric/Desktop/jogl-demos/build/jogl-demos-src.zip
BUILD SUCCESSFUL
Total time: 9 seconds
Now, I can run some of these classes, first i have to go to the folder classes in the build directory and type for example:
java demos/j2d/FlyingText
this sometimes works, and other times doesn’t. For example I can’t get the particle engine to work. I can load the ControlWindow class in the engine files, but there
are errors and only the swing components are shown. Here is the error output.
Exception in thread “AWT-EventQueue-0” java.lang.NullPointerException
at com.sun.opengl.util.texture.TextureIO.newTexture(TextureIO.java:523)
at demos.particles.engine.Engine.init(Engine.java:85)
at demos.particles.engine.GLComponent.init(GLComponent.java:105)
at com.sun.opengl.impl.GLDrawableHelper.init(GLDrawableHelper.java:72)
at javax.media.opengl.GLCanvas$InitAction.run(GLCanvas.java:271)
at com.sun.opengl.impl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:189)
at javax.media.opengl.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.java:265)
at javax.media.opengl.GLCanvas.display(GLCanvas.java:130)
at javax.media.opengl.GLCanvas.paint(GLCanvas.java:142)
at sun.awt.RepaintArea.paintComponent(RepaintArea.java:276)
at sun.awt.RepaintArea.paint(RepaintArea.java:241)
at apple.awt.ComponentModel.handleEvent(ComponentModel.java:251)
at java.awt.Component.dispatchEventImpl(Component.java:4097)
at java.awt.Component.dispatchEvent(Component.java:3869)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Exception in thread “Timer-0” javax.media.opengl.GLException: java.lang.NullPointerException
at javax.media.opengl.Threading.invokeOnOpenGLThread(Threading.java:271)
at javax.media.opengl.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.java:263)
at javax.media.opengl.GLCanvas.display(GLCanvas.java:130)
at com.sun.opengl.util.Animator.display(Animator.java:144)
at com.sun.opengl.util.FPSAnimator$1.run(FPSAnimator.java:95)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
Caused by: java.lang.NullPointerException
at demos.particles.engine.Particle.draw(Particle.java:61)
at demos.particles.engine.Engine.draw(Engine.java:77)
at demos.particles.engine.GLComponent.display(GLComponent.java:74)
at com.sun.opengl.impl.GLDrawableHelper.display(GLDrawableHelper.java:78)
at javax.media.opengl.GLCanvas$DisplayAction.run(GLCanvas.java:288)
at com.sun.opengl.impl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:194)
at javax.media.opengl.GLCanvas$DisplayOnEventDispatchThreadAction.run(GLCanvas.java:305)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Also, there has never been a time when I could run the jogl-demos.jar files that were created in the build directory. I’ve tried running them using all types of -cp combinations and all types guesswork. Nothing. I usually receive this no matter what my CLASSPATH is.
Failed to load Main-Class manifest attribute from
jogl-demos.jar
Ok this is a lot of information and hopefully it can help. If you guys need more, yah, I can find more.
eric