Open dacolgit opened 8 years ago
I think this is impossible. JNA depends on JNI functions, and J2ME has no support for JNI.
Sorry, disregard - README states that it has JavaME support.
The class version error suggests that your IDE project is trying to compile against a version of JavaME that is too old, though - that's all I know so hopefully someone more knowledgeable comes along.
I created a wrapper of a C library with JNA and all is working. Now I'm trying to use the wrapper in a JavaMe project, but with no success. I.m using javaME SDK 8.2 and JNA 4.2.1. In NetBeans 8,1 I added JNA-4.2.1.jar and my wrapper to a JavaME project,just as I did with a Java project. I can build it, but when I try to run the project on the emulator I get the following error (the line where I have the error is where I try to access some JNA code):
`Starting emulator in execution mode Trying starting IMlet... TRACE:, startApp threw an Exception
java.lang.UnsupportedClassVersionError
Would anyone have an idea about what's happening ? Thanks