What's required to build the JOGL demos?

I downloaded the ZIP of the JOGL demos source and I also downloaded JOGL for Windows and then tried to build the demos source. Unfortunately I get a lot of errors and it appears that something else is required. Here are some of the errors:

D:\Projects\jogl-demos\src\demos\nurbs\curveapp\CurveApp.java:12: cannot find symbol
symbol : class GLCanvas
location: package javax.media.opengl
import javax.media.opengl.GLCanvas;

D:\Projects\jogl-demos\src\demos\nurbs\curveapp\GLListener.java:8: cannot find symbol
symbol : class GLUT
location: package com.sun.opengl.util
import com.sun.opengl.util.GLUT;

D:\Projects\jogl-demos\src\demos\nurbs\icons\IconFactory.java:3: package com.sun.opengl.impl.io does not exist
import com.sun.opengl.impl.io.StreamUtil;

D:\Projects\jogl-demos\src\demos\nurbs\surfaceapp\GLListener.java:8: package com.sun.opengl.util.glut.gl2 does not exist
import com.sun.opengl.util.glut.gl2.GLUTgl2;

D:\Projects\jogl-demos\src\demos\nurbs\surfaceapp\GLListener.java:96: cannot find symbol
symbol : class GLUTgl2
location: class demos.nurbs.surfaceapp.GLListener
private GLUTgl2 glut;

D:\Projects\jogl-demos\src\demos\vertexArrayRange\VertexArrayRange.java:54: package javax.media.opengl.util does not exist
import javax.media.opengl.util.Animator;

D:\Projects\jogl-demos\src\demos\vertexArrayRange\VertexArrayRange.java:722: cannot find symbol
symbol : class Animator
location: class demos.vertexArrayRange.VertexArrayRange
private static void runExit(final Animator animator) {

D:\Projects\jogl-demos\src\jbullet\src\javabullet\BulletGlobals.java:33: package javax.vecmath does not exist

What other libraries do I need to build these demos?

Thanks,

Jarrick Chagma

OK, I have tried using JSR-231-1.1.1 sources instead but I still get errors. I downloaded jogl-1.1.1-src.zip and jogl-1.1.1-windows-i586.zip but these errors still appear:

D:\Projects\jogl-demos\src\demos\apx\es1\RedSquare.java:6: package com.sun.opengl.impl.egl does not exist
import com.sun.opengl.impl.egl.*;

D:\Projects\jogl-demos\src\demos\apx\es1\RedSquare.java:14: cannot find symbol
symbol : class EGLDrawableFactory
location: class demos.apx.es1.RedSquare
EGLDrawableFactory factory = (EGLDrawableFactory) GLDrawableFactory.getFactory();

D:\Projects\jogl-demos\src\demos\apx\es1\RedSquare.java:118: cannot find symbol
symbol : method glClearDepthf(float)
location: interface javax.media.opengl.GL
gl.glClearDepthf(1.0f);

D:\Projects\jogl-demos\src\demos\apx\es2\Basic.java:28: cannot find symbol
symbol : variable GL_NVIDIA_PLATFORM_BINARY_NV
location: interface javax.media.opengl.GL
Shader shader = Shader.createBinaryProgram(data_vert, GL.GL_NVIDIA_PLATFORM_BINARY_NV,

D:\Projects\jogl-demos\src\demos\apx\es2\Shader.java:53: cannot find symbol
symbol : variable GL_NUM_SHADER_BINARY_FORMATS
location: interface javax.media.opengl.GL
gl.glGetIntegerv(GL.GL_NUM_SHADER_BINARY_FORMATS, numBinaryFormats, 0);

D:\Projects\jogl-demos\src\demos\apx\es2\Shader.java:56: cannot find symbol
symbol : variable GL_SHADER_BINARY_FORMATS
location: interface javax.media.opengl.GL
gl.glGetIntegerv(GL.GL_SHADER_BINARY_FORMATS, binaryFormats, 0);

D:\Projects\jogl-demos\src\demos\apx\es2\Shader.java:106: cannot find symbol
symbol : method glShaderBinary(int,int[],int,int,java.nio.ByteBuffer,int)
location: interface javax.media.opengl.GL
gl.glShaderBinary(1, tmp, 0, binaryFormat, buf, shaderData.length);

What other libraries do i require?

Thanks,

Jarrick Chagma

http://kenai.com/projects/jogl/pages/FAQ#Bugreports_&_Testing

Please don’t mix the new JOGL (2.x) with the old one JOGL 1.x … !