Using the display table sample

Start the sample in the parent directory of the directory com/ibm/dni/sample. This is the directory you used during installation, for example .

Enter:
java com.ibm.dni.sample.DisplayTable definition_file -db db_name
It is possible that Java™ needs more memory than usual. If you encounter problems, use the Xmx<size> parameter for Java. The following example gives Java a maximum heap size of 50 MB.
java -Xmx52428800 com.ibm.dni.sample.DisplayTable definition_file -db location

If you experience problems, use the -printstacktrace parameter. This provides you with a detailed Java Exception stack trace.

You can adjust the content of the definition files, or even copy and modify their definitions. Further information is contained in the definition files delivered with the sample.

You can also modify and recompile the sample Java source file DisplayTable.java. The file resides in the com/ibm/dni/sample subdirectory of your sample installation directory, for example /u/user/displaytable/com/ibm/dni/sample/DisplayTable.java. The comments in the DisplayTable.java file explain the program logic. Use the Java compiler delivered with your preferred JDK (1.6 or above) to compile the program.

Tip: To produce spreadsheet output, specify the -format csv and -file file parameters. You can read the resulting file, which has a name of the form file.csv, with a spreadsheet program.