jRate for MaRTE OS (patch) ---------------------------- Version 0.1 - Jan 2005 For MaRTE OS Version 1.57 jRate_for_MaRTE_patch_X-Y.tgz file contains the files that have been modified in order to port jRate to MaRTE OS (architecture "linux_lib"). jRate (Java Real-Time Extension) is an extension of the GNU GCJ compiler front-end and runtime system which adds supports for most of the feature required by the Real-Time Specification for Java (RTSJ). jRate Home Page: http://jrate.sourceforge.net/index.html To install this patch you must have jRate already installed in your system. Unpack jRate_for_MaRTE_patch_X-Y.tgz in the $JRATE_SUITE_HOME directory: $ cd $JRATE_SUITE_HOME $ tar zxvf jRate_for_MaRTE_patch_X-Y.tgz Now you must recompile jRate libraries and Java classes. To recompile the 'libgcj.a' library execute: $ cd $JRATE_SUITE_HOME/GNU/jRateGCC/gcc/libjava/ $ touch *.cc $ cd $JRATE_SUITE_HOME/GNU/jRateGCC/jRateGCCBuild $ make all-target-libjava To recompile 'libjRateRT.a', 'libjRate.a' and 'libjRateCore.a' libraries execute: $ cd $JRATE_SUITE_HOME/jRate/src/native/src $ make all $ cd $JRATE_SUITE_HOME/jRate/src/javax $ make To use "jRate for MaRTE OS" in your MaRTE OS (architecture "linux_lib") installation, just edit file 'marte/utils/globals.pl' and set variable $JRATE_PATH to the absolute path of $JRATE_SUITE_HOME directory. Now you can make Java applications using command 'mgcj'. 'mgcj' takes the same options as the GNU compiler 'gcj', for example, to compile a Java application composed by two classes (main program in ClassOne): $ mgcj ClassOne.java ClassTwo.java --main=ClassOne This will create a executable called 'mprogram'. Just run it as any other Linux application: $ ./mprogram