Tutorial for Intel® DAAL : Using Simple Java* Examples

By Jonghak Kim, Published: 08/31/2015, Last Updated: 08/30/2015

System Environment

Intel® DAAL version : 2016 Gold Initial Release (w_daal_2016.0.110.exe)

OS : Windows 8.1


Intel® DAAL is a part of Intel® Parallel Studio XE 2016, a developer toolkit for HPC and technical computing applications. Intel® DAAL is a powerful library for big data developers that turns large data clusters into meaningful information with advanced analytics algorithms.

In this tutorial, we will see how to build and run Intel® DAAL Java examples included in the package.

For C++ examples please refer -> Tutorial for Intel® DAAL : Using simple C++ examples

Finding the examples

By default, the examples are located at

c:\Program Files (x86)\intelSWTools\compilers_and_libraries\windows\daal\examples

In examples directory, there are example projects in C++ and Java language respectively. The example data according to three different models, batch, distributed and online, for the projects is located in data directory.

It is recommended to copy the examples to somewhere else where you do not need the administrator access in order to make it easy to modify, build and run.

Building the examples

 First, to setup DAAL environment variables, run daalvars.bat <arch>

Second, we need to setup path for the location of javac.exe. Type

set JAVA_HOME=<Your JDK location >

Now (go to <examples>\java ) type

launcher.bat <arch> build

Then .class files will be generated at


Running the examples

To run the examples, set redist runtime dlls ->

PATH=C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.0.110\windows\redist\intel64_win\daal;
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.0.110\windows\redist\intel64_win\compiler;
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.0.110\windows\redist\intel64_win\tbb\vc_mt;%PATH%

Now go to <examples>\java and run one of the examples by typing

launcher.bat <arch> run

The results from the examples will be saved at


Each example will generate a result file respectively, and you can see the result by opening .res file.

Product and Performance Information


Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804