Initializing help system before first use

Generating a deployment template

Open menu File » New and select the entry Mosel deployment - Java. (For deployment with C, C#, or any other supported language the procedure is similar.)

Chap678/deploy1j.png

Figure 10.1: Choosing the deployment type

This will open a new file in the editor window with the resulting code:

Chap678/deploy2j.png

Figure 10.2: Code preview

Find the constant with the value test.bim near the top of the file and change its value to the name of your BIM file (e.g. foliodata.bim). Use the menu File » Save As... to set the name (folio.java) and location of the new file. At the top of the code window a standard compilation line for Java under Windows is shown. To use it with the file we have just generated, replace RunModel.java by the name of our file, folio.java.

The Java program may be run on all systems for which Mosel is available. To compile under Linux or Solaris use:

javac -cp .:${XPRESSDIR}/lib/xprm.jar folio.java

For other systems please refer to the examples makefile of the corresponding Mosel distribution.