Problems with Javasci

Clemens Trautmann CTrautmann at manz-automation.com
Tue Jul 20 16:09:02 CEST 2010


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.
_____________________________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20100720/b2842fc1/attachment.htm>


More information about the users mailing list