jogl with Java 1.7

classic Classic list List threaded Threaded
14 messages Options
Reply | Threaded
Open this post in threaded view
|

jogl with Java 1.7

jiapei100
This post was updated on .
Hi, all:

I'm trying to build JOGL using Java 1.7.0_03, under Ubuntu 12.04

<nabble_embed>pei@pei-GA-870A-UD3:~/MyPrograms/Java/Eclipse/Cannonical/jogl/make$ java -version java version "1.7.0_03"</nabble_embed>

But I obtained many errors:

<nabble_embed>java.compile.javase: [javac] Compiling 75 source files to /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/build/newt/classes [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/awt/applet/JOGLNewtApplet1Run.java:40: error: package javax.media.opengl does not exist [javac] import javax.media.opengl.FPSCounter; [javac] ^ [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/awt/applet/JOGLNewtApplet1Run.java:41: error: package javax.media.opengl does not exist [javac] import javax.media.opengl.GLCapabilities; [javac] ^ [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/awt/applet/JOGLNewtApplet1Run.java:42: error: package javax.media.opengl does not exist [javac] import javax.media.opengl.GLEventListener; [javac] ^ [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/awt/applet/JOGLNewtApplet1Run.java:43: error: package javax.media.opengl does not exist [javac] import javax.media.opengl.GLProfile; [javac] ^ [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java:49: error: package javax.media.opengl does not exist [javac] import javax.media.opengl.*; [javac] ^ [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java:51: error: package jogamp.opengl does not exist [javac] import jogamp.opengl.FPSCounterImpl; [javac] ^ [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java:52: error: package jogamp.opengl does not exist [javac] import jogamp.opengl.GLDrawableHelper; [javac] ^ [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java:53: error: package com.jogamp.opengl does not exist [javac] import com.jogamp.opengl.JoglVersion; [javac] ^ [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java:54: error: package com.jogamp.opengl.util does not exist [javac] import com.jogamp.opengl.util.Animator; [javac] ^ [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java:69: error: cannot find symbol [javac] public class GLWindow implements GLAutoDrawable, Window, NEWTEventConsumer, FPSCounter { [javac] ^ [javac] symbol: class GLAutoDrawable [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java:69: error: cannot find symbol [javac] public class GLWindow implements GLAutoDrawable, Window, NEWTEventConsumer, FPSCounter { [javac] ^ [javac] symbol: class FPSCounter [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/awt/applet/JOGLNewtAppletBase.java:36: error: package javax.media.opengl does not exist [javac] import javax.media.opengl.FPSCounter; [javac] ^ [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/awt/applet/JOGLNewtAppletBase.java:37: error: package javax.media.opengl does not exist [javac] import javax.media.opengl.GL; [javac] ^ [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/awt/applet/JOGLNewtAppletBase.java:38: error: package javax.media.opengl does not exist [javac] import javax.media.opengl.GLAutoDrawable; [javac] ^ [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/awt/applet/JOGLNewtAppletBase.java:39: error: package javax.media.opengl does not exist [javac] import javax.media.opengl.GLEventListener; [javac] ^ [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/awt/applet/JOGLNewtAppletBase.java:40: error: package javax.media.opengl does not exist [javac] import javax.media.opengl.GLPipelineFactory; [javac] ^ [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/awt/applet/JOGLNewtAppletBase.java:51: error: package com.jogamp.opengl.util does not exist [javac] import com.jogamp.opengl.util.Animator; [javac] ^ [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/awt/applet/JOGLNewtAppletBase.java:57: error: cannot find symbol [javac] public class JOGLNewtAppletBase implements KeyListener, GLEventListener { [javac] ^ [javac] symbol: class GLEventListener [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java:132: error: cannot find symbol [javac] public static GLWindow create(GLCapabilitiesImmutable caps) { [javac] ^ [javac] symbol: class GLCapabilitiesImmutable [javac] location: class GLWindow [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java:144: error: cannot find symbol [javac] public static GLWindow create(Screen screen, GLCapabilitiesImmutable caps) { [javac] ^ [javac] symbol: class GLCapabilitiesImmutable [javac] location: class GLWindow [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java:172: error: cannot find symbol [javac] public static GLWindow create(NativeWindow parentNativeWindow, GLCapabilitiesImmutable caps) { [javac] ^ [javac] symbol: class GLCapabilitiesImmutable [javac] location: class GLWindow [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java:453: error: cannot find symbol [javac] private GLContext sharedContext = null; [javac] ^ [javac] symbol: class GLContext [javac] location: class GLWindow [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java:455: error: cannot find symbol [javac] private GLDrawableFactory factory; [javac] ^ [javac] symbol: class GLDrawableFactory [javac] location: class GLWindow [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java:456: error: cannot find symbol [javac] private GLDrawable drawable; [javac] ^ [javac] symbol: class GLDrawable [javac] location: class GLWindow [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java:457: error: cannot find symbol [javac] private GLContext context; [javac] ^ [javac] symbol: class GLContext [javac] location: class GLWindow [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java:458: error: cannot find symbol [javac] private GLDrawableHelper helper = new GLDrawableHelper(); [javac] ^ [javac] symbol: class GLDrawableHelper [javac] location: class GLWindow [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java:462: error: cannot find symbol [javac] private FPSCounterImpl fpsCounter = new FPSCounterImpl(); [javac] ^ [javac] symbol: class FPSCounterImpl [javac] location: class GLWindow [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java:464: error: cannot find symbol [javac] public GLDrawableFactory getFactory() { [javac] ^ [javac] symbol: class GLDrawableFactory [javac] location: class GLWindow [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java:476: error: cannot find symbol [javac] public void setSharedContext(GLContext sharedContext) { [javac] ^ [javac] symbol: class GLContext [javac] location: class GLWindow [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java:480: error: cannot find symbol [javac] public void setContext(GLContext newCtx) { [javac] ^ [javac] symbol: class GLContext [javac] location: class GLWindow [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java:487: error: cannot find symbol [javac] public GLContext getContext() { [javac] ^ [javac] symbol: class GLContext [javac] location: class GLWindow [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java:491: error: cannot find symbol [javac] public GL getGL() { [javac] ^ [javac] symbol: class GL [javac] location: class GLWindow [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java:498: error: cannot find symbol [javac] public GL setGL(GL gl) { [javac] ^ [javac] symbol: class GL [javac] location: class GLWindow [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java:498: error: cannot find symbol [javac] public GL setGL(GL gl) { [javac] ^ [javac] symbol: class GL [javac] location: class GLWindow [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java:506: error: cannot find symbol [javac] public void addGLEventListener(GLEventListener listener) { [javac] ^ [javac] symbol: class GLEventListener [javac] location: class GLWindow [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java:512: error: cannot find symbol [javac] public void addGLEventListener(int index, GLEventListener listener) { [javac] ^ [javac] symbol: class GLEventListener [javac] location: class GLWindow [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java:518: error: cannot find symbol [javac] public void removeGLEventListener(GLEventListener listener) { [javac] ^ [javac] symbol: class GLEventListener [javac] location: class GLWindow [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java:524: error: cannot find symbol [javac] public void setAnimator(GLAnimatorControl animatorControl) { [javac] ^ [javac] symbol: class GLAnimatorControl [javac] location: class GLWindow [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java:530: error: cannot find symbol [javac] public GLAnimatorControl getAnimator() { [javac] ^ [javac] symbol: class GLAnimatorControl [javac] location: class GLWindow [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java:537: error: cannot find symbol [javac] public void invoke(boolean wait, GLRunnable glRunnable) { [javac] ^ [javac] symbol: class GLRunnable [javac] location: class GLWindow [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java:708: error: cannot find symbol [javac] public final GLContext createContext(GLContext shareWith) { [javac] ^ [javac] symbol: class GLContext [javac] location: class GLWindow [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java:708: error: cannot find symbol [javac] public final GLContext createContext(GLContext shareWith) { [javac] ^ [javac] symbol: class GLContext [javac] location: class GLWindow [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java:719: error: cannot find symbol [javac] public final GLCapabilitiesImmutable getChosenGLCapabilities() { [javac] ^ [javac] symbol: class GLCapabilitiesImmutable [javac] location: class GLWindow [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java:727: error: cannot find symbol [javac] public final GLProfile getGLProfile() { [javac] ^ [javac] symbol: class GLProfile [javac] location: class GLWindow [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/awt/applet/JOGLNewtAppletBase.java:67: error: cannot find symbol [javac] GLEventListener glEventListener = null; [javac] ^ [javac] symbol: class GLEventListener [javac] location: class JOGLNewtAppletBase [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/awt/applet/JOGLNewtAppletBase.java:69: error: cannot find symbol [javac] Animator glAnimator=null; [javac] ^ [javac] symbol: class Animator [javac] location: class JOGLNewtAppletBase [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/awt/applet/JOGLNewtAppletBase.java:88: error: cannot find symbol [javac] public GLEventListener getGLEventListener() { return glEventListener; } [javac] ^ [javac] symbol: class GLEventListener [javac] location: class JOGLNewtAppletBase [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/awt/applet/JOGLNewtAppletBase.java:90: error: cannot find symbol [javac] public Animator getGLAnimator() { return glAnimator; } [javac] ^ [javac] symbol: class Animator [javac] location: class JOGLNewtAppletBase [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/awt/applet/JOGLNewtAppletBase.java:109: error: cannot find symbol [javac] public static GLEventListener createInstance(final String clazzName) { [javac] ^ [javac] symbol: class GLEventListener [javac] location: class JOGLNewtAppletBase [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/awt/applet/JOGLNewtAppletBase.java:253: error: cannot find symbol [javac] public void init(GLAutoDrawable drawable) { [javac] ^ [javac] symbol: class GLAutoDrawable [javac] location: class JOGLNewtAppletBase [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/awt/applet/JOGLNewtAppletBase.java:273: error: cannot find symbol [javac] public void reshape(GLAutoDrawable drawable, int x, int y, int width, int height) { [javac] ^ [javac] symbol: class GLAutoDrawable [javac] location: class JOGLNewtAppletBase [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/awt/applet/JOGLNewtAppletBase.java:275: error: cannot find symbol [javac] public void display(GLAutoDrawable drawable) { [javac] ^ [javac] symbol: class GLAutoDrawable [javac] location: class JOGLNewtAppletBase [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/awt/applet/JOGLNewtAppletBase.java:277: error: cannot find symbol [javac] public void dispose(GLAutoDrawable drawable) { [javac] ^ [javac] symbol: class GLAutoDrawable [javac] location: class JOGLNewtAppletBase [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java:431: error: cannot find symbol [javac] private GLAnimatorControl savedAnimator = null; [javac] ^ [javac] symbol: class GLAnimatorControl [javac] location: class GLWindow.GLLifecycleHook [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/jogamp/newt/driver/awt/AWTEDTUtil.java:31: error: package javax.media.opengl does not exist [javac] import javax.media.opengl.Threading; [javac] ^ [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/jogamp/newt/driver/broadcom/egl/Display.java:41: error: package jogamp.opengl.egl does not exist [javac] import jogamp.opengl.egl.EGL; [javac] ^ [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/jogamp/newt/driver/broadcom/egl/Window.java:42: error: package javax.media.opengl does not exist [javac] import javax.media.opengl.GLCapabilitiesImmutable; [javac] ^ [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/jogamp/newt/driver/broadcom/egl/Window.java:44: error: package jogamp.opengl.egl does not exist [javac] import jogamp.opengl.egl.EGLGraphicsConfiguration; [javac] ^ [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/jogamp/newt/driver/kd/KDDisplay.java:42: error: package jogamp.opengl.egl does not exist [javac] import jogamp.opengl.egl.EGL; [javac] ^ [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/jogamp/newt/driver/kd/KDDisplay.java:43: error: package jogamp.opengl.egl does not exist [javac] import jogamp.opengl.egl.EGLDisplayUtil; [javac] ^ [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/jogamp/newt/driver/kd/KDWindow.java:42: error: package javax.media.opengl does not exist [javac] import javax.media.opengl.GLCapabilitiesImmutable; [javac] ^ [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/jogamp/newt/driver/kd/KDWindow.java:45: error: package jogamp.opengl.egl does not exist [javac] import jogamp.opengl.egl.EGLGraphicsConfiguration; [javac] ^ [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/awt/applet/JOGLNewtApplet1Run.java:179: error: cannot find symbol [javac] GLCapabilities caps = new GLCapabilities(GLProfile.get(glProfileName)); [javac] ^ [javac] symbol: class GLCapabilities [javac] location: class JOGLNewtApplet1Run [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/awt/applet/JOGLNewtApplet1Run.java:179: error: cannot find symbol [javac] GLCapabilities caps = new GLCapabilities(GLProfile.get(glProfileName)); [javac] ^ [javac] symbol: class GLCapabilities [javac] location: class JOGLNewtApplet1Run [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/awt/applet/JOGLNewtApplet1Run.java:179: error: cannot find symbol [javac] GLCapabilities caps = new GLCapabilities(GLProfile.get(glProfileName)); [javac] ^ [javac] symbol: variable GLProfile [javac] location: class JOGLNewtApplet1Run [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/awt/applet/JOGLNewtApplet1Run.java:187: error: cannot find symbol [javac] glWindow.setUpdateFPSFrames(FPSCounter.DEFAULT_FRAMES_PER_INTERVAL, System.err); [javac] ^ [javac] symbol: variable FPSCounter [javac] location: class JOGLNewtApplet1Run [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/awt/applet/JOGLNewtApplet1Run.java:200: error: cannot find symbol [javac] GLEventListener glEventListener = base.getGLEventListener(); [javac] ^ [javac] symbol: class GLEventListener [javac] location: class JOGLNewtApplet1Run [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java:101: error: cannot find symbol [javac] GLAnimatorControl ctrl = GLWindow.this.helper.getAnimator(); [javac] ^ [javac] symbol: class GLAnimatorControl [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java:375: error: cannot find symbol [javac] } catch (GLException gle) { [javac] ^ [javac] symbol: class GLException [javac] location: class GLWindow.GLLifecycleHook [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java:415: error: cannot find symbol [javac] GLCapabilitiesImmutable glCaps = (GLCapabilitiesImmutable) nw.getGraphicsConfiguration().getChosenCapabilities(); [javac] ^ [javac] symbol: class GLCapabilitiesImmutable [javac] location: class GLWindow.GLLifecycleHook [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java:415: error: cannot find symbol [javac] GLCapabilitiesImmutable glCaps = (GLCapabilitiesImmutable) nw.getGraphicsConfiguration().getChosenCapabilities(); [javac] ^ [javac] symbol: class GLCapabilitiesImmutable [javac] location: class GLWindow.GLLifecycleHook [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java:417: error: cannot find symbol [javac] factory = GLDrawableFactory.getFactory(glCaps.getGLProfile()); [javac] ^ [javac] symbol: variable GLDrawableFactory [javac] location: class GLWindow.GLLifecycleHook [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java:458: error: cannot find symbol [javac] private GLDrawableHelper helper = new GLDrawableHelper(); [javac] ^ [javac] symbol: class GLDrawableHelper [javac] location: class GLWindow [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java:462: error: cannot find symbol [javac] private FPSCounterImpl fpsCounter = new FPSCounterImpl(); [javac] ^ [javac] symbol: class FPSCounterImpl [javac] location: class GLWindow [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java:546: error: cannot find symbol [javac] if(sendDestroy || ( window.hasDeviceChanged() && GLAutoDrawable.SCREEN_CHANGE_ACTION_ENABLED ) ) { [javac] ^ [javac] symbol: variable GLAutoDrawable [javac] location: class GLWindow [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java:721: error: cannot find symbol [javac] throw new GLException("No drawable yet"); [javac] ^ [javac] symbol: class GLException [javac] location: class GLWindow [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java:729: error: cannot find symbol [javac] throw new GLException("No drawable yet"); [javac] ^ [javac] symbol: class GLException [javac] location: class GLWindow [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java:894: error: cannot find symbol [javac] System.err.println(JoglVersion.getInstance()); [javac] ^ [javac] symbol: variable JoglVersion [javac] location: class GLWindow [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java:896: error: cannot find symbol [javac] System.err.println(JoglVersion.getDefaultOpenGLInfo(null).toString()); [javac] ^ [javac] symbol: variable JoglVersion [javac] location: class GLWindow [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java:898: error: cannot find symbol [javac] final GLProfile glp = GLProfile.getDefault(); [javac] ^ [javac] symbol: class GLProfile [javac] location: class GLWindow [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java:898: error: cannot find symbol [javac] final GLProfile glp = GLProfile.getDefault(); [javac] ^ [javac] symbol: variable GLProfile [javac] location: class GLWindow [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java:899: error: cannot find symbol [javac] final GLCapabilitiesImmutable caps = new GLCapabilities( glp ); [javac] ^ [javac] symbol: class GLCapabilitiesImmutable [javac] location: class GLWindow [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java:899: error: cannot find symbol [javac] final GLCapabilitiesImmutable caps = new GLCapabilities( glp ); [javac] ^ [javac] symbol: class GLCapabilities [javac] location: class GLWindow [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java:904: error: cannot find symbol [javac] glWindow.addGLEventListener(new GLEventListener() { [javac] ^ [javac] symbol: class GLEventListener [javac] location: class GLWindow [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/awt/applet/JOGLNewtAppletBase.java:133: error: cannot find symbol [javac] if( !(instance instanceof GLEventListener) ) { [javac] ^ [javac] symbol: class GLEventListener [javac] location: class JOGLNewtAppletBase [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/awt/applet/JOGLNewtAppletBase.java:136: error: cannot find symbol [javac] return (GLEventListener) instance; [javac] ^ [javac] symbol: class GLEventListener [javac] location: class JOGLNewtAppletBase [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/awt/applet/JOGLNewtAppletBase.java:208: error: cannot find symbol [javac] glWindow.setUpdateFPSFrames(FPSCounter.DEFAULT_FRAMES_PER_INTERVAL, System.err); [javac] ^ [javac] symbol: variable FPSCounter [javac] location: class JOGLNewtAppletBase [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/awt/applet/JOGLNewtAppletBase.java:211: error: cannot find symbol [javac] glAnimator = new Animator(tg, glWindow); [javac] ^ [javac] symbol: class Animator [javac] location: class JOGLNewtAppletBase [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/awt/applet/JOGLNewtAppletBase.java:212: error: cannot find symbol [javac] glAnimator.setUpdateFPSFrames(FPSCounter.DEFAULT_FRAMES_PER_INTERVAL, null); [javac] ^ [javac] symbol: variable FPSCounter [javac] location: class JOGLNewtAppletBase [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/awt/applet/JOGLNewtAppletBase.java:254: error: cannot find symbol [javac] GL _gl = drawable.getGL(); [javac] ^ [javac] symbol: class GL [javac] location: class JOGLNewtAppletBase [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/awt/applet/JOGLNewtAppletBase.java:258: error: cannot find symbol [javac] _gl = _gl.getContext().setGL( GLPipelineFactory.create("javax.media.opengl.Debug", null, _gl, null) ); [javac] ^ [javac] symbol: variable GLPipelineFactory [javac] location: class JOGLNewtAppletBase [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/com/jogamp/newt/awt/applet/JOGLNewtAppletBase.java:265: error: cannot find symbol [javac] _gl = _gl.getContext().setGL( GLPipelineFactory.create("javax.media.opengl.Trace", null, _gl, new Object[] { System.err } ) ); [javac] ^ [javac] symbol: variable GLPipelineFactory [javac] location: class JOGLNewtAppletBase [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/jogamp/newt/driver/awt/AWTEDTUtil.java:66: error: cannot find symbol [javac] return Threading.isToolkitThread(); [javac] ^ [javac] symbol: variable Threading [javac] location: class AWTEDTUtil [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/jogamp/newt/driver/awt/AWTEDTUtil.java:82: error: cannot find symbol [javac] Threading.invoke(wait, r, null); [javac] ^ [javac] symbol: variable Threading [javac] location: class AWTEDTUtil [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/jogamp/newt/driver/awt/AWTEDTUtil.java:88: error: cannot find symbol [javac] Threading.invoke(true, new Runnable() { [javac] ^ [javac] symbol: variable Threading [javac] location: class AWTEDTUtil [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/jogamp/newt/driver/broadcom/egl/Display.java:65: error: cannot find symbol [javac] if (handle == EGL.EGL_NO_DISPLAY) { [javac] ^ [javac] symbol: variable EGL [javac] location: class Display [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/jogamp/newt/driver/broadcom/egl/Display.java:72: error: cannot find symbol [javac] if (aDevice.getHandle() != EGL.EGL_NO_DISPLAY) { [javac] ^ [javac] symbol: variable EGL [javac] location: class Display [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/jogamp/newt/driver/broadcom/egl/Window.java:157: error: cannot find symbol [javac] GLCapabilitiesImmutable capsReq = (GLCapabilitiesImmutable) getGraphicsConfiguration().getRequestedCapabilities(); [javac] ^ [javac] symbol: class GLCapabilitiesImmutable [javac] location: class Window [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/jogamp/newt/driver/broadcom/egl/Window.java:157: error: cannot find symbol [javac] GLCapabilitiesImmutable capsReq = (GLCapabilitiesImmutable) getGraphicsConfiguration().getRequestedCapabilities(); [javac] ^ [javac] symbol: class GLCapabilitiesImmutable [javac] location: class Window [javac] /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/src/newt/classes/jogamp/newt/driver/broadcom/egl/Window.java:158: error: cannot find symbol [javac] final AbstractGraphicsConfiguration cfg = EGLGraphicsConfiguration.create(capsReq, getScreen().getGraphicsScreen(), cfgID); [javac] ^ [javac] symbol: variable EGLGraphicsConfiguration [javac] location: class Window [javac] Note: Some input files use unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. [javac] 100 errors BUILD FAILED /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/make/build.xml:80: The following error occurred while executing this line: /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/make/build-newt.xml:215: Compile failed; see the compiler error output for details. </nabble_embed>



Any suggestions?


Cheers
Pei
Welcome to Vision Open http://www.visionopen.com
Reply | Threaded
Open this post in threaded view
|

Re: jogl with Java 1.7

gouessej
Administrator
Please try to build GlueGen first.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: jogl with Java 1.7

jiapei100

Well, apparently, I've successfully built that already.

BUILD FAILED
/home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/make/build.xml:80: The following error occurred while executing this line:
/home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/make/build-newt.xml:215: Compile failed; see the compiler error output for details.
Total time: 8 seconds
pei@pei-GA-870A-UD3:~/MyPrograms/Java/Eclipse/Cannonical/jogl/make$ cd ../../gluegen/build
pei@pei-GA-870A-UD3:~/MyPrograms/Java/Eclipse/Cannonical/gluegen/build$ ls
antlr-2.7.7.jar      gensrc                gluegen-rt.jar                     localbranch.raw   obj
artifact.properties  gluegen.jar           gluegen-rt.jnlp                    Manifest-rt.temp  test
classes              gluegen-java-src.zip  gluegen-rt-natives-linux-i586.jar  Manifest.temp
pei@pei-GA-870A-UD3:~/MyPrograms/Java/Eclipse/Cannonical/gluegen/build$ 

Are you suggesting me to put gluegen in some specific folder?
Anyway, the root of JOGL and the root of GLUEGEN are put under the same folder.

Any further suggestions?


Cheers
Pei



On Thu, Jul 26, 2012 at 10:07 AM, gouessej [via jogamp] <[hidden email]> wrote:
Please try to build GlueGen first.


If you reply to this email, your message will be added to the discussion below:
http://forum.jogamp.org/jogl-with-Java-1-7-tp4025660p4025661.html
To unsubscribe from jogl with Java 1.7, click here.
NAML



--

Pei JIA

cell:    +1 604-362-5816

Welcome to Vision Open
http://www.visionopen.com
Welcome to Vision Open http://www.visionopen.com
Reply | Threaded
Open this post in threaded view
|

Re: jogl with Java 1.7

Wade Walker
Administrator
You might try "ant -verbose" to see if you get more detailed error messages. You might be missing one of the developer packages on Ubuntu that's needed to compile the C code.
Reply | Threaded
Open this post in threaded view
|

Re: jogl with Java 1.7

jiapei100

Hi, Thanks Wade Walker:


$ ant -v


BUILD FAILED
/home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/make/build.xml:75: The following error occurred while executing this line:
/home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/make/build-jogl.xml:755: The following error occurred while executing this line:
/home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/make/build-jogl.xml:418: GlueGen returned: 1
        at com.jogamp.gluegen.ant.GlueGenTask.execute(GlueGenTask.java:390)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
        at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:390)
        at org.apache.tools.ant.Target.performTasks(Target.java:411)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
        at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
        at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
        at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:390)
        at org.apache.tools.ant.Target.performTasks(Target.java:411)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
        at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
        at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:390)
        at org.apache.tools.ant.Target.performTasks(Target.java:411)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
        at org.apache.tools.ant.Main.runBuild(Main.java:809)
        at org.apache.tools.ant.Main.startAnt(Main.java:217)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)


Still have no idea which package(s) I'm missing... Any further suggestions?



Best Regards
Pei


On Thu, Jul 26, 2012 at 5:30 PM, Wade Walker [via jogamp] <[hidden email]> wrote:
You might try "ant -verbose" to see if you get more detailed error messages. You might be missing one of the developer packages on Ubuntu that's needed to compile the C code.



If you reply to this email, your message will be added to the discussion below:
http://forum.jogamp.org/jogl-with-Java-1-7-tp4025660p4025665.html
To unsubscribe from jogl with Java 1.7, click here.
NAML



--

Pei JIA

cell:    <a href="tel:%2B1%20604-362-5816" value="+16043625816" target="_blank">+1 604-362-5816

Welcome to Vision Open
http://www.visionopen.com
Welcome to Vision Open http://www.visionopen.com
Reply | Threaded
Open this post in threaded view
|

Re: jogl with Java 1.7

jiapei100
In reply to this post by Wade Walker
Furthermore, I also tried under
Windows7 + Java 1.7.0_05


<nabble_embed>C:\Users\pei\MyPrograms\Java\Eclipse\Cannonical\jocl>java -version java version "1.7.0_05" Java(TM) SE Runtime Environment (build 1.7.0_05-b06) Java HotSpot(TM) Client VM (build 23.1-b03, mixed mode, sharing)</nabble_embed>


jogl now compiles !!! However, jocl fails, with the following errors:


<nabble_embed>..... [echo] - - - JOCL binding files generated - - - -pre-compile: -compile-depend: -do-compile: [mkdir] Created dir: C:\Users\pei\MyPrograms\Java\Eclipse\Cannonical\jocl\bu ild\empty [javac] Compiling 77 source files to C:\Users\pei\MyPrograms\Java\Eclipse\Ca nnonical\jocl\build\classes [javac] javac: 无效的标记: Files\Java\jdk1.7.0_05\jre/lib/rt.jar [javac] 用法: javac <options> <source files> [javac] -help 用于列出可能的选项 BUILD FAILED C:\Users\pei\MyPrograms\Java\Eclipse\Cannonical\jocl\nbproject\build-impl.xml:44 2: The following error occurred while executing this line: C:\Users\pei\MyPrograms\Java\Eclipse\Cannonical\jocl\nbproject\build-impl.xml:22 8: Compile failed; see the compiler error output for details. Total time: 15 seconds </nabble_embed>


Seriously have no idea how to make everything successfully compiled !!


Best Regards
Pei
Welcome to Vision Open http://www.visionopen.com
Reply | Threaded
Open this post in threaded view
|

Re: jogl with Java 1.7

gouessej
Administrator
In reply to this post by jiapei100
Wade is right. I compile JOGL without trouble under Cent OS Linux 5.2.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: jogl with Java 1.7

jiapei100


Finally, it turned out to be a very popular error related to antlr.
However, I don't have the solution yet.


<nabble_embed>java.generate.copy2temp: [gluegen] Exception in thread "main" java.lang.NoClassDefFoundError: antlr/RecognitionException [gluegen] at java.lang.Class.getDeclaredMethods0(Native Method) [gluegen] at java.lang.Class.privateGetDeclaredMethods(Class.java:2442) [gluegen] at java.lang.Class.getMethod0(Class.java:2685) [gluegen] at java.lang.Class.getMethod(Class.java:1620) [gluegen] at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:488) [gluegen] at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:480) [gluegen] Caused by: java.lang.ClassNotFoundException: antlr.RecognitionException [gluegen] at java.net.URLClassLoader$1.run(URLClassLoader.java:366) [gluegen] at java.net.URLClassLoader$1.run(URLClassLoader.java:355) [gluegen] at java.security.AccessController.doPrivileged(Native Method) [gluegen] at java.net.URLClassLoader.findClass(URLClassLoader.java:354) [gluegen] at java.lang.ClassLoader.loadClass(ClassLoader.java:423) [gluegen] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) [gluegen] at java.lang.ClassLoader.loadClass(ClassLoader.java:356) [gluegen] ... 6 more BUILD FAILED /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/make/build.xml:75: The following error occurred while executing this line: /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/make/build-jogl.xml:755: The following error occurred while executing this line: /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/make/build-jogl.xml:418: GlueGen returned: 1</nabble_embed>



What is a potential solution? I tried to reinstall antlr-2.7.7 and remove antlr3 already !! Still the same error as mentioned.
What else can I try?


Cheers
Pei

Welcome to Vision Open http://www.visionopen.com
Reply | Threaded
Open this post in threaded view
|

Re: jogl with Java 1.7

jiapei100

According to the solutions online, it seems I'm lack of  antlr-runtime.jar 
Unfortunately, there seems to be no such a jar file under Ubuntu repository.
And I did a search under /usr/share/java/ , there is no such file neither.


I was even thinking I'm missing pccts. Then, I did
$ sudo apt-get install pccts

However, problem continues....


Depressed indeed.

Cheers
Pei
Welcome to Vision Open http://www.visionopen.com
Reply | Threaded
Open this post in threaded view
|

Re: jogl with Java 1.7

Wade Walker
Administrator
It seems like there's something seriously wrong with your build environment :) I've built JOGL many times on Windows, Mac, CentOS and Ubuntu without problems.

Have you tried faithfully following the very detailed instructions at http://jogamp.org/wiki/index.php/Building_JOGL_on_the_command_line? Especially the part about installing and testing the JVM, Ant, and the rest of the steps to make sure that you don't run into strange errors like you're seeing?

Your error message about RecognitionException means that some of ANTLRs JARs aren't on the classpath, but you shouldn't have to install them yourself -- it's included in the JOGL source, since it's needed to build the generated C parser. If you set up the build exactly according to the instructions above, these things should be taken care of.
Reply | Threaded
Open this post in threaded view
|

Re: jogl with Java 1.7

jiapei100

Hi, Wade Walker:

Yes, I did change the settings in
<nabble_embed>.../gluegen/make/gluegen.properties</nabble_embed>


<nabble_embed>antlr.jar=/usr/share/java/antlr-2.7.7.jar junit.jar=/usr/share/java/junit4.jar</nabble_embed>


Do you mean that I cannot change the antlr and junit settings?
You are probably right that I don't even have a CLASSPATH environmental variable.

Now, I set the variable CLASSPATH
<nabble_embed>CLASSPATH="/usr/share/java:$JAVA_HOME/lib:$JRE_HOME/lib:$JMF_HOME/lib"</nabble_embed>
Apparently, antlr.jar is under CLASSPATH, in fact, under /usr/share/java
<nabble_embed>pei@pei-GA-870A-UD3:/usr/share/java$ ls -l antlr* lrwxrwxrwx 1 root root 9 Dec 17 2011 antlr-2.7.7.jar -> antlr.jar -rw-r--r-- 1 root root 1032998 Aug 19 2011 antlr3-3.2.jar lrwxrwxrwx 1 root root 14 Aug 19 2011 antlr3.jar -> antlr3-3.2.jar -rw-r--r-- 1 root root 149266 Aug 19 2011 antlr3-runtime-3.2.jar lrwxrwxrwx 1 root root 22 Aug 19 2011 antlr3-runtime.jar -> antlr3-runtime-3.2.jar lrwxrwxrwx 1 root root 9 Dec 17 2011 antlrall.jar -> antlr.jar lrwxrwxrwx 1 root root 9 Dec 17 2011 antlr.debug.jar -> antlr.jar -rw-r--r-- 1 root root 444586 Dec 17 2011 antlr.jar</nabble_embed>

Problem continues:
<nabble_embed> java.generate.copy2temp: [gluegen] Exception in thread "main" java.lang.NoClassDefFoundError: antlr/RecognitionException [gluegen] at java.lang.Class.getDeclaredMethods0(Native Method) [gluegen] at java.lang.Class.privateGetDeclaredMethods(Class.java:2442) [gluegen] at java.lang.Class.getMethod0(Class.java:2685) [gluegen] at java.lang.Class.getMethod(Class.java:1620) [gluegen] at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:488) [gluegen] at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:480) [gluegen] Caused by: java.lang.ClassNotFoundException: antlr.RecognitionException [gluegen] at java.net.URLClassLoader$1.run(URLClassLoader.java:366) [gluegen] at java.net.URLClassLoader$1.run(URLClassLoader.java:355) [gluegen] at java.security.AccessController.doPrivileged(Native Method) [gluegen] at java.net.URLClassLoader.findClass(URLClassLoader.java:354) [gluegen] at java.lang.ClassLoader.loadClass(ClassLoader.java:423) [gluegen] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) [gluegen] at java.lang.ClassLoader.loadClass(ClassLoader.java:356) [gluegen] ... 6 more BUILD FAILED /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/make/build.xml:75: The following error occurred while executing this line: /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/make/build-jogl.xml:755: The following error occurred while executing this line: /home/pei/MyPrograms/Java/Eclipse/Cannonical/jogl/make/build-jogl.xml:418: GlueGen returned: 1 </nabble_embed>


Can you please be more specific Walker?
1) Am I allowed to modify gluegen.properties to set my own
antlr.jar=/usr/share/java/antlr-2.7.7.jar
junit.jar=/usr/share/java/junit4.jar
??

2) How to set CLASSPATH?
Clearly,
CLASSPATH="/usr/share/java:$JAVA_HOME/lib:$JRE_HOME/lib:$JMF_HOME/lib"
is wrong already.
How to set a correct CLASSPATH?

Cheers
Pei
Welcome to Vision Open http://www.visionopen.com
Reply | Threaded
Open this post in threaded view
|

Re: jogl with Java 1.7

jiapei100

yeah... Walker, I tried.
It seems  if I specify my own antlr and junit, I got the errors while building jogl.
If I just extract everything from the downloaded .tar.7z files without modifying gluegen.properties, then, there is no errors at all.

Why is it so??? Does that really mean that I cannot change antlr directory??


cheers
Pei
Welcome to Vision Open http://www.visionopen.com
Reply | Threaded
Open this post in threaded view
|

Re: jogl with Java 1.7

gouessej
Administrator
Hi

You can modify the classpath but more carefully than you did in order to avoid excluding some necessary dependencies. On the other hand, JMF is a bit dead, we can probably suggest you to use something else.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: jogl with Java 1.7

Wade Walker
Administrator
In reply to this post by jiapei100
jiapei100 wrote
2) How to set CLASSPATH?
Clearly,
CLASSPATH="/usr/share/java:$JAVA_HOME/lib:$JRE_HOME/lib:$JMF_HOME/lib"
is wrong already.
How to set a correct CLASSPATH?
Hi Pei,

It sounds like you're trying to build JOGL without following the instructions, which can lead to very strange problems like you're experiencing

For example, the instructions explicitly say to unset the classpath: http://jogamp.org/wiki/index.php/Building_JOGL_on_the_command_line#Unset_the_classpath

If you just follow the instructions exactly (and don't do anything they don't say to do), it should work. If you find any problems with the instructions, let me know and I will fix them.