Glassfish server batch code startup and Shutdown

Source: Internet
Author: User
Tags glassfish

 1. Java environment variable settings

Assume that the JDK installation directory is c: \ Program Files \ Java \ jdk1.6.0 _ 25

1. Set java_home to c: \ Program Files \ Java \ jdk1.6.0 _ 25.

2. Set the PATH value to % java_home % \ bin.

3. Set the classpath value to.; % java_home % \ Lib \ DT. jar; % java_home % \ Lib \ tools. Jar


 2. Start glassfish

Glassfish- is the glassfosh server folder

1. First start glassfish- \ javadb \ bin \ startnetworkserver. bat

2. glassfish- \ glassfish \ bin \ startserv. bat

After the preceding two steps, the server is started.


To disable the glassfish server, follow these steps:

1. First close glassfish- \ glassfish \ bin \ stopserv. bat

2, and then close the glassfish- \ javadb \ bin \ stopnetworkserver. bat

After the two steps above, the server is shut down.


Start the batchcompute code for glassfish:

Glassfish_home is the installation directory of the glassfish server. Choose my computer> advanced> environment variable,

E: \ glassfish service \ glassfish-3.1.1

@echo start glassfis ....@echo OS  %OS%@echo JAVA %JAVA_HOME%@echo GLASSFISH %GLASSFISH_HOME%@echo  startNetworkServer...@start /b  %GLASSFISH_HOME%\javadb\bin\startNetworkServer.bat @echo NetworkServer started@echo start glassfish server.....@call %GLASSFISH_HOME%\glassfish\bin\startserv.bat exit

Disable the batchcompute code of glassfish:

@echo stop glassfis ...@call %GLASSFISH_HOME%\glassfish\bin\stopserv.bat@call %GLASSFISH_HOME%\javadb\bin\stopNetworkServer.batexit

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.