JBoss start

  • start JBoss  with a pure JRE installation
             如果只安装了jre6,运行run.bat启动jboss的时候会看到如下错误:
            
               Error: no `server' JVM at `c:\jre1.5.0_07\bin\server\jvm.dll'.
   

修改 run.bat/run.sh :


rem Add -server to the JVM options, if supported
"%JAVA%" -version 2>&1 | findstr /I hotspot > nul
if not errorlevel == 1 (set JAVA_OPTS=%JAVA_OPTS% -server)


to 

rem Add -server to the JVM options, if supported
"%JAVA%"  -server -version 2>&1 | findstr /I hotspot > nul
if not errorlevel == 1 (set JAVA_OPTS=%JAVA_OPTS% -server)

重新运行run.bat, JBoss可以成功启动

ref: https://community.jboss.org/message/198729#198729
  • 将JBoss安装为windows service
使用javaservice将jboss安装为windows service
  1. 将javaservice.exe的路径加入系统环境变量path
  2. 运行install_service.bat
  3. 重启电脑

ref:  https://community.jboss.org/wiki/JavaService

你可能感兴趣的:(java,jvm,windows,jboss,server,service)