首先从这里下载javaservice.exe
http://multiplan.co.uk/software/javaservice/downloads.html
installjboss脚本例子中jboss必须依赖于某种(例如mysql)服务,我这里什么都不用依赖所以更改如下:
intallboss.bat
@echo off
if "%1" == "" goto err
if "%2" == "" goto err
if "%3" == "" goto err
if "%4" == "" goto err
goto ok
:err
echo --------
echo Usage:
echo %0 jdk_home jboss_home (classic/hotspot/server) other_service [-auto / -manual]
echo NOTE: You MAY NOT use spaces in the path names (tell me if you can fix this).
echo JDK 1.3 does not come with hotpot server by default, you must
echo install this separately if you wish to use it.
echo Example: %0 c:/jdk1.3.1_04 c:/jboss hotspot mysql -auto
echo --------
goto eof
:ok
@echo .
@echo .
@echo .
copy JavaService.exe %2/bin/JBossService.exe > nul
%2/bin/JBossService.exe -install JBoss %1/jre/bin/%3/jvm.dll -Djava.class.path=%1/lib/tools.jar;%2/bin/run.jar -start org.jboss.Main -stop org.jboss.Main -method systemExit -out %2/bin/out.log -err %2/bin/err.log -current %2/bin %4
goto eof
:eof
@echo .
@echo .
@echo .
然后在命令行下运行命令安装:
installjboss -java_home_path -jboss_home_path server -auto
java_home_path是你的jdk路径
jboss_home_path是你的jbosshome路径
提示安装成功
用net start jboss试一下,成功!
卸载用这个命令javaservice -uninstall jboss
RJ-LXH(原创)
博客介绍了在Windows系统下安装和卸载JBoss的方法。需先从指定网址下载javaservice.exe,给出了installjboss脚本示例及修改方式,还说明了在命令行运行安装命令的参数含义,安装成功后可用net start jboss测试,卸载使用javaservice -uninstall jboss命令。
118

被折叠的 条评论
为什么被折叠?



