Hello.
First of all sorry for my bad english.
Second. I haven't idea of Java, but I'm searching documentation on google and forums.
I'm trying to create a library in eclipse to print image on esc /p printers. I found code to do this in java, and I used Eclipse to generate jar and javadoc.
I import the jar into b4a, and i can access to procedures of the library. But When I run b4a code i have the next error:
PackageAdded: package:b4a.example
main_globals (java line: 273)
java.lang.NoClassDefFoundError: sico.PosPrinter.PosPrinterClass
at b4a.example.main._globals(main.java:273)
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:605)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4424)
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:791)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:558)
at dalvik.system.NativeStart.main(Native Method)
I read a lot in google, but i don't undestand.
Here are the library.
In the zip isn't android.jar, B4AShared.jar and Core.jar, that i have in a libs folder inside Posprinter folder, because the forun don't let me upload files up to 512kb.
Can you help me?
Thanks.
First of all sorry for my bad english.
Second. I haven't idea of Java, but I'm searching documentation on google and forums.
I'm trying to create a library in eclipse to print image on esc /p printers. I found code to do this in java, and I used Eclipse to generate jar and javadoc.
I import the jar into b4a, and i can access to procedures of the library. But When I run b4a code i have the next error:
PackageAdded: package:b4a.example
main_globals (java line: 273)
java.lang.NoClassDefFoundError: sico.PosPrinter.PosPrinterClass
at b4a.example.main._globals(main.java:273)
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:605)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4424)
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:791)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:558)
at dalvik.system.NativeStart.main(Native Method)
I read a lot in google, but i don't undestand.
Here are the library.
In the zip isn't android.jar, B4AShared.jar and Core.jar, that i have in a libs folder inside Posprinter folder, because the forun don't let me upload files up to 512kb.
Can you help me?
Thanks.