Java Question Wrapper library Error

ebalvis

Member
Licensed User
Longtime User
I am making a library for use printers star.
When I try to run the application I get the following error and the application closes.

main_globals (java line: 324)
java.lang.VerifyError: innebo/ioport/printer/IOPortLib
at b4a.example.main._globals(main.java:324)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
at b4a.example.main.initializeGlobals(main.java:230)
at b4a.example.main.afterFirstLayout(main.java:86)
at b4a.example.main.access$100(main.java:16)
at b4a.example.main$WaitForLayout.run(main.java:74)
at android.os.Handler.handleCallback(Handler.java:615)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4898)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1006)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:773)
at dalvik.system.NativeStart.main(Native Method)
 

Attachments

  • StartIOPort.zip
    54.9 KB · Views: 306
  • test.zip
    375.8 KB · Views: 285

agraham

Expert
Licensed User
Longtime User
Your classpath shows that you have installed the Android SDK in Program Files. This is a bad idea. Not only is Program Files a protected folder the folder name has spaces in it which confuses, or at least used to confuse, some of the SDK tools. I would reinstall it to somewhere unprotected like D:\Android and see if the problem goes away.

I don't see an xml file for StarIOPort.

I assume you want to reference StarIOPort3.1.jar in your project. In which case you are missing an @DependsOn(values = { "StarIOPort3.1" }) attribute in your source code.
 

ebalvis

Member
Licensed User
Longtime User
failure resolved

Thank you very much, it worked perfectly,simply changing the path of sdk.
 
Top