You can use a Java™ makefile or
manually execute the javac command to build JDBC applications.
The following steps demonstrate how to build and run the DbInfo sample
JDBC application.
- Compile DbInfo.java to produce the file DbInfo.class with
this command:
javac DbInfo.java
- If you are running a Java application
on UNIX in a 64-bit DB2 instance
but the software development kit for Java is
32-bit, you need to change the DB2 library
path before running the application. For example, on AIX®:
- Run the Java interpreter
on the application with this command:
java DbInfo