OpenTS - Installation
Installation

For an application you write to use OpenTS, the OpenTS.jar file must be in your classpath. This can be accomplished in a number of ways including the following:

  • At run/compile time (Recommended). You may include the jar file in the classpath at runtime or compile-time by using the -classpath flag. For example

    java -classpath .;OpenTS.jar MyProgram

    or for compiling...

    javac -classpath .;OpenTS.jar *.java
  • As a Java extension. Java 2 (jdk1.2 and greater) makes it easy to include jar files in Java's classpath by placing the jar file in the JDK_HOME/jre/lib/ext/ directory, where JDK_HOME is the location of the Java installation. On a MS Windows computer, for example, you might put the file in the C:\jdk1.3\jre\lib\ext\ directory. The MacOS Runtime for Java will automatically include jar files in the System:Extensions:MRJ Libraries directory.
  • In the CLASSPATH environment variable. Depending on your computer platform you may set the CLASSPATH environment variable with a command such as the MS Windows command set CLASSPATH=%CLASSPATH%;C:\tabusearch\OpenTS.jar
  • In an applet. To include the jar file (and any others) in an applet, use the archive key/value pair as in this example: <APPLET CODE="MyApplet.class" WIDTH=200 HEIGHT=200 ARCHIVE="mystuff.jar,OpenTS.jar"></APPLET>