Compiling DataBlade module Java code
BladeSmith generates the Project_Java.mak makefile in the src\java directory. Use this makefile to compile Java™ code from the command line on UNIX™ and Windows™.
About this task
When you compile, the makefile produces a JAR file, Project.jar, in the source code directory src/java. This file is appropriate for the server and client implementations.
- ONEDB_HOME
- Set to the HCL OneDB™ database server installation directory
- CLASSPATH
- Set to the location of
the Java software development
kit, the Java in the server
JAR file, and the HCL OneDB JDBC
Driver:
.:$(JDKPATH):${ONEDB_HOME}/extend/krakatoa/krakatoa.jar: ${ONEDB_HOME}/extend/krakatoa/jdbc.jar
- TARGET (UNIX and Windows only)
- Set to the path and file name of the include file for your operating system. Platform-specific files are in the ONEDB_HOME/incl/dbdk directory.
The BINDIR variable in the makefile determines where the JAR files are written.
Use the Project_Java.mak makefile with the Java software development kit compiler.
To compile and link your DataBlade module JAR files:
Procedure
Results
Project is the name of the DataBlade module project. The Project.jar files are created in the src/java directory.