How to compile SCRAMNet Windows library file

From Lehigh RTMD Wiki

Jump to: navigation, search
  1. Connect to the RTMD Subversion Repository, svn://rtmdrepos.nees.lehigh.edu/RTMD/trunk/RTMD.
  2. Under src/edu/lehigh/nees/scramnet/ check out edu_lehigh.nees.scramnet_ScramNetIO.h, make.bat, PNPSCR.lib, ScramNetIO.c and ScramNetIO.java.
  3. Make sure that JAVA_HOME in make.bat is set to the correct Java JDK path.
  4. Make sure that SCRAMNET_HOME in make.bat is set to the SCRAMNet root location.
  5. Compile the ScramNetIO.java file
javac edu\lehigh\nees\scramnet\ScramNetIO.java
  1. Create the C JNI Header
javah -jni edu.lehigh.nees.scramnet.ScramNetIO
  1. Run make.bat to create the driver file, scramnetio.dll.
  2. Copy the scramnetio.dll file to C:\RTMD\lib\ on the RTMDsim PC.
  3. If you make changes to the ScramNetIO.c file, make sure the changes are reflected in the edu_lehigh_nees_lehigh_scramnet_ScramNetIO.h and ScramNetIO.java files. You may need to change the function declaration parameters if you changed them in the ScramNetIO.c file.
  4. If the ScramNetIO.java file has been changed, please follow the instructions on how to checkout and package the RTMD java software.
Personal tools