Errare Humanum Est Forum Index
FAQ
Memberlist
Profile
Log in to check your private messages
Log in

Register
 

.NoClassDefFoundError: net/java/games/jogl/GLCanvas

 
Post new topic   Reply to topic    Errare Humanum Est Forum Index -> L'EQUIPE DE DEVELOPPEMENT
View previous topic :: View next topic  
Author Message
shogun1234



Joined: 11 May 2008
Posts: 4

PostPosted: Sun May 11, 2008 3:36 pm    Post subject: .NoClassDefFoundError: net/java/games/jogl/GLCanvas Reply with quote

Sorry I do not know where to post this error message because I can't read French. My English is not good as well. So if I post to the wrong place, I apologize for it.

My question is what jogl version does this game use? Because after looking up the jogl website, seems like there is no files located in the net/java/games... Beside, the webstart version only gives a white full screen as nothing I can play on it.

I came across to see this project so I download it from http://errare.sourceforge.net/. Then I notice it requires jogl files (from the error message shows). So I went to jogl, but seems like there is no jar files contain this files. So I am confused which lib I need to use if I want to test to play this game.

Thanks for help,
Back to top
View user's profile Send private message
Cyberchrist
Admin - Moteur 3D


Joined: 03 May 2006
Posts: 174

PostPosted: Tue May 13, 2008 2:24 pm    Post subject: Reply with quote

Hello, we are pleased to hear feedback Wink
I will move your post to the Technical Section as soon as I find how Embarassed It's no problem.

>My question is what jogl version does this game use?
Sourceforge's Errare source uses jogl-1.0.0 whereas DEMO 2 uses jogl 1.1.0 (JSR-231)

>Beside, the webstart version only gives a white full screen as nothing I can play on it.
The webstart version works pretty well on the majority of the systems. I would be very pleased to get the log of the game. To do so, you can start the DEMO2 and accept to help the developer Cool or send me your errare.log file that should have popped somewhere on your desktop (on Windows) or in your home folder (on Linux). I will try to find the problem and patch that ASAP Twisted Evil

>Then I notice it requires jogl files
This is right. The webstart version handles the downloading of the correct jogl version, you need nothing previously installed on your system. The source version is more complicated to run, but the content of the zip file should allow for a rather easy import into the Eclipse IDE.

Good luck and keep me informed Very Happy

_________________
Codeur moteur 3D
Back to top
View user's profile Send private message Send e-mail
shogun1234



Joined: 11 May 2008
Posts: 4

PostPosted: Tue May 13, 2008 10:48 pm    Post subject: Reply with quote

Thanks your advice. I found out the log in my home directory, The error message is listed as in the code section. looks like it is an openGL issue. The environment I use is Debian lennty testing kernel 2.6.24.2 and 2.6.20. java 1.6.0_01.

Also I found out I can play the demo in the window platform. so maybe that's only platform specific problem.

What makes me confused is when I downlod jogl files (1.0 or 1.1). Both of them do not contain any folder named like net/java or any classes inside the structure 'net/java/games/jogl/GLCanvas'. Those files (downloaded from the dev java net) only has com/sun/ ... folders. So I do not know where does this classes is referenced from.

thanks for your reply. I appreciate it.: )

Code:

java.lang.NoClassDefFoundError: Could not initialize class com.sun.opengl.cg.CgGL
        at graphicsEngine.Extensions.readEXT(Extensions.java:99)
        at graphicsEngine.GraphicsEngine.init(GraphicsEngine.java:188)
        at com.sun.opengl.impl.GLDrawableHelper.init(GLDrawableHelper.java:72)
        at javax.media.opengl.GLCanvas$InitAction.run(GLCanvas.java:418)
        at com.sun.opengl.impl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:189)
        at javax.media.opengl.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.java:412)
        at javax.media.opengl.GLCanvas.display(GLCanvas.java:244)
        at javax.media.opengl.GLCanvas.paint(GLCanvas.java:277)
        at sun.awt.RepaintArea.paintComponent(RepaintArea.java:248)
        at sun.awt.X11.XRepaintArea.paintComponent(XRepaintArea.java:56)
        at sun.awt.RepaintArea.paint(RepaintArea.java:224)
        at sun.awt.X11.XComponentPeer.handleEvent(XComponentPeer.java:683)
        at java.awt.Component.dispatchEventImpl(Component.java:4489)
        at java.awt.Component.dispatchEvent(Component.java:4243)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
...

javax.media.opengl.GLException: java.lang.NullPointerException
        at javax.media.opengl.Threading.invokeOnOpenGLThread(Threading.java:271)
        at javax.media.opengl.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.java:410)
        at javax.media.opengl.GLCanvas.display(GLCanvas.java:244)
        at graphicsEngine.GraphicsEngine.run(GraphicsEngine.java:895)
        at main.ClientMain.run(ClientMain.java:153)
        at main.ClientMain.<init>(ClientMain.java:109)
        at main.ClientMain.start(ClientMain.java:233)
        at main.ClientMain.main(ClientMain.java:224)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.javaws.Launcher.executeApplication(Launcher.java:1293)
        at com.sun.javaws.Launcher.executeMainClass(Launcher.java:1239)
        at com.sun.javaws.Launcher.doLaunchApp(Launcher.java:1086)
        at com.sun.javaws.Launcher.run(Launcher.java:105)
        at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NullPointerException
        at graphicsEngine.Reflection.createReflectionTexture(Reflection.java:57)
        at graphicsEngine.GraphicsEngine.display(GraphicsEngine.java:289)
        at com.sun.opengl.impl.GLDrawableHelper.display(GLDrawableHelper.java:78)
        at javax.media.opengl.GLCanvas$DisplayAction.run(GLCanvas.java:435)
        at com.sun.opengl.impl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:194)
        at javax.media.opengl.GLCanvas$DisplayOnEventDispatchThreadAction.run(GLCanvas.java:452)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)

Back to top
View user's profile Send private message
Cyberchrist
Admin - Moteur 3D


Joined: 03 May 2006
Posts: 174

PostPosted: Wed May 14, 2008 9:43 pm    Post subject: Reply with quote

> Caused by: java.lang.NullPointerException
> at graphicsEngine.Reflection.createReflectionTexture(Reflection.java:57)

Which refers to the code :
/** CREATING REFLECTION TEXTURE **/
56 if (Extensions.isFBOSupported) {
57 gl.glBindFramebufferEXT(GL.GL_FRAMEBUFFER_EXT, fbo[0]);

OK, I found a problem in my code. My OpenGL Extension checker is not correct : it says your video card (and video driver) supports FBO's although it does not in reality !

I'll fix that soon Rolling Eyes Thanks for your feedback, it helps me a lot Cool

I'll tell you when it gets fixed. Now, your video driver doesn't support FBO's which, while it still should let Errare run, will be rather ugly compared with what can be achieved with a recent card and recent driver that allow VBO's, FBO's and CG Cool

_________________
Codeur moteur 3D
Back to top
View user's profile Send private message Send e-mail
Cyberchrist
Admin - Moteur 3D


Joined: 03 May 2006
Posts: 174

PostPosted: Tue May 20, 2008 1:18 pm    Post subject: Reply with quote

It's patched.

Does the DEMO 2 run now ?

_________________
Codeur moteur 3D
Back to top
View user's profile Send private message Send e-mail
Ade



Joined: 30 Sep 2006
Posts: 87
Location: Nantes

PostPosted: Sun Jun 08, 2008 1:35 pm    Post subject: Reply with quote

It's run well.

It is possible to add a menu to reverse the mouse?

The character jumps strangely. Confused


For Ubuntu :
I am impressed, it 's the first game which fits correctly to my two screens Razz
But I don't have the bottom of the toolbar.
I don't have the effect of glare from the sun.

screenshot :




For Vista :
One screen run. The second is black. Sad
I have the effect of glare from the sun.



my equipment :
- Ubuntu 8.04 and Windows Vista
- AMD Athlon 64 X2 Dual Core 6500+ 2.81GHz
- Nvdia Geforce 8600GT
- 2Go of ram
- 2 screens

_________________
Graphiste 3DS
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Errare Humanum Est Forum Index -> L'EQUIPE DE DEVELOPPEMENT All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001 phpBB Group