Skip to main content

Error loading a dll in phoneme advanced win32-x86-vc8

3 replies [Last post]
tanax
Offline
Joined: 2007-10-24

Hi, I'm trying to load a dll file in phoneme advanced mr2- b98 for wi32-x86-vc8. And I have this error:

Load library C:\phoneme_b98\cdc\build\win32-x86-vc6\bin\swt-win32-3448.dll
java.lang.UnsatisfiedLinkError: org.eclipse.swt.internal.C.PTR_sizeof()I
at org.eclipse.swt.internal.C.(Unknown Source)
at java.lang.Class.runStaticInitializers(Unknown Source)
at java.lang.Class.runStaticInitializers(Unknown Source)
at org.eclipse.swt.widgets.Display.(Unknown Source)
at java.lang.Class.runStaticInitializers(Unknown Source)
at org.adapta.azahar.Menu.main(Unknown Source)
at sun.misc.CVM.runMain(Unknown Source)

Somebody can help me? Thanks.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
cjplummer
Offline
Joined: 2006-10-16

I don't have the details handy, but I believe the problem has to do with calling conventions. Basically you need to compile your JNI library using the cdc version of jni.h in order to get the right calling conventions used.

Chris

tanax
Offline
Joined: 2007-10-24

Hi, I build a phoneme cdc version, I use this [i]"make J2ME_CLASSLIB=cdc"[/i] to get it, but now I haver other error, when I try to run the application:

java.lang.NoClassDefFoundError: java/util/EventListener
at java.lang.Class.loadSuperClasses(Unknown Source)
at sun.misc.Launcher$AppClassLoader.defineClassPrivate(Unknown Source)
at sun.misc.Launcher$AppClassLoader.access$500(Unknown Source)
at sun.misc.Launcher$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Unknown Source)
at java.security.AccessController.doPrivileged(Unknown Source)
at sun.misc.Launcher$AppClassLoader.doClassFind(Unknown Source)
at sun.misc.Launcher$AppClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.loadSuperClasses(Unknown Source)
at sun.misc.Launcher$AppClassLoader.defineClassPrivate(Unknown Source)
at sun.misc.Launcher$AppClassLoader.access$500(Unknown Source)
at sun.misc.Launcher$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Unknown Source)
at java.security.AccessController.doPrivileged(Unknown Source)
at sun.misc.Launcher$AppClassLoader.doClassFind(Unknown Source)
at sun.misc.Launcher$AppClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.getMethod0(Native Method)
at java.lang.Class.getMethod(Unknown Source)
at sun.misc.CVM.runMain(Unknown Source)

Nax

Message was edited by: tanax

cjplummer
Offline
Joined: 2006-10-16

My guess would be that you are using something that requires AWT, and you are not including basis or personal profile in your build.