Preparing to Run a Program

Before you run a spatial Java™ API program, set your CLASSPATH environment variable and compile the program.

Setting your CLASSPATH Environment Variable

When compiling or running the programs in this chapter, set your CLASSPATH environment variable to include:
  • The HCL Informix® JDBC Driver, ifxjdbc.jar, in the directory where you installed the driver.
  • The Spatial DataBlade Java API, spatial.jar, in the directory where you installed the DataBlade module, $INFORMIXDIR/extend/spatial.version.
  • The examples/java directory (where these example programs are located) in the directory where you installed the DataBlade module, $INFORMIXDIR/extend/spatial.version.

Compiling the Programs

Use the javac command to compile the programs in this chapter (be sure that your CLASSPATH is set correctly, as described above). For example, to compile all the programs, go to the examples/java directory and enter the following command:
javac *.java

Copyright© 2019 HCL Technologies Limited