::BATCH file to windows set BATDIR=%~dp0 set LIBDIR="%BATDIR%..\build\libs-all" java -Dlogback.configurationFile=logback.xml -Djava.ext.dirs=%LIBDIR% com.beanit.iec61850bean.app.ConsoleServer %*