Download Java Server wrapper corresponding version
Create the Wrapper-home folder and under it create individual subfolders at the Java Server Wrapper directory level, as follows (the. bat file can be found under src/bin/in the compressed package and the suffix. In removed):
wrapper-home/
bin/
./app.bat
./installapp-nt.bat
./uninstallapp-nt.bat
./wrapper.exe
./wrapperw.exe
conf/
./wrapper.conf
./wrapper-license.conf
lib/
./wrapper.dll
./wrapper.jar
./wrappertest.jar
./helloworld.jar (self-defined jar)
./other.jar (Other referenced jars)
logs/
./wrapper.log
Configuring the Conf/wrapper.conf File
3.1 Configuring Java_home
Wrapper Java.command=%java_home%/bin/java
3.2 Configuring Classpath
wrapper.java.classpath.1=. /lib/wrapper.jar
Wrapper.java.classpath.2=. /lib/wrappertest.jar
wrapper.java.classpath.3=. /lib/other.jar
wrapper.java.classpath.4=. /lib/helloworld.jar
3.3 Configuring LibraryPath
wrapper.java.library.path.1=. /lib
3.4 Configuring parameter
Wrapper.app.parameter.1=helloworld
4. Implementation
4.1 Performing Bin/app.bat parsing error causes, error logging in Wrapper.log
4.2 Execute Bin/installapp-nt.bat to add net service
4.3 Execute bin/uninstallapp-nt.bat To uninstall the net service
This article from "Javastudyroom" blog, reproduced please contact the author!
Java Server Wrapper Simple Application