Can't get Groovy script to work with Windows

Hello,

i try a lot of thing, but cant get it to work.
this is the line i change in openhab.bat

java -Dorg.osgi.framework.bundle.parent=ext
-Dgroovy.home="C:\groovy-2.4.5" 
 -Dosgi.clean=true
 -Declipse.ignoreApp=true
 -Dosgi.noShutdown=true
 -Djetty.port=%HTTP_PORT%
 -Djetty.port.ssl=%HTTPS_PORT% 
 -Djetty.home=. 
 -Dlogback.configurationFile=configurations/logback.xml
 -Dfelix.fileinstall.dir=addons
 -Dfelix.fileinstall.filter=.*\\.jar
 -Djava.library.path=lib 
 -Djava.security.auth.login.config=./etc/login.conf
 -Dorg.quartz.properties=./etc/quartz.properties
 -Dequinox.ds.block_timeout=240000
 -Dequinox.scr.waitTimeOnBlock=60000
 -Djava.awt.headless=true
 -Dfelix.fileinstall.active.level=4 
-cp "c:\openhab\lib\groovy-2.4.5.jar;%EQUINOXJAR%" org.eclipse.equinox.launcher.Main %* 
 -console 

ps:enter have been add for readability, but its on one line in the file

any idea what ive done wrong?

Thanks!

Found IT!!!

-cp c:\openhab\lib*;%EQUINOXJAR% org.eclipse.equinox.launcher.Main

no " needed and i used the wild card *

I think i will post something in the wiki about it. I am sure their is other people using windows!

1 Like