可以写入注册表吧!系统启动就运行该程序
解决方案 »
- 哪位兄台使用的是netbeans5.5能帮忙看看吗,谢谢
- 高手请听题:异常提示中的路径a.b.Class与a/b/Class 有什么不同?
- java excel api 问题
- 关于Java和MySql的问题
- 有去过北京达内公司培训的么?来谈谈感想
- 如何不用JVM就能运行程序?
- 怎样得到 本地服务器 上的用户IP??????? 渴望得到解决!!!!!!!!!
- resin 中怎么停止已经启动的线程?
- JAVA中的指针,引用及对象的clone 2
- 请问jdk1.4的文档下载地址?
- www.csdn.com.cn已经开通~目前正在测试阶段~!!
- thinking in java的例子,结果为什么会这样??
请解压开
请把下面的这个文件保存为Jboss_Tomcat_Service.bat当然你可以存为其他的名字
@echo off
if "%1" == "uninstall" goto uninstall
if "%1" == "-uninstall" goto uninstall
if "%1" == "" goto usage
if "%2" == "" goto usage
if "%3" == "" goto usage
if "%1" == "-help" goto usage
if "%1" == "-?" goto usage
if "%1" == "/?" goto usage
:install
JavaService.exe -install JBoss30 %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.txt -current %2\bin
goto eof
:uninstall
JavaService.exe -uninstall JBoss30
goto eof
:usage
echo -------- To Install JBoss 3.0 do
echo Usage: %0 jdk_home jboss_home (classic/hotspot/server)
echo NOTE: You MAY NOT use spaces in the path names. If you know how echo to fix this, please tell me.
echo JDK 1.3 does not come with hotpot server by default,
you must echo install this seperately if you wish to use it.
echo Example: %0 c:\progra~1\jdk c:\progra~1\jboss30 hotspot
echo --------
echo -------- To Uninstall JBoss 3.0 do
echo Usage: %0 uninstall echo --------
goto eof
:eof
存入和JavaService.exe相同的目录,运行下面的
JBoss30 .c:\jdk1.3.1 f:\Jboss_tomcat server
其中c:\jdk1.3.1是java安装的目录
f:\Jboss_tomcat是Jboss安装的目录
server是不变的参数
你将会看到安装成功的命令,你到win2k或NT的Service中看我可以看Jboss3.0的服务,你可以正常的起动它。
安装就说到这里了,接下面我们再说配置如数据库,邮件,JMS,EJB等等