Eclipse/JOGL error question

Hi all,
I tried my luck on the newbie section, but to no avail.
So thought I’d try here, sorry if this is wrong section, but it’s about getting JOGL to work…
I have had jogl workin with Eclipse for some time, then out of the blue I started getting errors…

net.java.games.jogl.GLException: Unable to create OpenGL context
at net.java.games.jogl.impl.windows.WindowsGLContext.choosePixelFormatAndCreateContext(WindowsGLContext.java:298)
at net.java.games.jogl.impl.windows.WindowsOnscreenGLContext.create(WindowsOnscreenGLContext.java:204)
at net.java.games.jogl.impl.windows.WindowsGLContext.makeCurrent(WindowsGLContext.java:117)
at net.java.games.jogl.impl.windows.WindowsOnscreenGLContext.makeCurrent(WindowsOnscreenGLContext.java:110)
at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:162)
at net.java.games.jogl.GLCanvas.reshape(GLCanvas.java:105)
at java.awt.Component.setBounds(Component.java:1664)
at java.awt.BorderLayout.layoutContainer(BorderLayout.java:691)
at java.awt.Container.layout(Container.java:1020)
at java.awt.Container.doLayout(Container.java:1010)
at java.awt.Container.validateTree(Container.java:1092)
at java.awt.Container.validate(Container.java:1067)
at java.awt.Window.show(Window.java:461)
at Lesson02.main(Lesson02.java:147)

I am not sure what happened. I’ve tried reinstalling the jdk/jre, etc. but nothing seems to work.

Any idea where I need to be focussing on to fix this? Is it a jdk/jre problem, or a card/driver problem? I do not know what has changed on my computer that would make it stop working all of the sudden.

(note: This is on my work computer, so some update could have been pushed to it that broke it, but not sure where to look to fix it).

Thanks a LOT in advance, this has been driving me nuts!!!

I’m not certain for jogl (im doing in lwjgl), but I have experience with eclipse… So, this is some lesson2 you are trying to run. Look at the line 147, what is it? Is it maybe first call to jogl? Then probably you don’t have a good defined path to that library? In eclipse, right click on your project —> Properties–>Java build path —> Libraries. That is where you should have all external libs for compile. Check for jogl there, if it’s missing or it has ill defined path, get it right.

This is something i’ve seen irregularly over the past couple of years. On the odd occasion it happens under windows. Sometimes under linux it happens every time, until I restart eclipse or even reboot, but then it’s ok. Quite strange, but thankfully not too regular these days.

Does the same problem happen if you run say the JOGL demos outside of the IDE?

How does Eclipse launch the target process? I’m assuming it’s in a different JVM. In that case it’s hard to see how the IDE could be interfering.

Try locating, deleting and reinstalling all jogl.jar and jogl.dll files.