[Scilab-users] Problem with dependency in Java to be accessed through Scilab
We have the following problem in our Scilab/Java project. The project is written in Java and the Java functions are accessed through Scilab. This works fine and as expected without the new dependency. Because of a new functionality of the
code we would like to add a dependency on Spice (a program by JPL to provide ephemerides of, in our case, small bodies in the solar system). The Spice dependency works fine and as expected when used in Java directly, with Eclipse Juno, but when we try to use
this functionality in Scilab it won’t work.
The dependency of Spice consists of a .jar file with the functions and a .dll dynamic library. In Java the .jar file is added to the pom.xml and the .dll is loaded in a static block using System.loadLibrary(“JNISpice”);. When we use the
functionality in Scilab for the first time it gives one error;
jinvoke: An error occured: Exception when calling Java method : An exception has been thrown in calling the method run: