...
There are a number of options when configuring the launch of your Delft-FEWS application. The most simple is to double click on the appropriate executable in the bin directory e.g. C:\FEWS\bin\Your_Region.exe - this will launch FEWS directly.
Before 2014.02 using a jpif file.
In the bin from before 2014.02 there will also be a file of the same name with the extension .jpif (e.g. Your_region.jpif). Since the executable is generic (except for the name) this file contains all the information required to launch your application.
...
Notice that JAVA system properties should be defined after the -D keyword.
Since 2014.02 using a ini file.
In the bin from before 2014.02 there will also be a file of the same name with the extension .ini (e.g. Your_region.ini. Since the executable is generic (except for the name) this file contains all the information required to launch your application.
vm.location=../jre/bin/client/jvm.dll | The location of the JRE folder |
vmarg.1=-Xms512m | Initial amount of memory available for FEWS |
vmarg.2=-Xmx1024m | Amount of memory available for FEWS |
classpath.1=*.jar | all the jars in the Delft-FEWS bin dir forming the classpath |
main.class=nl.wldelft.fews.gui.explorer.Application | Main class. |
working.directory=. | Location of the Delft-FEWS bin dir |
arg.1=../Anglian_SA | Path to the folder containing the configuration. Note that when the tag $USER_HOME$ is part of the foldername, it will be resolved by Delft-FEWS to the user.home directory. |
*If wanting to use the config manager use line: main.class=nl.wldelft.fews.configmanagement.ConfigManagementApplication or for the launcher use main.class=nl.wldelft.fews.launcher.Launcher
It is possible to add JAVA runtime options the .ini file.
vmarg.3=-XX:MaxPermSize=128m | Set PermSize (default 64m, which is sometimes too low and results into PermSize errors) |
arg.2=-Dsun.java2d.noddraw=true | turns on/off all usage of Direct3D |
arg.3=-Djava.net.useSystemProxies=true | Use the LAN system proxy settings (default FALSE) |
arg.4=-DautoRollingBarrel=false | switch on/off the rolling barrel (default TRUE) in the OC |
Notice that JAVA system properties should be defined after the -D keyword.
How to launch Delft-FEWS using the launch menu
...
You must create a folder in the root directory (same level as the bin and jre) which will contain the launcher configuration files (called for example FEWSLauncher). You will need to have an executable and ini (before 2014.02 jpif) in the bin directory - you start the launcher by double clicking on the executable. But first we need to set up the launcher config files...
...
This file contains the actions which are accessed through the launcher. The id links with the id given in the security.xml. You can see from the schema that the action can link to a web page (for example the admin interface) or to a java application (fews explorer or config manager). You will notice similarities between the attributes of the JavaAppType and those found in the .jpif ini file in the bin directory. An example file can be seen here
...