Re: NoClassDefFoundError when call from native side

<[email protected]> Sat, 3 May 2014 15:48:30 +0200 (CEST)
Newsgroups gmane.comp.java.objectweb.asm
Message-ID <[email protected]>
Thank you for the answer.

It is right, there was a problem of binding with native methods when the
methods contains a certain kind of arguments.

As suggested, I tested the code with a simple JNI hello-world example. All
works great with this example now (no more UnsatisfiedLinkError).

Now when I try to run my graphical interface program, I still have the
NoClassDefFoundError, I think this is a classpath problem but I have no idea
how to debug and solve this..

Thank you.

The error:
$ java -Xbootclasspath/a:TypeWrappers.jar -javaagent:agent.jar -jar float.jar
Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize
class sun.java2d.SunGraphics2D
	at sun.java2d.loops.GraphicsPrimitiveMgr.initIDs(Native Method)
	at
sun.java2d.loops.GraphicsPrimitiveMgr.<clinit>(GraphicsPrimitiveMgr.java:56)
	at sun.java2d.loops.Blit.<clinit>(Blit.java:114)
	at sun.java2d.x11.X11SurfaceData.<clinit>(X11SurfaceData.java:245)
	at sun.awt.X11GraphicsConfig.<clinit>(X11GraphicsConfig.java:79)
	at
sun.awt.X11GraphicsDevice.makeDefaultConfiguration(X11GraphicsDevice.java:264)
	at
sun.awt.X11GraphicsDevice.getDefaultConfiguration(X11GraphicsDevice.java:225)
	at java.awt.Window.initGC(Window.java:467)
	at java.awt.Window.init(Window.java:487)
	at java.awt.Window.<init>(Window.java:536)
	at java.awt.Frame.<init>(Frame.java:420)
	at java.awt.Frame.<init>(Frame.java:385)
	at javax.swing.JFrame.<init>(JFrame.java:174)
	at pkgfloat.FloatClass.main(FloatClass.java:38)
message-footer.txt (text/plain, 238 B)
-- 
You receive this message as a subscriber of the [email protected] mailing list.
To unsubscribe: mailto:[email protected]
For general help: mailto:[email protected]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws