Chapter 3 — Developing and Using RFID Applications
58 IF61 Fixed Reader User’s Manual
To enable the Java just-in-time (JIT) compiler for maximum
performance, use this command:
$JAVA_HOME/bin/java -jit java -jar MyJar.jar
where:
$JAVA_HOME is an environment variable that indicates the Java
runtime installation path (/usr/java). Always use this variable for
simplicity and to insure that the correct runtime files are used.
java is the name of the Java runtime executable installed in the
IF61.
If your application references third party Java libraries (such as
components from the Intermec RFID Resource Kit), you must
use the “-cp” option to specify the class path for the JVM to find
the Java classes. Be sure to include the current path so classes in
the current directory can be found, as shown in this example:
$JAVA_HOME/bin/java -cp .:./BasicRFID.jar MyClass
Java Support for Microsoft SQL Server and Sybase
The IF61 jTDS driver (version 1.2) provides JDBC capabilities
to Java applications running on the IF61. You need to include the
location of the JDBC drivers in the class path. Use the
environment variable $JDBC_HOME as shown in this example:
$JAVA_HOME/bin/java -cp $JDBC_HOME/jtds-j2me-
1.0.2.jar:. MyClass
The IF61 JDBC driver supports JDBC 1.0 and:
• Microsoft SQL Server versions 6.5, 7, 2000, and 2005.
• Sybase versions 10, 11,12, and 15.
For more information on the jTDS driver, see
http://jtds.sourceforge.net.
Note: Your .jar files must have manifest files included within
them or the command will not work.
• The manifest needs to include an attribute called “Main-
Class” to specify the application’s entry point (for example,
Main-Class: MyJavaClass).
• If the executable .jar needs to reference other .jar files, specify
the files in the manifest file using the “Class-Path” attribute.