Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (539)
Games in Android Showcase (132)
games submitted by our members
Games in WIP (603)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1] 2
  ignore  |  Print  
  Unable to initialize JAWT  (Read 7050 times)
0 Members and 1 Guest are viewing this topic.
Offline Pierre

Senior Newbie





« Posted 2009-11-27 15:00:32 »

Very simple code
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
33  
34  
35  
36  
37  
38  
import javax.media.opengl.GLAutoDrawable;
import javax.media.opengl.GLEventListener;
import javax.media.opengl.awt.GLCanvas;
import javax.swing.JFrame;

import com.sun.opengl.util.Animator;

public class TestJOGL
{
   public static void main(String[] args)
   {
      JFrame frame = new JFrame();
      frame.setSize(640, 480);
      frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
      GLCanvas canvas = new GLCanvas();
      canvas.addGLEventListener(new GLEventListener()
      {
         public void reshape(GLAutoDrawable arg0, int arg1, int arg2, int arg3, int arg4)
         {
         }
         
         public void init(GLAutoDrawable arg0)
         {
         }
         
         public void dispose(GLAutoDrawable arg0)
         {
         }
         
         public void display(GLAutoDrawable arg0)
         {
         }
      });
      Animator animator = new Animator(canvas);
      frame.add(canvas);
      frame.setVisible(true);
   }
}


1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
Exception in thread "main" java.lang.RuntimeException: Unable to initialize JAWT
   at com.sun.nativewindow.impl.jawt.JAWT$1.run(JAWT.java:100)
   at java.security.AccessController.doPrivileged(Native Method)
   at com.sun.nativewindow.impl.jawt.JAWT.getJAWT(JAWT.java:95)
   at com.sun.nativewindow.impl.jawt.windows.WindowsJAWTWindow.lockSurface(WindowsJAWTWindow.java:69)
   at com.sun.opengl.impl.GLDrawableImpl.lockSurface(GLDrawableImpl.java:130)
   at com.sun.opengl.impl.windows.wgl.WindowsWGLDrawable.setRealized(WindowsWGLDrawable.java:70)
   at javax.media.opengl.awt.GLCanvas.addNotify(GLCanvas.java:413)
   at java.awt.Container.addNotify(Container.java:2661)
   at javax.swing.JComponent.addNotify(JComponent.java:4731)
   at java.awt.Container.addNotify(Container.java:2661)
   at javax.swing.JComponent.addNotify(JComponent.java:4731)
   at java.awt.Container.addNotify(Container.java:2661)
   at javax.swing.JComponent.addNotify(JComponent.java:4731)
   at javax.swing.JRootPane.addNotify(JRootPane.java:754)
   at java.awt.Container.addNotify(Container.java:2661)
   at java.awt.Window.addNotify(Window.java:722)
   at java.awt.Frame.addNotify(Frame.java:487)
   at java.awt.Window.show(Window.java:944)
   at java.awt.Component.show(Component.java:1564)
   at java.awt.Component.setVisible(Component.java:1516)
   at java.awt.Window.setVisible(Window.java:927)
   at TestJOGL.main(TestJOGL.java:36)


I don't understand Sad

I'm using JOGL2 latest build.
Java 6 or 7 (same error).
Windows 7 x64
Geforce 8800GTS 640
Latest Nvidia drivers

Thanx !
Offline Pierre

Senior Newbie





« Reply #1 - Posted 2009-11-27 15:01:10 »

other errors :
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
33  
34  
35  
36  
37  
38  
39  
40  
41  
42  
43  
44  
45  
46  
47  
48  
49  
50  
51  
52  
53  
54  
55  
56  
57  
58  
59  
60  
61  
62  
63  
64  
65  
66  
67  
68  
69  
70  
71  
72  
73  
74  
75  
76  
java.lang.Exception: JAWT Surface previously locked by main
   at com.sun.nativewindow.impl.jawt.JAWTWindow.lockSurface(JAWTWindow.java:106)
   at com.sun.nativewindow.impl.jawt.windows.WindowsJAWTWindow.lockSurface(WindowsJAWTWindow.java:60)
   at com.sun.opengl.impl.GLDrawableImpl.lockSurface(GLDrawableImpl.java:130)
   at com.sun.opengl.impl.windows.wgl.WindowsWGLDrawable.setRealized(WindowsWGLDrawable.java:70)
   at javax.media.opengl.awt.GLCanvas.addNotify(GLCanvas.java:413)
   at java.awt.Container.addNotify(Container.java:2661)
   at javax.swing.JComponent.addNotify(JComponent.java:4731)
   at java.awt.Container.addNotify(Container.java:2661)
   at javax.swing.JComponent.addNotify(JComponent.java:4731)
   at java.awt.Container.addNotify(Container.java:2661)
   at javax.swing.JComponent.addNotify(JComponent.java:4731)
   at javax.swing.JRootPane.addNotify(JRootPane.java:754)
   at java.awt.Container.addNotify(Container.java:2661)
   at java.awt.Window.addNotify(Window.java:722)
   at java.awt.Frame.addNotify(Frame.java:487)
   at java.awt.Window.show(Window.java:944)
   at java.awt.Component.show(Component.java:1564)
   at java.awt.Component.setVisible(Component.java:1516)
   at java.awt.Window.setVisible(Window.java:927)
   at TestJOGL.main(TestJOGL.java:36)
Exception in thread "AWT-EventQueue-0" javax.media.nativewindow.NativeWindowException: JAWT Surface already locked - AWT-EventQueue-0 JAWT-Window[windowHandle 0x0, surfaceHandle 0x0, pos 0/0, size 624x442, visible true, locked true,
   config class javax.media.nativewindow.awt.AWTGraphicsConfiguration[class javax.media.nativewindow.awt.AWTGraphicsScreen[class javax.media.nativewindow.awt.AWTGraphicsDevice[type AWT, awtDevice D3DGraphicsDevice[screen=0], handle 0x0], idx 0],
   chosen    GLCapabilities[Capabilities[Onscreen: true, Red: 8, Green: 8, Blue: 8, Alpha: 0, Opaque: true], GL profile: GLProfile[GL2/GL2], PBuffer: false, DoubleBuffered: true, Stereo: false, HardwareAccelerated: true, DepthBits: 24, StencilBits: 0, Red Accum: 0, Green Accum: 0, Blue Accum: 0, Alpha Accum: 0, Multisample: false, Num samples: 0, PBuffer-FloatingPointBuffers: false, PBuffer-RenderToTexture: false, PBuffer-RenderToTextureRectangle: false],
   requested GLCapabilities[Capabilities[Onscreen: true, Red: 8, Green: 8, Blue: 8, Alpha: 0, Opaque: true], GL profile: GLProfile[GL2/GL2], PBuffer: false, DoubleBuffered: true, Stereo: false, HardwareAccelerated: true, DepthBits: 24, StencilBits: 0, Red Accum: 0, Green Accum: 0, Blue Accum: 0, Alpha Accum: 0, Multisample: false, Num samples: 0, PBuffer-FloatingPointBuffers: false, PBuffer-RenderToTexture: false, PBuffer-RenderToTextureRectangle: false],
   D3DGraphicsConfig[dev=D3DGraphicsDevice[screen=0],pixfmt=0],
   encapsulated WindowsWGLGraphicsConfiguration[class javax.media.nativewindow.DefaultGraphicsScreen[class javax.media.nativewindow.windows.WindowsGraphicsDevice[type Windows, handle 0x0], idx 0], pfdID -1, wglChoosen false,
   requested GLCapabilities[Capabilities[Onscreen: true, Red: 8, Green: 8, Blue: 8, Alpha: 0, Opaque: true], GL profile: GLProfile[GL2/GL2], PBuffer: false, DoubleBuffered: true, Stereo: false, HardwareAccelerated: true, DepthBits: 24, StencilBits: 0, Red Accum: 0, Green Accum: 0, Blue Accum: 0, Alpha Accum: 0, Multisample: false, Num samples: 0, PBuffer-FloatingPointBuffers: false, PBuffer-RenderToTexture: false, PBuffer-RenderToTextureRectangle: false],
   chosen    GLCapabilities[Capabilities[Onscreen: true, Red: 8, Green: 8, Blue: 8, Alpha: 0, Opaque: true], GL profile: GLProfile[GL2/GL2], PBuffer: false, DoubleBuffered: true, Stereo: false, HardwareAccelerated: true, DepthBits: 24, StencilBits: 0, Red Accum: 0, Green Accum: 0, Blue Accum: 0, Alpha Accum: 0, Multisample: false, Num samples: 0, PBuffer-FloatingPointBuffers: false, PBuffer-RenderToTexture: false, PBuffer-RenderToTextureRectangle: false]]],
   wrappedWindow AWT-GLCanvas[ class javax.media.nativewindow.awt.AWTGraphicsConfiguration[class javax.media.nativewindow.awt.AWTGraphicsScreen[class javax.media.nativewindow.awt.AWTGraphicsDevice[type AWT, awtDevice D3DGraphicsDevice[screen=0], handle 0x0], idx 0],
   chosen    GLCapabilities[Capabilities[Onscreen: true, Red: 8, Green: 8, Blue: 8, Alpha: 0, Opaque: true], GL profile: GLProfile[GL2/GL2], PBuffer: false, DoubleBuffered: true, Stereo: false, HardwareAccelerated: true, DepthBits: 24, StencilBits: 0, Red Accum: 0, Green Accum: 0, Blue Accum: 0, Alpha Accum: 0, Multisample: false, Num samples: 0, PBuffer-FloatingPointBuffers: false, PBuffer-RenderToTexture: false, PBuffer-RenderToTextureRectangle: false],
   requested GLCapabilities[Capabilities[Onscreen: true, Red: 8, Green: 8, Blue: 8, Alpha: 0, Opaque: true], GL profile: GLProfile[GL2/GL2], PBuffer: false, DoubleBuffered: true, Stereo: false, HardwareAccelerated: true, DepthBits: 24, StencilBits: 0, Red Accum: 0, Green Accum: 0, Blue Accum: 0, Alpha Accum: 0, Multisample: false, Num samples: 0, PBuffer-FloatingPointBuffers: false, PBuffer-RenderToTexture: false, PBuffer-RenderToTextureRectangle: false],
   D3DGraphicsConfig[dev=D3DGraphicsDevice[screen=0],pixfmt=0],
   encapsulated WindowsWGLGraphicsConfiguration[class javax.media.nativewindow.DefaultGraphicsScreen[class javax.media.nativewindow.windows.WindowsGraphicsDevice[type Windows, handle 0x0], idx 0], pfdID -1, wglChoosen false,
   requested GLCapabilities[Capabilities[Onscreen: true, Red: 8, Green: 8, Blue: 8, Alpha: 0, Opaque: true], GL profile: GLProfile[GL2/GL2], PBuffer: false, DoubleBuffered: true, Stereo: false, HardwareAccelerated: true, DepthBits: 24, StencilBits: 0, Red Accum: 0, Green Accum: 0, Blue Accum: 0, Alpha Accum: 0, Multisample: false, Num samples: 0, PBuffer-FloatingPointBuffers: false, PBuffer-RenderToTexture: false, PBuffer-RenderToTextureRectangle: false],
   chosen    GLCapabilities[Capabilities[Onscreen: true, Red: 8, Green: 8, Blue: 8, Alpha: 0, Opaque: true], GL profile: GLProfile[GL2/GL2], PBuffer: false, DoubleBuffered: true, Stereo: false, HardwareAccelerated: true, DepthBits: 24, StencilBits: 0, Red Accum: 0, Green Accum: 0, Blue Accum: 0, Alpha Accum: 0, Multisample: false, Num samples: 0, PBuffer-FloatingPointBuffers: false, PBuffer-RenderToTexture: false, PBuffer-RenderToTextureRectangle: false]]], com.sun.opengl.impl.windows.wgl.WindowsOnscreenWGLDrawable, GLEventListeners num 1 [TestJOGL$1@329f3d, ]]]
   at com.sun.nativewindow.impl.jawt.JAWTWindow.lockSurface(JAWTWindow.java:104)
   at com.sun.nativewindow.impl.jawt.windows.WindowsJAWTWindow.lockSurface(WindowsJAWTWindow.java:60)
   at com.sun.opengl.impl.GLDrawableImpl.lockSurface(GLDrawableImpl.java:130)
   at com.sun.opengl.impl.windows.wgl.WindowsOnscreenWGLContext.makeCurrentImpl(WindowsOnscreenWGLContext.java:59)
   at com.sun.opengl.impl.GLContextImpl.makeCurrent(GLContextImpl.java:120)
   at com.sun.opengl.impl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:141)
   at javax.media.opengl.awt.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.java:553)
   at javax.media.opengl.awt.GLCanvas.display(GLCanvas.java:290)
   at javax.media.opengl.awt.GLCanvas.paint(GLCanvas.java:368)
   at sun.awt.RepaintArea.paintComponent(RepaintArea.java:264)
   at sun.awt.RepaintArea.paint(RepaintArea.java:240)
   at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:347)
   at java.awt.Component.dispatchEventImpl(Component.java:4777)
   at java.awt.Component.dispatchEvent(Component.java:4527)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:618)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:286)
   at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:201)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:191)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:186)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:178)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:139)
Exception in thread "AWT-EventQueue-0" javax.media.opengl.GLException: Attempt to make the same context current twice on thread Thread[AWT-EventQueue-0,6,main]
   at com.sun.opengl.impl.GLContextLock.lock(GLContextLock.java:83)
   at com.sun.opengl.impl.GLContextImpl.makeCurrent(GLContextImpl.java:117)
   at com.sun.opengl.impl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:141)
   at javax.media.opengl.awt.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.java:553)
   at javax.media.opengl.awt.GLCanvas.display(GLCanvas.java:290)
   at javax.media.opengl.awt.GLCanvas.paint(GLCanvas.java:368)
   at sun.awt.RepaintArea.paintComponent(RepaintArea.java:264)
   at sun.awt.RepaintArea.paint(RepaintArea.java:240)
   at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:347)
   at java.awt.Component.dispatchEventImpl(Component.java:4777)
   at java.awt.Component.dispatchEvent(Component.java:4527)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:618)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:286)
   at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:201)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:191)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:186)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:178)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:139)
Offline gouessej
« Reply #2 - Posted 2009-11-27 20:24:25 »

Is there anyone else who can reproduce this bug? I have no access to Windows 7. JOGL 2 works fine under Vista as far as I know.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Pierre

Senior Newbie





« Reply #3 - Posted 2009-11-27 20:28:34 »

Is it a Windows 7 bug ?
I can test it on others computers tomorrow :
- Win 7 x64
- Win XP 32

Enable or disable Aero doesn't fix the bug
Offline gouessej
« Reply #4 - Posted 2009-11-27 20:29:35 »

Is it a Windows 7 bug ?
I can test it on others computers tomorrow :
- Win 7 x64
- Win XP 32

Enable or disable Aero doesn't fix the bug
Do you use noddraw=true ?

1  
2  
//Disable DirectDraw under Windows in order to avoid conflicts with OpenGL
       System.setProperty("sun.java2d.noddraw","true");

Offline Pierre

Senior Newbie





« Reply #5 - Posted 2009-11-27 20:31:05 »

What is "noddraw" ?
All my code is in the first message.
Offline gouessej
« Reply #6 - Posted 2009-11-27 20:32:23 »

What is "noddraw" ?
All my code is in the first message.
noddraw = no Direct Draw

Use the line I gave you in my previous post. If you can launch TUER, it means that there is no bug Smiley

The first line of your program should be
1  
System.setProperty("sun.java2d.noddraw","true");

or use this option on command line.

Let me know if it works.

Offline Pierre

Senior Newbie





« Reply #7 - Posted 2009-11-27 20:43:26 »

Doesn't work Sad

But i can launch and play TUER.

System.setProperty("sun.java2d.noddraw","true");
removed 3 exceptions

Here my new code :
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
33  
public class TestJOGL
{
   public static void main(String[] args)
   {
      System.setProperty("sun.java2d.noddraw", "true");
     
      JFrame frame = new JFrame();
      frame.setSize(640, 480);
      frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
      GLCanvas canvas = new GLCanvas();
      canvas.addGLEventListener(new GLEventListener()
      {
         public void reshape(GLAutoDrawable arg0, int arg1, int arg2, int arg3, int arg4)
         {
         }
         
         public void init(GLAutoDrawable arg0)
         {
         }
         
         public void dispose(GLAutoDrawable arg0)
         {
         }
         
         public void display(GLAutoDrawable arg0)
         {
         }
      });
      Animator animator = new Animator(canvas);
      frame.add(canvas);
      frame.setVisible(true);
   }
}


Error message :
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
Exception in thread "main" java.lang.RuntimeException: Unable to initialize JAWT
   at com.sun.nativewindow.impl.jawt.JAWT$1.run(JAWT.java:100)
   at java.security.AccessController.doPrivileged(Native Method)
   at com.sun.nativewindow.impl.jawt.JAWT.getJAWT(JAWT.java:95)
   at com.sun.nativewindow.impl.jawt.windows.WindowsJAWTWindow.lockSurface(WindowsJAWTWindow.java:69)
   at com.sun.opengl.impl.GLDrawableImpl.lockSurface(GLDrawableImpl.java:130)
   at com.sun.opengl.impl.windows.wgl.WindowsWGLDrawable.setRealized(WindowsWGLDrawable.java:70)
   at javax.media.opengl.awt.GLCanvas.addNotify(GLCanvas.java:413)
   at java.awt.Container.addNotify(Container.java:2661)
   at javax.swing.JComponent.addNotify(JComponent.java:4731)
   at java.awt.Container.addNotify(Container.java:2661)
   at javax.swing.JComponent.addNotify(JComponent.java:4731)
   at java.awt.Container.addNotify(Container.java:2661)
   at javax.swing.JComponent.addNotify(JComponent.java:4731)
   at javax.swing.JRootPane.addNotify(JRootPane.java:754)
   at java.awt.Container.addNotify(Container.java:2661)
   at java.awt.Window.addNotify(Window.java:722)
   at java.awt.Frame.addNotify(Frame.java:487)
   at java.awt.Window.show(Window.java:944)
   at java.awt.Component.show(Component.java:1564)
   at java.awt.Component.setVisible(Component.java:1516)
   at java.awt.Window.setVisible(Window.java:927)
   at TestJOGL.main(TestJOGL.java:38)
Offline Pierre

Senior Newbie





« Reply #8 - Posted 2009-11-27 20:45:51 »

I use Eclipse.
All .jar and .dll files are in a "lib" folder in my project,
and are imported as "libraries" in my project properties.

All .dll files are also in my project root folder.
Offline gouessej
« Reply #9 - Posted 2009-11-27 21:08:37 »

It is strange, I don't see:
1  
public final void displayChanged(GLAutoDrawable drawable, boolean modeChanged, boolean deviceChanged){}

in your code  Huh

Please can you try to do the same with an AWT frame instead of a JFrame?

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Pierre

Senior Newbie





« Reply #10 - Posted 2009-11-27 21:11:12 »

http://download.java.net/media/jogl/jogl-2.x-docs/javax/media/opengl/GLEventListener.html
Offline Pierre

Senior Newbie





« Reply #11 - Posted 2009-11-27 21:13:54 »

displayChanged is in the 1.1.1 doc
not in 2.x
Offline gouessej
« Reply #12 - Posted 2009-11-27 21:15:34 »

displayChanged is in the 1.1.1 doc
not in 2.x
You're right... but do you reproduce your bug with a plain AWT frame instead of a JFrame?

Offline Pierre

Senior Newbie





« Reply #13 - Posted 2009-11-27 21:18:04 »

same bug with a Frame
Offline Pierre

Senior Newbie





« Reply #14 - Posted 2009-11-27 21:18:52 »

i can give you a VNC access on my computer (tomorrow), if you want to test this bug :p
Offline gouessej
« Reply #15 - Posted 2009-11-27 21:28:39 »

i can give you a VNC access on my computer (tomorrow), if you want to test this bug :p
My Internet connection is too bad  Cry Please test under Windows XP and/or Windows Vista tomorrow. If you reproduce this bug on one of them, it will be easier for me, it will allow me to try to test it at work (I have no Windows at all at home  Grin).

Is it really a blocker bug for you? Can you use JOGL 1.1.1a until this is fixed?

Offline Pierre

Senior Newbie





« Reply #16 - Posted 2009-11-27 21:33:11 »

ok, i'll test tomorrow.
yes this bug is blocker, i can't use JOGL 2 Tongue
About using 1.1.1 ... I don't like using "old" API ^^
JOGL 1 and 2 are not exactly the same, and i don't want to change my code when JOGL 2 will be stable...
Offline arielm

Junior Devvie




which way to the station?


« Reply #17 - Posted 2009-11-27 21:42:38 »

Is it really a blocker bug for you? Can you use JOGL 1.1.1a until this is fixed?

Just take in count that Jogl 1.1.1a is not web-startable on Mac OSX with Java 1.6

One year or even 6 months ago, it was not such an issue.
But nowadays, more and more Mac's are simply getting automatically updated to Java 1.6...

Ariel Malka | www.chronotext.org
Offline gouessej
« Reply #18 - Posted 2009-11-27 21:46:51 »

ok, i'll test tomorrow.
yes this bug is blocker, i can't use JOGL 2 Tongue
About using 1.1.1 ... I don't like using "old" API ^^
JOGL 1 and 2 are not exactly the same, and i don't want to change my code when JOGL 2 will be stable...
I remind you that JOGL 1.1.1a is stable whereas JOGL 2 is only at a beta stage. You won't have a lot of things to change to switch from one version to another and I see you don't use Newt, it decreases the "cost" of such changes. JOGL is now a community-driven project, Sun has given it up, it is difficult to maintain such an API. If you do not yet use any feature that is specific to JOGL 2, switching back to JOGL 1.1.1a is not a problem. Best regards.

Just take in count that Jogl 1.1.1a is not web-startable on Mac OSX with Java 1.6
You're right, it is a big problem, I agree with you. You know that JOGL developers already do what they can to prevent the boat from sinking...  Undecided Is it different with JOGL 2 on Mac?

Offline Pierre

Senior Newbie





« Reply #19 - Posted 2009-11-27 21:50:43 »

Is JOGL dead ?
Offline gouessej
« Reply #20 - Posted 2009-11-27 21:55:25 »

Is JOGL dead ?
No. Some public and private organizations use it, it is far from the death. Sun no more cares of it but JOGL maintainers are still there, Sven, Bienator and some other people still contribute to this community project. cylab and I fixed some bugs in the JOGL renderer of JMonkeyEngine 2.0, the biggest 3D engines written in Java use optionally this API (Ardor3D, JMonkeyEngine 2 & 3, Xith3D, Aviatrix3D, ...).

Offline gouessej
« Reply #21 - Posted 2009-11-28 11:04:27 »

Please Pierre, try to use the property sun.awt.noerasebackground too, I'm not sure it will solve your problem.

Offline Pierre

Senior Newbie





« Reply #22 - Posted 2009-11-28 11:09:11 »

Please Pierre, try to use the property sun.awt.noerasebackground too, I'm not sure it will solve your problem.
true or false ?
change nothing
Offline Pierre

Senior Newbie





« Reply #23 - Posted 2009-11-28 11:47:41 »

My code doesn't work on my mother's computer (old laptop)
Same error message.

I think something is wrong in my code or in my Eclipse project ...
I'll send screenshots
Offline Pierre

Senior Newbie





« Reply #24 - Posted 2009-11-28 12:00:04 »

my code
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
33  
34  
35  
36  
37  
38  
39  
40  
41  
import javax.media.opengl.GLAutoDrawable;
import javax.media.opengl.GLEventListener;
import javax.media.opengl.awt.GLCanvas;
import javax.swing.JFrame;

import com.sun.opengl.util.Animator;

public class TestJOGL
{
   public static void main(String[] args)
   {
      System.setProperty("sun.java2d.noddraw", "true");
      // System.setProperty("sun.awt.noerasebackground", "false");
     
      JFrame frame = new JFrame();
      frame.setSize(640, 480);
      frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
      GLCanvas canvas = new GLCanvas();
      canvas.addGLEventListener(new GLEventListener()
      {
         public void reshape(GLAutoDrawable arg0, int arg1, int arg2, int arg3, int arg4)
         {
         }
         
         public void init(GLAutoDrawable arg0)
         {
         }
         
         public void dispose(GLAutoDrawable arg0)
         {
         }
         
         public void display(GLAutoDrawable arg0)
         {
         }
      });
      Animator animator = new Animator(canvas);
      frame.add(canvas);
      frame.setVisible(true);
   }
}


Error message :
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
Exception in thread "main" java.lang.RuntimeException: Unable to initialize JAWT
   at com.sun.nativewindow.impl.jawt.JAWT$1.run(JAWT.java:100)
   at java.security.AccessController.doPrivileged(Native Method)
   at com.sun.nativewindow.impl.jawt.JAWT.getJAWT(JAWT.java:95)
   at com.sun.nativewindow.impl.jawt.windows.WindowsJAWTWindow.lockSurface(WindowsJAWTWindow.java:69)
   at com.sun.opengl.impl.GLDrawableImpl.lockSurface(GLDrawableImpl.java:130)
   at com.sun.opengl.impl.windows.wgl.WindowsWGLDrawable.setRealized(WindowsWGLDrawable.java:70)
   at javax.media.opengl.awt.GLCanvas.addNotify(GLCanvas.java:413)
   at java.awt.Container.addNotify(Container.java:2661)
   at javax.swing.JComponent.addNotify(JComponent.java:4731)
   at java.awt.Container.addNotify(Container.java:2661)
   at javax.swing.JComponent.addNotify(JComponent.java:4731)
   at java.awt.Container.addNotify(Container.java:2661)
   at javax.swing.JComponent.addNotify(JComponent.java:4731)
   at javax.swing.JRootPane.addNotify(JRootPane.java:754)
   at java.awt.Container.addNotify(Container.java:2661)
   at java.awt.Window.addNotify(Window.java:722)
   at java.awt.Frame.addNotify(Frame.java:487)
   at java.awt.Window.show(Window.java:944)
   at java.awt.Component.show(Component.java:1564)
   at java.awt.Component.setVisible(Component.java:1516)
   at java.awt.Window.setVisible(Window.java:927)
   at TestJOGL.main(TestJOGL.java:39)


Eclipse screenshots :



Offline gouessej
« Reply #25 - Posted 2009-11-28 12:12:06 »

Sorry do rather this:
1  
System.setProperty("sun.awt.noerasebackground", "true");

Check that there is no other gluegen-rt.dll on your machine and try to launch the examples using JOGL 2 and Java Web Start in order to check if it really comes from your install.

Offline Pierre

Senior Newbie





« Reply #26 - Posted 2009-11-28 12:14:03 »

Sorry do rather this:
1  
System.setProperty("sun.awt.noerasebackground", "true");

already done, change nothing

i posted my eclipse config
Offline gouessej
« Reply #27 - Posted 2009-11-28 12:27:38 »

already done, change nothing

i posted my eclipse config
Please check if you follow the indications that I put into my website:
http://tuer.sourceforge.net/download.php

If this is ok, I think we could conclude that you have found a bug in JOGL 2.

Use the demo of JOGL Gears (the one that uses JOGL 2) to check if it really comes from your install.

Offline Pierre

Senior Newbie





« Reply #28 - Posted 2009-11-28 13:03:09 »

Which version of JOGL should i use to compile your project ? 2 ?
Where is JOGL Gears ?
Offline Pierre

Senior Newbie





« Reply #29 - Posted 2009-11-28 13:29:43 »

But JOGL 1 works for me !
If i use JOGL 1 for your project, it will work !
Pages: [1] 2
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

rwatson462 (32 views)
2014-12-15 09:26:44

Mr.CodeIt (23 views)
2014-12-14 19:50:38

BurntPizza (51 views)
2014-12-09 22:41:13

BurntPizza (84 views)
2014-12-08 04:46:31

JscottyBieshaar (45 views)
2014-12-05 12:39:02

SHC (59 views)
2014-12-03 16:27:13

CopyableCougar4 (58 views)
2014-11-29 21:32:03

toopeicgaming1999 (123 views)
2014-11-26 15:22:04

toopeicgaming1999 (114 views)
2014-11-26 15:20:36

toopeicgaming1999 (32 views)
2014-11-26 15:20:08
Resources for WIP games
by kpars
2014-12-18 10:26:14

Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!