openhab-scripters / openhab-helper-libraries

Scripts and modules for use with openHAB
Eclipse Public License 1.0
88 stars 69 forks source link

Under Windows 10 jython does not load #297

Closed kovacsi2899 closed 4 years ago

kovacsi2899 commented 4 years ago

I set up everything based on instructions. Javascript rules are working, but Groovy and Python rules are not loading with following error message in openhab.log :

ScriptEngine for py not available

last 3 lines are setnev.bat: set JAVA=%JAVA_HOME%\bin\java set EXTRA_JAVA_OPTS=-Xbootclasspath/a:C:\openhab2\conf\automation\jython\jython-standalone-2.7.0.jar -Dpython.home=C:\openhab2\conf\automation\jython -Dpython.path=C:\openhab2\conf\automation\lib\python :Check_JAVA_END

I have also added as windows enviroment variable, but it does not work. I think problem is that jython-standalone-2.7.0.jar is not loaded or rule engine can't access.

here is log of ruleengine startup: OH_Restart_Ruleengine.log

5iver commented 4 years ago

If this is an issue, it is not caused by the helper libraries. Chances are that you have something misconfigured. Please create a post in the forum tagged with Jython and or jsr223 and I will help over there.

kovacsi2899 commented 4 years ago

Thanks! I'm sure as well, that it is a configuration problem, as java rules are working, where jython standalone file is not required.