Hi,
thanks for this library.
Tried to use on windows 8.1 (no phyton installed) and java 1.8.0_66 but receive error when running the first example.
Have copied jpython.jar & xml and jython-standalone-2.7.0 (37mb) to the B4J additional libraries folder.
Any hints how to resolve? Is a Phyton installation required (v2 or 3?)
Code:
...
' ******* using script file in objects/scripts/ *******
Log("Init Invocable")
py.InitInvocable("testscript1.py")
Log("Invoke Test1")
py.Invoke("test1",Array As String("mary had a little lamb it's fleece was white as snow"))
...
Code:
Program started.
Init Invocable
main._appstart (java line: 60)
java.lang.NullPointerException
at jPython.jPython.InitInvocable(jPython.java:34)
at b4j.example.main._appstart(main.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:93)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:84)
at b4j.example.main.start(main.java:36)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$162(LauncherImpl.java:863)
at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$175(PlatformImpl.java:326)
at com.sun.javafx.application.PlatformImpl.lambda$null$173(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$174(PlatformImpl.java:294)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.java:191)
at java.lang.Thread.run(Thread.java:745)