Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (495)
Games in Android Showcase (114)
games submitted by our members
Games in WIP (563)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Netbeans with JOGL won't draw in designer + error  (Read 3322 times)
0 Members and 1 Guest are viewing this topic.
Offline 100DashSix

Junior Newbie





« Posted 2007-09-26 01:49:18 »

When I try to add a GLJPanel in Netbeans 6.0 Beta 1 w/ JOGL something strange happens with the window rendering: I cannot see an object to place (no black GLJpanel or GLCanvas square like the screenshots show), and if I add it in and switch from designer view to source view and back again, the window will not redraw and things will look all messed up until I remove the object.

I also can view the following exception (trimmed):
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
java.lang.NoClassDefFoundError: Could not initialize class com.sun.opengl.impl.windows.WindowsGLDrawableFactory
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Class.java:169)
   at javax.media.opengl.GLDrawableFactory.getFactory(GLDrawableFactory.java:106)
...

   at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:679)
   at javax.swing.RepaintManager.seqPaintDirtyRegions(RepaintManager.java:659)
[catch at]
...
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)


I can compile and run the demos, however. I've installed it on two computers and followed the directions, and still have this problem.

Help!
Thanks.

Edit: Another error (perhaps more telling):
1  
2  
3  
4  
javax.media.opengl.GLException: Unable to create OpenGL context for device context 0x490109d2
   at com.sun.opengl.impl.windows.WindowsGLContext.create(WindowsGLContext.java:122)
   at com.sun.opengl.impl.windows.WindowsGLContext.makeCurrentImpl(WindowsGLContext.java:150)
...


And the Tools/OpenGL Capabilities dialog has no information in it.

Further Edit: Since the problem seemed to be the JVM Netbeans is using couldn't find the methods supplied in the JAR or perhaps DLL files, I stuck them all over the place in my JDK folders and now things seem to work. Odd, that.
Offline cylab

JGO Ninja


Medals: 49



« Reply #1 - Posted 2007-09-26 08:57:36 »

I can compile and run the demos, however. I've installed it on two computers and followed the directions, and still have this problem.

Thanks for the report. We will have a look this weekend. Could you please give some more information of your PCs OS, GFX card, driver(-version)  and JDK(-version)?

Further Edit: Since the problem seemed to be the JVM Netbeans is using couldn't find the methods supplied in the JAR or perhaps DLL files, I stuck them all over the place in my JDK folders and now things seem to work. Odd, that.

Hmm, you should avoid doing this, since it might break WebStart deployment of other JOGL jars and can cause strange behaviours under some circumstances. You can keep it this way for now, but be aware, that this is problematic and the spread out JARs and DLLs need to be deleted again, when the error is tracked down.


Mathias - I Know What [you] Did Last Summer!
Offline 100DashSix

Junior Newbie





« Reply #2 - Posted 2007-09-26 20:17:48 »

Quote
Thanks for the report. We will have a look this weekend. Could you please give some more information of your PCs OS, GFX card, driver(-version)  and JDK(-version)?

Sure. I tested it on Windows XP SP2 and Vista Ultimate. Nvidia GeForce 7800 GS and Intel Media Accelerator 950 (some integrated card). JDK is 1.6.0.

I'm not sure of the JOGL version; it was the one obtained by getting the download manager from https://netbeans-opengl-pack.dev.java.net/, and I suppose must be whatever version it currently supplies.

Also, the problem seems to have re-manifested itself
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline cylab

JGO Ninja


Medals: 49



« Reply #3 - Posted 2007-09-26 21:40:34 »

Intel cards are known to have issues with OpenGL and JOGL. I suspect there might be problems with the creation of pbuffers, which were needed in the past to set up the internal GL context in Netbeans - I don't know if this is still the case. If so, this might be related to your problem.

Mathias - I Know What [you] Did Last Summer!
Offline 100DashSix

Junior Newbie





« Reply #4 - Posted 2007-09-26 23:08:55 »

Hm, I suppose it's possible, but the fact that I had the same problem on the Nvidia card seems to indicate to me that it's something else. I kept getting NoClassDefErrors, which made me think that Netbeans wasn't giving Java the proper JOGL/OpenGL libraries. And it went away for a while when I put DLLs in directories in the JDK, though perhaps a combination of things fixed it, as it now doesn't work again..

When you guys install the Netbeans beta and the update manager, all you have to do is download the relevant OpenGL plugins and everything works?
Offline bienator

Senior Member




OutOfCoffeeException


« Reply #5 - Posted 2007-09-27 00:18:31 »

Hi 100DashSix,

When you guys install the Netbeans beta and the update manager, all you have to do is download the relevant OpenGL plugins and everything works?
Exactly, you don't need anything else.

This bug has been fixed in svn but the fixed module isn't yet available via Update Center. I will upload the new build tomorrow.

Offline 100DashSix

Junior Newbie





« Reply #6 - Posted 2007-09-27 03:14:44 »

Wow, that's good service! I'll try updating tomorrow, then. Thanks.
Offline bienator

Senior Member




OutOfCoffeeException


« Reply #7 - Posted 2007-09-27 13:43:51 »

The new build is now available. This is no release build but the first release is coming soon Wink

This build adds an fallback-mode for systems without pbuffer support and an improved GLSL editor (with navigator, code folding, better syntax coloring, auto completion and other gimmicks). It also contains around 100 ready to run JOGL demo projects.

known Bug:
please don't open the GL Capabilities Viewer while you are in the Form Designer (Matisse) with an GLCanvas or GLJPanel in design mode. The GL Component in the Form Designer will crash.


Tell us if its working

-bienator

Offline 100DashSix

Junior Newbie





« Reply #8 - Posted 2007-09-28 01:47:50 »

I've updated and everything seems to now work fine! Good Show.

Now to get down to the issue of actually using OpenGL...
Pages: [1]
  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.

Dwinin (26 views)
2014-09-12 09:08:26

Norakomi (57 views)
2014-09-10 13:57:51

TehJavaDev (71 views)
2014-09-10 06:39:09

Tekkerue (37 views)
2014-09-09 02:24:56

mitcheeb (57 views)
2014-09-08 06:06:29

BurntPizza (41 views)
2014-09-07 01:13:42

Longarmx (27 views)
2014-09-07 01:12:14

Longarmx (34 views)
2014-09-07 01:11:22

Longarmx (34 views)
2014-09-07 01:10:19

mitcheeb (40 views)
2014-09-04 23:08:59
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

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
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!