Java Server Wrapper Simple Application

Source: Internet
Author: User

  1. Download Java Server wrapper corresponding version

  2. 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

  3. 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

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: info-contact@alibabacloud.com 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.