This page covers instructions on how to compile this SRM SDK. In addition, it provides steps that can be used to verify that the compilation completed successfully.
NOTE: This document is intended for those users who are building the SRM libraries from the source. Pre-compiled (bytecode) distributions in Jar file are available for download from the SEDRIS Web Site.
For general information about this release, where to obtain it, and items that require specific attention, see the Release Notes.
For help, comments, and bug reports please send email to help@sedris.org. If you are an associate, please use se-coders@sedris.org.
Return to: Top
The SRM source code can be compiled in any platform supporting a Java version 5 compiler and Runtime Environment.
Return to: Top
The SRM software will compile and work "out-of-the-box" on all systems supporting Java version 5 compiler. A Java version 5 compiler can be downloaded from the java.sun.com website.
Return to: Top
If you have any errors reported by the build process, see Problems with the Build.
Return to: Top
Use the following commands to run the sample application CdToCcConv:
The user should see the following output on the screen:
*** Sample program using SRM Java API to convert a 3D coordinate *** from a Celestiodetic SRF to a Celestiocentric SRF. CdSrf parameter => orm: ORMCOD_WGS_1984 rt: RTCOD_WGS_1984_IDENTITY CcSrf parameter => orm: ORMCOD_WGS_1984 rt: RTCOD_WGS_1984_IDENTITY CdCoord components (source) => [ 0.17453292519943295, 0.3490658503988659, 100.0 ] CcCoord components (destination) => [ 5904838.698311626, 1041182.3792437915, 2167730.9898430835 ] is VALID
If you see something like what is shown above, you have successfully compiled the SRM SDK!
Return to: Top
To compile an application using the the classes defined in the srm.jar, import the srm classes in the application file as follows:
import SRM.*;
To run an application using the srm.jar, set the command line flag as follows:
java -classpath "<path>/srm.jar:<other stuff>" <user app>
Return to: Top
Return to: Top
For help, comments, and bug reports please send email to help@sedris.org. If you are an associate, please use se-coders@sedris.org.
Return to: Top
These links require Internet access.
Return to: Top
Copyright © 2010 SEDRIS