Current Page:
NeXtMidas User's Guide
![]() ![]() ![]() |
|
Building Web Start ApplicationsThese steps configure a NeXtMidas application to run from WebStart:
Create a Default JNLP FileWebStart applications require a JNLP (Java Network Launching Protocol) file that specifies what command to run and which libraries to run it. The JNLP specification is available from http://java.sun.com/products/javawebstart/
The NeXtMidas generate,jnlp,shellgui,,/home/smith/public_html/shellgui
The Customize the JNLP FileThe "codebase" attribute
The The "href" attributes
The For example, the top of your JNLP file should look similar to this<?xml version="1.0" encoding="utf-8"?> <jnlp spec="1.0+" codebase="http://webserver.hostname/nmroot" href="htdocs/demo.jnlp"> NeXtMidas System Properties for Web Start
Java system properties are set in the The "AUX" Property
NeXtMidas uses an
To customize the default values, modify the generated JNLP file to contain a property
tag with the name
In this example, the following property tag sets the write aux to <property name="AUX" value="RAM RAM|DAT"/> The "HOME" Property
The default homepath for executing NeXtMidas under WebStart is
your homepath on the executing machine. It's probably best to keep this
default homepath. Although you can set the The "OPTS" Property (i.e. set PATH)
Set the PATH with the specified option trees. <property name="OPTS" value="UCL,DSP,SYS"/> <jar href="jars/nxm-dsp.jar"/> <jar href="jars/nxm-ucl.jar"/> The "NONATIVE" PropertyGenerally set to "true" to disable loading of native code since native libraries may not be built for client's specific machine and architecture. The "ENV.THEME" Property
Set the default THEME (Look and Feel) for this Web Start application.
This is similar to running The "ENV.STYLE" Property
Set the default STYLE (TDB) for this Web Start application.
This is similar to running Create an HTML file to reference the JNLP
To create an HTML file that links the Web page to the <a href="shellgui.jnlp">Launch NextMidas Shellgui</a> Create and Sign Application Jars
For each option tree required by the WebStart application, there must be a signed Jar file
with the required classes to run the application. The following commands generate and sign the
Jar file for the generate jars sys /home/smith/public_html/shellgui /sign
This creates a signed Jar file called
In addition to the option tree jars, the application also requires all the Jar files
included in the generate jars jarname.jar /home/smith/public_html/shellgui /sign
Upload the Files
Upload the generated files to the server that is serving the
files. A list of all the uploaded files are
located in the Note: Applying Custom Environment Settings
NeXtMidas under Web Start currently does not execute the |
|