Start scripts webswing.bat and are included in Webswing distribution. These scripts may need to be adapted to point to the right Java installation and to configure other custom options.

Starting Webswing with option -h will print out help with list of all possible option.

c:\webswing>java -jar webswing-server.war -h

You can define the following options in start scripts:

Option Description Default value
-c Configuration file name. <webswing-server.war path>/webswing.config
-d Create new temp folder for every Webswing instance false
-h Local interface address where the web server will listen. localhost
-j Jetty startup configuration file. ./
-kp Keystore password.
-ks Keystore file location for ssl configuration
-p HTTP port where the web server will listen. If 0 HTTP is disable 8080
-s HTTPS port where the web server will listen.If 0 HTTP is disabled. 0
-t The folder where temp folder will be created for the Webswing server ./tmp
-tc Clean the temp folder before Webswing start true
-tp Truststore password
-ts Truststore file location for SSL configuration

SSL configuration

There is a special configuration file for the built-in jetty called It is used to configure connection options of the server like ports, protocols, SSL certificates and CORS origins (for embedded Webswing ). Command-line options have higher priority than this file. Location of this file can be specified by option -j. You can configure following options in this file:



Try the new Webswing 2.6

2019 Webswing Ltd. All Rights Reserved. Code licensed under GNU Affero General Public License version 3.