JSR223 Jython does not recognize scripts

Hi All,

Here I am again. I have installed Jython 2.7.0 in openHAB 1.8.3 as the descriptions suggest. Here is my effective java invocation:
java -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=8001,server=y,suspend=n -Dosgi.clean=true -Declipse.ignoreApp=true -Dosgi.noShutdown=true -Djetty.port=8080 -Djetty.port.ssl=8443 -Djetty.home=. -Dlogback.configurationFile=configurations/logback_debug.xml -Dfelix.fileinstall.dir=addons -Dfelix.fileinstall.filter=.*\.jar -Djava.library.path=lib -Dorg.quartz.properties=./etc/quartz.properties -Djava.security.auth.login.config=./etc/login.conf -Dequinox.ds.block_timeout=240000 -Dequinox.scr.waitTimeOnBlock=60000 -Dfelix.fileinstall.active.level=4 -Djava.awt.headless=true -Dpython.home=/opt/jython -Dpython.path=configurations/scripts/lib -cp /opt/jython/jython.jar -jar server/plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar -console

In logs I see the following:
11:55:32.593 [DEBUG] [.r.internal.RuleModelActivator:42 ] - Registered 'rules' configuration parser 11:55:32.603 [DEBUG] [m.r.internal.engine.RuleEngine:77 ] - Started rule engine 11:55:36.361 [DEBUG] [j.internal.Jsr223CoreActivator:33 ] - Registered 'jsr223' scripting-engine 11:55:36.363 [DEBUG] [j.internal.engine.Jsr223Engine:96 ] - itemRegistry set 11:55:36.364 [DEBUG] [j.internal.engine.Jsr223Engine:68 ] - activate() 11:55:36.367 [INFO ] [o.o.c.j.i.e.s.ScriptManager :58 ] - Available engines: 11:55:36.372 [INFO ] [o.o.c.j.i.e.s.ScriptManager :60 ] - Oracle Nashorn 11:55:36.373 [INFO ] [o.c.j.i.e.scriptmanager.Script:84 ] - Loading Script beispiel.py 11:55:36.375 [WARN ] [o.o.c.j.i.e.s.ScriptManager :92 ] - No Engine found for File: beispiel.py 11:55:36.375 [INFO ] [o.c.j.i.e.scriptmanager.Script:84 ] - Loading Script jsr223_demo.py 11:55:36.381 [WARN ] [o.o.c.j.i.e.s.ScriptManager :92 ] - No Engine found for File: jsr223_demo.py 11:55:36.388 [DEBUG] [j.internal.engine.Jsr223Engine:78 ] - Started jsr223 engine 11:55:36.479 [INFO ] [.o.u.w.i.servlet.WebAppServlet:80 ] - Started Classic UI at /classicui/openhab.app 11:55:36.586 [DEBUG] [.b.http.internal.HttpActivator:34 ] - HTTP binding has been started. 11:55:36.643 [INFO ] [.service.AbstractActiveService:169 ] - HTTP Refresh Service has been started

Appearantly the problem is jsr223 engine gets started too late.
I have queryed some start levels:
org.openhab.core.jsr223_1.8.3 [221] is level 1 org.openhab.model.script_1.8.3 [208] is level 4

Have you any idea?

thank you in advance, best regards: Balazs

OH is not finding your jython JAR file. The Jython engine should be listed after the “Available engines:” log line. You only have Nashorn (Javascript).

Thank you for the answer. The java option -jar hided the -cp, and I did not know this phenomenon,