The information here is applicable to the DLLs supplied with CLW3226DEL. For the latest information on calling the NAG C Library DLLs from various environments, or for sample projects for a specific Mark of the NAG C Library, please go to the main NAG C Library DLL support index page.
For access to NAG routines from Java, we recommend using the NAG Library for Java. However, it is possible to call the NAG C Library DLLs from Java as described below.
The NAG technical report TR2_09 gives full details of how to build the necessary interfaces using Java and Visual C++.
Remember that to be able to run the Java program, the NAG C Library DLL will need to appear somewhere in your current path. For example, if the DLLs are in C:\Program Files\NAG\CL26\clw3226del\bin, then your PATH environment variable must contain this folder. You will also need the folder containing the Intel run-time libraries on your path (unless these are already present). If you are using the MKL-based version of the NAG C Library (CLW3226DE_mkl.dll), then the folder containing the MKL DLLs should also be on your path, but should appear later in the path than the bin folder for the NAG C Library DLLs, e.g.
C:\Program Files\NAG\CL26\clw3226del\bin; C:\Program Files\NAG\CL26\clw3226del\rtl\bin; C:\Program Files\NAG\CL26\clw3226del\mkl_ia32_11.3.3\bin; <rest of path>
Note that if the interface DLL (nagCJavaInterface.dll in the examples in the technical report) is not in the current folder when you run the Java program, its location will also need to be added to the path.