Hi. I have this code in an non-ui app:
The problem is that my app is working on the pc I developed it, but not on another pc ( same Windows 8.1 version on both, updated etc)
The error:
If i remove the library and all references, my app is working just fine on the other PC as well.
I tried adding #AdditionalJar: jna-4.1.0 but still no go.
I don't really know what`s happening. If someone can help me ,thank you.
B4X:
Sub Process_Globals
Private cl As ColorLogger
End Sub
Sub AppStart (Args() As String)
'code
cl.Initialize("green", "black", False, "cl").ColorLogLine("Starting program", "", "")
'some code
cl.ColorLogLine("SSll started", "aqua", "")
End Sub
The problem is that my app is working on the pc I developed it, but not on another pc ( same Windows 8.1 version on both, updated etc)
The error:
B4X:
main._appstart (java line: 81)
java.lang.UnsatisfiedLinkError: The specified module could not be found.
at com.sun.jna.Native.open(Native Method)
at com.sun.jna.Native.open(Native.java:1759)
at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:260)
at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:398)
at com.sun.jna.Library$Handler.<init>(Library.java:147)
at com.sun.jna.Native.loadLibrary(Native.java:412)
at com.sun.jna.Native.loadLibrary(Native.java:391)
at butt.droid.colorlogger.ColorLogger$CLog.<clinit>(ColorLogger.java:44)
at butt.droid.colorlogger.ColorLogger.Initialize(ColorLogger.java:91)
at b4j.example.main._appstart(main.java:81)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:90)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:77)
at b4j.example.main.main(main.java:29)
If i remove the library and all references, my app is working just fine on the other PC as well.
I tried adding #AdditionalJar: jna-4.1.0 but still no go.
I don't really know what`s happening. If someone can help me ,thank you.