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 [email protected]. If you are an associate, please use [email protected].
Return to: Top
The SRM source code can be compiled in any platform supporting a Java version 2 compiler and Runtime Environment.
Return to: Top
The SRM software will compile and work "out-of-the-box" on all systems supporting Java version 2 compiler. A Java version 2 compilar can be downloaded from the java.sun.com website.
Return to: Top
The following files are created upon its completion:
- Unix: Execute the build_srm.sh script.
- Win32:Execute the build_srm.bat script
- The srm.jar file is created under the lib/ directory
- The sample application in bytecode CdToCcConv.class is created under the bin/ directory.
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:
- Unix: java -classpath "lib/srm.jar:bin" CdToCcConv
- Win32: java -classpath "lib\srm.jar;bin" 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: ORM_WGS_1984 rt: RT_WGS_1984_IDENTITY CcSrf parameter => orm: ORM_WGS_1984 rt: RT_WGS_1984_IDENTITY CdCoord components (source) => [ 0.17453292519943295, 0.3490658503988659, 100.0 ] CcCoord components (destination) => [ 5904838.698311626, 1041182.3792437915, 2167730.9898430835 ] is VALIDIf 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
- Why am I having errors using my Java compiler?
- Make sure you have a Java version 2 compiler properly installed on your system and it is accessible.
- Why am I having problems running my application?
- Make sure you have a Java version 2 Runtime Environment properly instaled on your system
Return to: Top
Return to: Top
For help, comments, and bug reports please send email to [email protected]. If you are an associate, please use [email protected].
Return to: Top
These links require Internet access.
- SRM at the SEDRIS Web Site
- SEDRIS (www.sedris.org)
- SEDRIS Technologies SDK Downloads
- SEDRIS Technologies Documents
- SEDRIS Tools
Return to: Top
Copyright © 2006 SEDRIS