The instructions in the helper library documentation works well for setting up openHAB in Windows when it is not being setup as a service. It is a better solution than modifying environment variables.
I took some time this evening to read the documentation on setting up openHAB to run as a service on Windows. At step 4, include the following in the Java Parameters section in the openHAB2-wrapper.conf…
wrapper.java.additional.20=-Xbootclasspath/a:%OPENHAB_CONF%\automation\jython\jython-standalone-2.7.0.jar
wrapper.java.additional.21=-Dpython.home=%OPENHAB_CONF%\automation\jython
wrapper.java.additional.22=-Dpython.path=%OPENHAB_CONF%\automation\lib\python
I will update the helper library documentation with this information. However, these steps are no longer needed if you use the test Jython bundle or after it is merged.
The helper library documentation is referring to $OPENHAB_HOME\start.bat.