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-3.1.2.2 is the glassfosh server folder
1. First start glassfish-3.1.2.2 \ javadb \ bin \ startnetworkserver. bat
2. glassfish-3.1.2.2 \ 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-3.1.2.2 \ glassfish \ bin \ stopserv. bat
2, and then close the glassfish-3.1.2.2 \ 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