Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
318 posts
|
Hi,
A jzy3d user has a problem initializing a GLCapabilities. A very simple code without jzy3d can let jogl fail: public class StupidTest { public static void main(String[] args) { new GLCapabilities(GLProfile.getDefault()); } } Will: Exception in thread "main" java.lang.NoSuchMethodError: javax.media.opengl.GLDrawableFactory.initSingleton()V at javax.media.opengl.GLProfile.initProfilesForDefaultDevices(GLProfile.java:1244) at javax.media.opengl.GLProfile.access$000(GLProfile.java:75) at javax.media.opengl.GLProfile$1.run(GLProfile.java:133) at java.security.AccessController.doPrivileged(Native Method) at javax.media.opengl.GLProfile.initSingleton(GLProfile.java:122) at javax.media.opengl.GLProfile.initSingleton(GLProfile.java:151) at javax.media.opengl.GLProfile.getProfileMap(GLProfile.java:1688) at javax.media.opengl.GLProfile.get(GLProfile.java:652) at javax.media.opengl.GLProfile.getDefault(GLProfile.java:478) at javax.media.opengl.GLProfile.getDefault(GLProfile.java:486) Some info on the computer: OS: windows vista home edition, service pack 2 GC: SiS Mirage 3 Proc: Intel pentium dual CPU T3400 The list of jars in the path: gluegen-rt-natives-linux-amd64.jar gluegen-rt-natives-linux-i586.jar gluegen-rt-natives-macosx-universal.jar gluegen-rt-natives-solaris-amd64.jar gluegen-rt-natives-solaris-i586.jar gluegen-rt-natives-windows-amd64.jar gluegen-rt-natives-windows-i586.jar gluegen-rt.jar jogl-all-natives-linux-amd64.jar jogl-all-natives-linux-i586.jar jogl-all-natives-macosx-universal.jar jogl-all-natives-solaris-amd64.jar jogl-all-natives-solaris-i586.jar jogl-all-natives-windows-amd64.jar jogl-all-natives-windows-i586.jar jogl.all.jar I don't have this problem on my Win7. Hope you have some suggestions. Thanks for her, Martin |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Administrator
2954 posts
|
On 02/27/2012 10:43 PM, Martin [via jogamp] wrote:
> > > Hi, > > A jzy3d user has a problem initializing a GLCapabilities. A very simple code > without jzy3d can let jogl fail: > > public class StupidTest { > public static void main(String[] args) { > new GLCapabilities(GLProfile.getDefault()); > } > } > > Will: > Exception in thread "main" java.lang.NoSuchMethodError: > javax.media.opengl.GLDrawableFactory.initSingleton()V > at > javax.media.opengl.GLProfile.initProfilesForDefaultDevices(GLProfile.java:1244) > at javax.media.opengl.GLProfile.access$000(GLProfile.java:75) > at javax.media.opengl.GLProfile$1.run(GLProfile.java:133) > at java.security.AccessController.doPrivileged(Native Method) ... [show rest of quote] ... [show rest of quote] <snip/>
> > Some info on the computer: > OS: windows vista home edition, service pack 2 > GC: SiS Mirage 3 > Proc: Intel pentium dual CPU T3400 > > > The list of jars in the path: > gluegen-rt-natives-linux-amd64.jar > gluegen-rt-natives-linux-i586.jar > gluegen-rt-natives-macosx-universal.jar > gluegen-rt-natives-solaris-amd64.jar > gluegen-rt-natives-solaris-i586.jar > gluegen-rt-natives-windows-amd64.jar > gluegen-rt-natives-windows-i586.jar > gluegen-rt.jar > jogl-all-natives-linux-amd64.jar > jogl-all-natives-linux-i586.jar > jogl-all-natives-macosx-universal.jar > jogl-all-natives-solaris-amd64.jar > jogl-all-natives-solaris-i586.jar > jogl-all-natives-windows-amd64.jar > jogl-all-natives-windows-i586.jar > jogl.all.jar > > > I don't have this problem on my Win7. > > Hope you have some suggestions. > Thanks for her, ... [show rest of quote] ... [show rest of quote] If this would be a problem within JOGL, no unit test would pass.
Also, you would not be able to run lets say an Applet from the web page. What could be the problem is that somehow JARs got mixed up. However this doesn't sound logical since both classes GLProfile and GLDrawableFactory are in jogl.all.jar. Now I start tapping in the dark: - some weirdo anti-virus software or other background thingy manipulating the JARs ? - check JAR files itself .. cmp them w/ the ones from our website md5/sha256/cmp .. - ?? Actually all platforms are using the same jogl.all.jar, which contains the classes which seem to be incomaptible in your case .. so, it's really 'interesting'. > Martin ~Sven |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
318 posts
|
Thanks for the prompt reply!
We'll check if I haven't done any mistake while retrieving the jars. By the way, I usually manually get jars there:
http://jogamp.org/deployment/archive/rc/v2.0-rc5/jar/ and found that jogl-all.jar is an archive containing the actual jar. Having a .zip would be a little more "understandable" :)
2012/2/28 Sven Gothel [via jogamp] <[hidden email]> On 02/27/2012 10:43 PM, Martin [via jogamp] wrote: ... [show rest of quote] |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Administrator
2954 posts
|
On 02/28/2012 12:21 PM, Martin [via jogamp] wrote:
> > > Thanks for the prompt reply! > We'll check if I haven't done any mistake while retrieving the jars. > > By the way, I usually manually get jars there: > http://jogamp.org/deployment/archive/rc/v2.0-rc5/jar/ and found that > jogl-all.jar is an archive containing the actual jar. Having a .zip would > be a little more "understandable" :) How about looking into the 'archive' subfolder ? We also have introduced the new all platform 7z archive file, as visible in the new test deployment: http://jogamp.org/deployment/jogamp-test/archive/jogamp-all-platforms.7z Yup, our wiki documentation is a bit behind, however the 'archive' folder is referenced on the main page 'zip'. ~Sven |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
318 posts
|
Great, the jar folder in this archive is what we need... + a cleanup to remove joal and jocl files
Many thanks! Martin
2012/2/28 Sven Gothel [via jogamp] <[hidden email]>
... [show rest of quote] |
Loading... |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
1 post
|
This post was updated on Feb 28, 2012; 1:09pm.
I didn't try the jars yet, but I restored my computer and uninstalled java3d. I had some progress. My console shows this now:
Rotate : Left click and drag mouse Scale : Roll mouse wheel Z Shift : Right click and drag mouse Animate : Double left click Screenshot : Press 's' ------------------------------------ Exception in thread "main-AWTAnimator-1" java.lang.RuntimeException: Waited 5000ms for: Thread[main,5,main] - Thread[main-AWTAnimator-1,5,main], with recursionCount 0, lock: com.jogamp.common.util.locks.RecursiveLock@b2fd8f, qsz 0 at com.jogamp.common.util.locks.RecursiveLock.lock(RecursiveLock.java:125) at javax.media.opengl.awt.GLCanvas.validateGLDrawable(GLCanvas.java:554) at javax.media.opengl.awt.GLCanvas.display(GLCanvas.java:382) at com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:74) at com.jogamp.opengl.util.AnimatorBase.display(AnimatorBase.java:140) at com.jogamp.opengl.util.Animator$MainLoop.run(Animator.java:180) at java.lang.Thread.run(Unknown Source) |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Administrator
2954 posts
|
On 02/28/2012 02:01 PM, Esther [via jogamp] wrote:
> > > I didn't tried the jars yet, but I restored my computer and uninstalled > java3d. I had some progress. My console shows this now: > > Rotate : Left click and drag mouse > Scale : Roll mouse wheel > Z Shift : Right click and drag mouse > Animate : Double left click > Screenshot : Press 's' > ------------------------------------ > Exception in thread "main-AWTAnimator-1" java.lang.RuntimeException: Waited > 5000ms for: Thread[main,5,main] - Thread[main-AWTAnimator-1,5,main], with > recursionCount 0, lock: com.jogamp.common.util.locks.RecursiveLock@b2fd8f, > qsz 0 > at com.jogamp.common.util.locks.RecursiveLock.lock(RecursiveLock.java:125) > at javax.media.opengl.awt.GLCanvas.validateGLDrawable(GLCanvas.java:554) > at javax.media.opengl.awt.GLCanvas.display(GLCanvas.java:382) > at com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:74) > at com.jogamp.opengl.util.AnimatorBase.display(AnimatorBase.java:140) > at com.jogamp.opengl.util.Animator$MainLoop.run(Animator.java:180) > at java.lang.Thread.run(Unknown Source) > ... [show rest of quote] ... [show rest of quote] How can I reproduce this test ?
Sorry, I am not familiar w/ jzy3d yet, but I like to see how it's doing and help w/ bug fixes. ~Sven |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
318 posts
|
In reply to this post by Esther
Esther,
For the moment the best is to check how JOGL works or not on your computer, so the best is to run StupidTest.java first and see if it throws any exception (the file I added to your project). In case no exception is thrown, then it becomes a jzy3d problem we should better discuss out of this forum :)
Martin
2012/2/28 Esther [via jogamp] <[hidden email]> I didn't tried the jars yet, but I restored my computer and uninstalled java3d. I had some progress. My console shows this now: ... [show rest of quote] |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Administrator
6045 posts
|
In reply to this post by Esther
If you use the latest version of Java3D whose renderer is based on JOGL 2, you have to use the same version of JOGL 2.0 in Jzy3d and in Java3D to avoid conflicts. Of course, you cannot use Jzy3d latest version with an "old" version of Java3D.
Julien Gouesse | Personal blog | Website
|
Loading... |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
1 post
|
just to record and confirming the last post, I ran StupidTest.java and it worked well.
|
Free forum by Nabble | Edit this page |