Only execute "if not errorlevel == 1 (set JAVA_OPTS=%JAVA_OPTS% -server)" in DOS is ok. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104612#4104612 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104612