Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF3D » LWJGL Test View says NoClassDefFoundError: Could not initialize class org.lwjgl.opengl.GLContext
LWJGL Test View says NoClassDefFoundError: Could not initialize class org.lwjgl.opengl.GLContext [message #636943] Wed, 03 November 2010 13:32 Go to next message
Carlo Salinari is currently offline Carlo SalinariFriend
Messages: 66
Registered: October 2010
Member
Hi,

I've checked out the sources of gef3d and installed the lwjgl plug-in as
explained here:
http://wiki.eclipse.org/GEF3D_Installation
http://www.fernuni-hagen.de/se/personen/pilgrim/gef3d/lwjgl. html

but if I try to open the LWJGL Test View I get this:
java.lang.NoClassDefFoundError: Could not initialize class
org.lwjgl.opengl.GLContext
at
org.lwjgl.testview.LWJGLTestView.createPartControl(LWJGLTest View.java:87)
....


Any suggestions?

Carlo
Re: LWJGL Test View says NoClassDefFoundError: Could not initialize class org.lwjgl.opengl.GLContext [message #637043 is a reply to message #636943] Wed, 03 November 2010 21:55 Go to previous messageGo to next message
Jens von Pilgrim is currently offline Jens von PilgrimFriend
Messages: 295
Registered: July 2009
Senior Member
On 03.11.10 14:32, Carlo Salinari wrote:
> but if I try to open the LWJGL Test View I get this:
> java.lang.NoClassDefFoundError: Could not initialize class
> org.lwjgl.opengl.GLContext
> at
> org.lwjgl.testview.LWJGLTestView.createPartControl(LWJGLTest View.java:87)
> ...

Huh... that's weird. Can you check your installation? There should have
been four lwjgl plugins installed on our system (in the plugins folder):
- org.lwjgl.doc
- org.lwjgl.source
- org.lwjgl.test
- org.lwjgl
The first two are not important, and the third is obviously installed as
it contains the test view (and you obviously see the menu entry). Is the
last one installed? Does the folder (org.lwjgl_2.2.1) contain
- lwjgl.jar
- lwjgl_util.jar
and a folder called "native" with the native libraries?

Cheers,
Jens
Re: LWJGL Test View says NoClassDefFoundError: Could not initialize class org.lwjgl.opengl.GLContext [message #637180 is a reply to message #637043] Thu, 04 November 2010 12:33 Go to previous messageGo to next message
Carlo Salinari is currently offline Carlo SalinariFriend
Messages: 66
Registered: October 2010
Member
This is a multi-part message in MIME format.
--------------030100070503000304080909
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit

On 11/3/2010 10:55 PM, Jens v.P. wrote:
> On 03.11.10 14:32, Carlo Salinari wrote:
>> but if I try to open the LWJGL Test View I get this:
>> java.lang.NoClassDefFoundError: Could not initialize class
>> org.lwjgl.opengl.GLContext
>> at
>> org.lwjgl.testview.LWJGLTestView.createPartControl(LWJGLTest View.java:87)
>> ...
>
> Huh... that's weird. Can you check your installation? There should have
> been four lwjgl plugins installed on our system (in the plugins folder):
> - org.lwjgl.doc
> - org.lwjgl.source
> - org.lwjgl.test
> - org.lwjgl
> The first two are not important, and the third is obviously installed as
> it contains the test view (and you obviously see the menu entry). Is the
> last one installed? Does the folder (org.lwjgl_2.2.1) contain
> - lwjgl.jar
> - lwjgl_util.jar
> and a folder called "native" with the native libraries?
>
> Cheers,
> Jens

Everything seems in the right place.

I tried reinstalling the plugin, and now I get a different error:
java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path
(see attachment)

I downloaded a fresh copy of eclipse and tried installing the plugin
there, with the same result.

I'm running Eclipse Helios 3.6.1 under Window 7 64 bit
java version "1.6.0_22"
Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03, mixed mode)

Any idea?

Carlo

--------------030100070503000304080909
Content-Type: text/plain;
name="UnsatisfiedLinkError.txt"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="UnsatisfiedLinkError.txt"

amF2YS5sYW5nLlVuc2F0aXNmaWVkTGlua0Vycm9yOiBubyBsd2pnbCBpbiBq YXZhLmxpYnJh
cnkucGF0aA0KCWF0IGphdmEubGFuZy5DbGFzc0xvYWRlci5sb2FkTGlicmFy eShVbmtub3du
IFNvdXJjZSkNCglhdCBqYXZhLmxhbmcuUnVudGltZS5sb2FkTGlicmFyeTAo VW5rbm93biBT
b3VyY2UpDQoJYXQgamF2Y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bm94LmxhdW5jaGVyLk1haW4uaW52b2tlRnJhbWV3b3JrKE1haW4uamF2 YTo2MTkpDQoJ
YXQgb3JnLmVjbGlwc2UuZXF1aW5veC5sYXVuY2hlci5NYWluLmJhc2ljUnVu KE1haW4uamF2
YTo1NzQpDQoJYXQgb3JnLmVjbGlwc2UuZXF1aW5veC5sYXVuY2hlci5NYWlu LnJ1bihNYWlu
LmphdmE6MTQwNykNCglhdCBvcmcuZWNsaXBzZS5lcXVpbm94LmxhdW5jaGVy Lk1haW4ubWFp
bihNYWluLmphdmE6MTM4Myk=
--------------030100070503000304080909--
Re: LWJGL Test View says NoClassDefFoundError: Could not initialize class org.lwjgl.opengl.GLContext [message #637306 is a reply to message #637180] Thu, 04 November 2010 23:17 Go to previous messageGo to next message
Jens von Pilgrim is currently offline Jens von PilgrimFriend
Messages: 295
Registered: July 2009
Senior Member
Carlo,

On 04.11.10 13:33, Carlo Salinari wrote:
> I'm running Eclipse Helios 3.6.1 under Window 7 64 bit
> java version "1.6.0_22"
> Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
> Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03, mixed mode)

GEF3D does not work with Eclipse 3.6 yet, you have to use Eclispe 3.5
instead.

However, this does not explain why the lwjgl (native) library isn't
found. I would guess that it's the 64 bit causing the problems. I will
have a look at this. I figure that there may be a problem loading the 64
bit version of lwjgl. Although this would probably be my own code (which
I donated to lwjgl.org) causing this problem (I assume I'd simply
forgotten win 64 bit), I do not have access to the lwjgl update site.
Thus I cannot fix the bug, and as there is nobody at lwjgl maintaining
the update site, I'm afraid in that case this cannot be fixed. As I
wrote in the previous thread, I've planned to update to the latest lwjgl
version, and I maybe figure out a way of how to fix the problems with
the update site. Stay tuned, I will write about that either in the GEF3D
blog and/or in this newsgroup.

Cheers,
Jens
Re: LWJGL Test View says NoClassDefFoundError: Could not initialize class org.lwjgl.opengl.GLContext [message #637548 is a reply to message #637306] Sat, 06 November 2010 14:36 Go to previous message
Carlo Salinari is currently offline Carlo SalinariFriend
Messages: 66
Registered: October 2010
Member
On 11/5/2010 12:17 AM, Jens v.P. wrote:
> Carlo,
>
> On 04.11.10 13:33, Carlo Salinari wrote:
>> I'm running Eclipse Helios 3.6.1 under Window 7 64 bit
>> java version "1.6.0_22"
>> Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
>> Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03, mixed mode)
>
> GEF3D does not work with Eclipse 3.6 yet, you have to use Eclispe 3.5
> instead.

uh ok, I misinterpreted the requirement as > 3.5.

> However, this does not explain why the lwjgl (native) library isn't
> found. I would guess that it's the 64 bit causing the problems. I will
> have a look at this. I figure that there may be a problem loading the 64
> bit version of lwjgl. [...]

indeed. I've tried with Galileo-32 bit in the same 64 bit system and got
the same error:
java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path

> I donated to lwjgl.org) causing this problem (I assume I'd simply
> forgotten win 64 bit), I do not have access to the lwjgl update site.
> Thus I cannot fix the bug, and as there is nobody at lwjgl maintaining
> the update site, I'm afraid in that case this cannot be fixed. As I
> wrote in the previous thread, I've planned to update to the latest lwjgl
> version, and I maybe figure out a way of how to fix the problems with
> the update site. Stay tuned, I will write about that either in the GEF3D
> blog and/or in this newsgroup.

ok, thanks.

Carlo
Previous Topic:EXCEPTION_ACCESS_VIOLATION is thrown when i opened 3d editor
Next Topic: "org.eclipse.gef3d.examples.graph" 3D Editor Error
Goto Forum:
  


Current Time: Mon Dec 22 17:10:32 GMT 2014

Powered by FUDForum. Page generated in 0.04833 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software