Description
This is a basic JViews Maps Application showing how to load a diagrammer designer project with a map background.
Requirements
- The J2SE Development Kit (JDK) - see http://java.sun.com
- ILOG JViews Maps 8.6
The build scripts for this sample assume ILOG JViews 8.6 is installed into the default directory (c:\progra~1\ibm\ilog on Windows and $HOME/ibm/ilog/ on UNIX). If your copy is installed elsewhere, set the environment variable JVIEWS_HOME to point to that directory or edit the script (go.bat for Windows and go.sh for UNIX) to do the same. See below for more information.
If you have a newer version of JViews, please edit the ant script (build.xml) so that the classpath will point to the correct jar files.
- ILOG JViews license -- in the default location (c:\progra~1\ibm\ilog\jlm\keys.jlm or $HOME/ibm/ilog/jlm/keys.jlm) or in a directory that is on the runtime classpath.
- [ToDo: Describe any additional requirements here]
Instructions
- Extract SimpleMapApplication.zip -- It will create a new directory named SimpleMapApplication.
- Set JVIEWS_HOME (if needed) -- If you have installed JViews to a directory other than the default offered by the installation program (c:\progra~1\ibm\ilog on Windows and $HOME/ibm/ilog on UNIX), then set the environment variable JVIEWS_HOME to point to the correct directory or directly edit the sample launch script (go.bat for Windows and go.sh for UNIX) to do the same.
- Run go.bat -- from the sample directory.
Just play with the toolbar to interact with the map view
Instructions for IDE's
Users of integrated development environments (IDE's) such as Eclipse will want to import this project into their IDE. Since it contains an ant build script, it can be imported into any modern Java IDE.
To import this project into Eclipse, use the main menu to select "File" ... "New" ... "Project." Then choose "Java Project from Existing Ant Buildfile" and browse to select the file, build.xml from this sample.
If you are using a licensed version of JViews (not a Trial) you must put a copy of the JViews license file into the project. The file is named keys.jlm. The default configuration is to store it in the jlm directory under the root ilog directory. For windows that is c:\progra~1\ibm\ilog\jlm\keys.jlm. For UNIX it is $HOME/ibm/ilog/jlm/keys.jlm. At runtime, the keys.jlm file must reside in a directory on the classpath. For Eclipse, it is easiest to just put it into the root directory of the project.
Files
-
build.xml - ant build script
-
readme.html - this file
-
src - Contains all of the source code files for this example.
- data - Contains the data file(s) used by this sample.
- html - Contains image and style files to support this HTML file. These files are not used by the sample.
|
© Copyright International Business Machines Corporation 1987, [TODO:copyrightYear]. http://www-01.ibm.com/software/websphere/products/visualization/ |