[Scilab-users] Error to make Example1
Sylvestre Ledru
sylvestre.ledru at scilab-enterprises.com
Fri Mar 29 15:17:48 CET 2013
Le 29/03/2013 14:45, AndyRock a écrit :
> This is my Makefile:
> I tried to follow steps in this page
> http://help.scilab.org/docs/5.4.0/en_US/compile_and_run_javasci_v2.html
> <http://help.scilab.org/docs/5.4.0/en_US/compile_and_run_javasci_v2.html>
>
> ************************
> # A sample Makefile to build a Javasci v2-based application
> # Path to Scilab data
> SCI =/home/scilab-5.4.0/share/scilab
> # Java API
> CLASSPATH =
> $(SCI)/modules/javasci/jar/org.scilab.modules.javasci.jar:$(SCI)/modules/types/jar/org.scilab.modules.types.jar
> # Path to native libs
> LD_LIBRARY_PATH = $(SCI)/../../lib/scilab/
> # Scilab binary: /path/to/scilab/lib/scilab/
> # with the source version:
> $(SCI)/modules/javasci/.libs/:$(SCI)/modules/.libs/
> all:
> javac -cp $(CLASSPATH) Example1.java
> java -cp $(CLASSPATH):. -DSCI=$(SCI) -Djava.library.path=$(LD_LIBRARY_PATH)
> Example1
>
> ***********************
> Thanks
>
>
There is a missing item in the documentation (which I just fixed).
With
LD_LIBRARY_PATH = $(SCI)/../../lib/scilab/:$(SCI)/../../lib/thirdparty/
and using the call sequence:
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) java -cp $(CLASSPATH):.
-DSCI=$(SCI) Example1
it fixes your issue on my system.
Sylvestre
More information about the users
mailing list