写成bat  然后加入到启动里面 或者是autoexec.bat 呵呵 这样行不行

解决方案 »

  1.   

    http://expert.csdn.net/Expert/topic/1054/1054313.xml?temp=.9975702
      

  2.   

    是做成windows系统服务那样的,不需要手动完成!
      

  3.   

    xue_sharp(著名的反派角色)  
    有一个程序是专门把java程序做成服务的。是一个exe文件,加不同的参数。
    tomcat的bin下面的tomcat.exe就是这个文件。其实是javaservice.exe。Tomcat is a JSP engine and was the primary reason that JavaService was created. It is a pure Java application that is ideally used as a service, but comes with no native ability to do so. The following example shows how JavaService can be used to run Tomcat 3.1 as an NT service. The ideas shown here apply to using JavaService with any Java application that needs to run as an NT service. {JDK_HOME} is the location of your JDK and {TOMCAT_HOME} is the location of your Tomcat installation.Copy the JavaService.exe file into the{TOMCAT_HOME}\bin directory as tomcat.exe. 
    Start a command prompt and change to the directory {TOMCAT_HOME}\bin. 
    Run the following command:
    tomcat.exe -install Tomcat
    {JDK_HOME}\jre\bin\{hotspot|server|classic}\jvm.dll
    -Djava.class.path={TOMCAT_HOME}\bin\bootstrap.jar;{TOMCAT_HOME}\bin\servlet.jar;{JDK_HOME}\lib\tools.jar 
    -Dcatalina.home={TOMCAT_HOME}
    -start org.apache.catalina.startup.Bootstrap
    -params start
    -stop org.apache.catalina.startup.Bootstrap
    -params stop
    -out {TOMCAT_HOME}\logs\stdout.log
    -err {TOMCAT_HOME}\logs\stderr.log 
     
      
    注:默认安装为服务是马上启动,并且是自动运行的。
    前一阵正好做这个,所以知道的多点。
      

  4.   

    你可以把他打成可自运行的JAR包呀
      

  5.   

    打成可自运行的JAR包以后放在哪里啊?谢谢啦