I am trying to run a program which is executed by running the following batch file:
@echo off
rem Add extra JVM options here
set OPTS=-Xms64m -Xmx256m
rem Build command line arguments
set CMD_LINE_ARGS=%1
if “”%1″”==”””” goto doneStart
shift
:setupArgs
if “”%1″”==”””” goto doneStart
set CMD_LINE_ARGS=%CMD_LINE_ARGS% %1
shift
goto setupArgs
:doneStart
rem Launch the DCS
java %OPTS% -Djava.ext.dirs=lib -Ddcs.war=war/carrot2-dcs.war org.carrot2.dcs.DcsApp
%CMD_LINE_ARGS%
This batch file sets up the program at http://localhost:8080 (I believe it’s a servlet). The program is a cluster engine similar to the one here: http://search.carrot2.org/stable/search. Everything seems to work, but I get the following command prompt output from executing the batch file.
[INFO] Starting DCS…
[INFO] Native LAPACK not available: no nni_lapack in java.library.path
[INFO] Native BLAS not available: no nni_blas in java.library.path
[INFO] DCS started on port: 8080
I managed to find the LAPACK and BLAS libraries online, but how do I add them to java.library.path (and how do I find what java.library.path points to)?
If anyone who’d like to help me needs some additional information or clarification, please let me know. I’m pretty new to java web development.
java.library.pathis used by Java to find native libraries (dlls on Windows). You need to download LAPACK and BLAS libraries somewhere (e.g. inC:\path\lapack\libandC:\path\blas\lib). You then need to setjava.library.pathappropriately when you call your program. For example: