Jvm unable to find other dependencies when loading javasci.dll

amitmokal amitmokal at gmail.com
Tue Nov 29 13:19:54 CET 2011


I'm running a sample program that calls Scilab from Java

Scilab.Exec("disp(%pi);"); 

The jvm will try to load the javasci.dll (which it gets from the
java.library.path which is correctly set to ..scilab-5.3.3\bin\). But the
javasci.dll has some other dependencies which it does not find in the bin
directory. 

The Scilab documentation
http://help.scilab.org/docs/5.3.3/en_US/compile_and_run_javasci_v2.html
refers to some other dll's such as: libscila2.dll, libscitypes.dll but they
do not exist in this bin directory. 

I went back to version 5.1.1 which uses the older javasci version1. There
Javasci.dll there has the same issue.

I tried command line, eclipse. Even tried the examples posted in Scilabs
source code.

Detailed error posted below. Note: The jvm does find javasci.dll but is
unsuccessful in loading it due to other dependencies

java.library.path:C:\Program Files\scilab-5.3.3\bin;C:\Program
Files\scilab-5.3.3\bin
The native library javasci does not exist or cannot be found.
java.lang.UnsatisfiedLinkError: C:\Program
Files\scilab-5.3.3\bin\javasci.dll: Can't find dependent libraries
	at java.lang.ClassLoader$NativeLibrary.load(Native Method)
	at java.lang.ClassLoader.loadLibrary0(Unknown Source)
	at java.lang.ClassLoader.loadLibrary(Unknown Source)
	at java.lang.Runtime.loadLibrary0(Unknown Source)
	at java.lang.System.loadLibrary(Unknown Source)
	at javasci.Scilab.<clinit>(Unknown Source)
	at DisplayPI.main(DisplayPI.java:13)
Exception in thread "main" java.lang.UnsatisfiedLinkError:
javasci.Scilab.Exec(Ljava/lang/String;)Z
	at javasci.Scilab.Exec(Native Method)
	at DisplayPI.main(DisplayPI.java:13)

--
View this message in context: http://mailinglists.scilab.org/Jvm-unable-to-find-other-dependencies-when-loading-javasci-dll-tp3544979p3544979.html
Sent from the Scilab developers - Mailing Lists Archives mailing list archive at Nabble.com.



More information about the dev mailing list