[scilab-Users] Problems with Javasci

Sylvestre Ledru sylvestre.ledru at scilab.org
Wed Jul 21 08:42:23 CEST 2010


Hello,

See:
http://www.scilab.org/product/man/compile_and_run_javasci.html

You need to set java.library.path with the path to the native libraries.

Cheers,
Sylvestre


Le mardi 20 juillet 2010 à 16:09 +0200, Clemens Trautmann a écrit :
> Hello,
> 
> I got some problems, when I wanted to use the Javasci-class. I tried
> to run Example3 (downloaded at scilab.org) and got the following error
> message:
> 
>  
> 
> The native library javasci does not exist or cannot be found.
> 
> java.lang.UnsatisfiedLinkError: no javasci in java.library.path
> 
>       at java.lang.ClassLoader.loadLibrary(Unknown Source)
> 
>       at java.lang.Runtime.loadLibrary0(Unknown Source)
> 
>       at java.lang.System.loadLibrary(Unknown Source)
> 
>       at javasci.SciAbstractArray.<clinit>(Unknown Source)
> 
>       at Example3.main(Example3.java:15)
> 
> Cannot find method Initialize from the library.
> 
> java.lang.UnsatisfiedLinkError: javasci.SciAbstractArray.Initialize()V
> 
>       at javasci.SciAbstractArray.Initialize(Native Method)
> 
>       at javasci.SciAbstractArray.<clinit>(Unknown Source)
> 
>       at Example3.main(Example3.java:15)
> 
> Exception in thread "main" java.lang.UnsatisfiedLinkError:
> javasci.SciAbstractArray.Send()V
> 
>       at javasci.SciAbstractArray.Send(Native Method)
> 
>       at javasci.SciDoubleArray.<init>(Unknown Source)
> 
>       at Example3.main(Example3.java:15)
> 
>  
> 
>  
> 
> The javasci.jar-file is added to my project.
> 
> I tried to run the example with several verions of scilab
> (scilab-5.3.0-beta, scilab-master-1279202165, scilab-5.2.2), but
> always got the same error message.
> 
> Could you give me a hint, what could still be wrong?
> 
> Thanks,
> 
> Clemens
> 
>  
> 
> PS: Here is the exmaple, I tried to run
> 
> /*
> 
>  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
> 
>  * Copyright (C) INRIA
> 
>  * 
> 
>  * This file is released into the public domain
> 
>  *
> 
>  */
> 
>  
> 
> import javasci.* ; 
> 
>  
> 
> class Example3 {
> 
>  
> 
>   public static void main(String[] args) {
> 
>         
> 
>   SciDoubleArray a = new SciDoubleArray("A",4,1, new double []
> {1,2,3,4} );
> 
>   SciDoubleArray b = new SciDoubleArray("B",4,1, new double []
> {3,1,2,4} );
> 
>   SciDoubleArray c = new SciDoubleArray("C",4,1, new double []
> {0,0,0,0} );
> 
>   
> 
>   Scilab.Exec("disp(A);");
> 
>   Scilab.Exec("disp(B);");
> 
>   Scilab.Exec("disp(C);");
> 
>   
> 
>   a.disp();
> 
>   b.disp();
> 
>   c.disp();
> 
>     
> 
>   Scilab.Exec("C=A+B;");
> 
>   a.Get();
> 
>   b.Get();
> 
>   c.Get();
> 
>   
> 
>   a.disp();
> 
>   b.disp();
> 
>   c.disp();
> 
>   
> 
>   SciDoubleArray d = new SciDoubleArray("C",4,1);
> 
>   d.disp();
> 
>   
> 
>   Scilab.Finish();
> 
>   
> 
>             }
> 
> }
> 
> 
> 
> 
> ______________________________________________________________________
> Manz Automation AG - Steigaeckerstr. 5 - 72768 Reutlingen
> Handelsregister: HRB 353989 Registergericht Stuttgart
> Vorstand: Dieter Manz (Vorsitzender), Martin Hipp, Volker Renz
> Aufsichtsratsvorsitzender: Herr Prof. Dr. Heiko Aurenz
> _____________________________________________________________________
> Diese E-Mail ist nur für den Empfänger bestimmt, an den sie gerichtet
> ist und kann vertrauliches bzw. unter das Berufsgeheimnis fallendes
> Material enthalten. Jegliche darin enthaltene Ansicht oder Meinungs-
> äußerung ist die des Autors und stellt nicht notwendigerweise die
> Ansicht oder Meinung der Manz Automation AG dar.
> Sind Sie nicht der Empfänger, so haben Sie diese E-Mail irrtümlich
> erhalten und jegliche Verwendung, Veröffentlichung, Weiterleitung,
> Abschrift oder jeglicher Druck dieser E-Mail ist strengstens
> untersagt.
> 
> Die Manz Automation AG übernimmt keine Haftung für Viren;
> es obliegt Ihrer Verantwortung, diese Emails auf Viren zu überprüfen.
> 
> _____________________________________________________________________
> This e-mail is intended only for the recipient to whom it is addressed
> and may include confidential or proprietary information.
> Any views or opinions presented in this e-mail are
> solely those of the author and do not necessarily represent
> those of Manz Automation AG.
> If you are not the intended recipient, any disclosure, copying,
> or distribution is strictly prohibited.
> 
> Neither Manz Automation AG accepts any responsibility for loss or
> damage caused by any virus transmitted by this e-mail.
> _____________________________________________________________________

-- 
-------------------------
Sylvestre Ledru
-------------------------
The Scilab Consortium
Digiteo
Domaine de Voluceau
Rocquencourt - B.P. 105
78153 Le Chesnay Cedex
France




More information about the users mailing list