Hello
I’m trying to get Jython running on my OpenaHAB-Installation.
I installed OpenHAB on my Windows Laptop and now I’d like to set the EXTRA_JAVA_OPTS in my start.bat accordingly, but the Getting Started Section only explains how to set this variable in the start.sh:
Good question… I haven’t tried. Based on this info, it looks to me (untested and a bit of a guess) that you would do something like this (but with the proper paths for Windows)…
SET EXTRA_JAVA_OPTS=-Xbootclasspath/a:/opt/openhab2/conf/automation/jython/jython-standalone-2.7.0.jar -Dpython.home=/opt/openhab2/conf/automation/jython -Dpython.path=/opt/openhab2/conf/automation/lib/python
If this doesn’t work, you’ll need to manually set it as an environment variable. Let me know what you end up with and I’ll update the doc!
@Dim knows his way around a linux system very well, if my memory’s correct, he’s also sharp on Windows as well. If you run into issues, maybe he can help with setting the proper path.
The ONLY place you could set the EXTRA_JAVA_OPTS was in setenv.bat, since that script was setting it but not appending any previously set value to the new one. The best place is now start.bat…