<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <br>
    Hello Zhu,<br>
    <br>
    There seems to be a bug indeed, I am reproducing the errors.<br>
    Could you please report a <a
      href="http://bugzilla.scilab.org/enter_bug.cgi">bug</a>?<br>
    <br>
    For the record, the error happens in InitScilab.cpp:1042 : calling
    'Scilab(true)' in Test.java causes getScilabMode() to return
    SCILAB_API and 'Scilab(false)' returns SCILAB_NWNI (=> regression
    from Scilab 5?).<br>
    There is a confusion between the graphic libs being loaded, and
    removing the 'getScilabMode() != SCILAB_API' check with
    'Scilab(true)' causes Scilab to start launching but ending up in a
    major crash...<br>
    <br>
    Regards,<br>
    Paul<br>
    <br>
    <div class="moz-cite-prefix">On 05/07/2016 02:17 AM, sampig wrote:<br>
    </div>
    <blockquote cite="mid:572D3406.80702@tu-clausthal.de" type="cite">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <br>
      <div class="moz-forward-container">
        <meta http-equiv="content-type" content="text/html;
          charset=UTF-8">
        Hello,<br>
        <br>
        When I tried to compile and run javasci in Scilab 6 (<a
          moz-do-not-send="true" class="moz-txt-link-freetext"
href="https://help.scilab.org/docs/5.5.2/en_US/compile_and_run_javasci_v2.html"
          target="_top" rel="nofollow" link="external"><a class="moz-txt-link-freetext" href="https://help.scilab.org/docs/5.5.2/en_US/compile_and_run_javasci_v2.html">https://help.scilab.org/docs/5.5.2/en_US/compile_and_run_javasci_v2.html</a></a>),


        I was unable to run a simple application in the example. I am
        sorry that I have to use the document about 5.5.x instead of 6
        because there are no documents for scilab 6.<br>
        <br>
        <br>
        I got this <big><b>error</b></big>:<br>
        <big><i>------------------<br>
            Scilab startup function detected that the function proposed
            to the engine is the wrong one. Usually, it comes from a
            linker problem in your distribution/OS.</i><i><br>
          </i><i>Here, Scilab should have 'libscijvm-disable' defined
            but gets 'libscijvm' instead.</i><i><br>
          </i><i>If you do not know what it means, please report a bug
            on <a moz-do-not-send="true" class="moz-txt-link-freetext"
              href="http://bugzilla.scilab.org/" target="_top"
              rel="nofollow" link="external">http://bugzilla.scilab.org/</a>.
            If you do, you probably know that you should change the link
            order in SCI/modules/Makefile.am</i></big><br>
        <br>
        <br>
        <b>Environment</b>:<br>
        --------------------<br>
        Ubuntu 16.04 LTS<br>
        Scilab 6 in master branch / Scilab 6.0.0-beta-1<br>
        JDK1.8<br>
        Eclipse Mars<br>
        <br>
        <br>
        <big><b>HOW TO REPRODUCE THE ISSUE:</b></big><small> </small><br>
        -------------------------------------------------------<br>
        <b>1</b>. in Scilab 6 of master branch:<br>
        <i>export SCI=/usr/develop/scilab/share/scilab</i><i><br>
        </i><i>export
LD_LIBRARY_PATH=/usr/develop/scilab/lib/scilab:/usr/develop/scilab/lib/thirdparty</i><i><br>
        </i><i>javac -cp
          $CLASSPATH:$SCI/modules/javasci/jar/org.scilab.modules.javasci.jar:$SCI/modules/types/jar/org.scilab.modules.types.jar


          Test.java</i><i><br>
        </i><i>java -cp
          $CLASSPATH:$SCI/modules/javasci/jar/org.scilab.modules.javasci.jar:$SCI/modules/types/jar/org.scilab.modules.types.jar


          Test</i><br>
        <img moz-do-not-send="true"
src="http://mailinglists.scilab.org/attachment/4034079/0/part3.09010403.08020700%40tu-clausthal.de"
          alt=""><br>
        <img moz-do-not-send="true"
src="http://mailinglists.scilab.org/attachment/4034079/1/part4.07030502.06020000%40tu-clausthal.de"
          alt=""><br>
        <br>
        <b>2</b>. in Scilab 6.0.0-beta-1:<br>
        <img moz-do-not-send="true"
src="http://mailinglists.scilab.org/attachment/4034079/2/part5.01090505.08010804%40tu-clausthal.de"
          alt=""><br>
        <img moz-do-not-send="true"
src="http://mailinglists.scilab.org/attachment/4034079/3/part6.05050609.03070302%40tu-clausthal.de"
          alt=""><br>
        <br>
        <b>3</b>. in eclipse with Scilab 6 of master branch:<br>
        <img moz-do-not-send="true"
src="http://mailinglists.scilab.org/attachment/4034079/4/part7.04000201.04090606%40tu-clausthal.de"
          alt=""><br>
        <img moz-do-not-send="true"
src="http://mailinglists.scilab.org/attachment/4034079/5/part8.01070209.03070602%40tu-clausthal.de"
          alt=""><br>
        Also tried this "Scilab sci = new Scilab();".<br>
        <br>
        If anyone has succeeded doing this, please tell me how.<br>
        <br>
        Thanks very much!<br>
        <br>
        <br>
        Best wishes,<br>
        Chenfeng Zhu<br>
        <pre class="moz-signature" cols="72">-- 
var ME = {
    "cn_name": "朱辰丰",
    "en_name": "Chenfeng Zhu",
    "mobile": "(+49) 0176 80827704",
    "university": "TU-Clausthal",
    "program": "ITIS",
    "field": ["JAVA", "Android", "Database", "Data Mining"],
    "chat": {"Hangout": <a moz-do-not-send="true" href="/user/SendEmail.jtp?type=node&node=4034079&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>, "IRC": <a moz-do-not-send="true" href="/user/SendEmail.jtp?type=node&node=4034079&i=1" target="_top" rel="nofollow" link="external">[hidden email]</a>}
}</pre>
        <br>
      </div>
      <br>
      <br>
      <hr align="left" width="300">
      View this message in context: <a moz-do-not-send="true"
href="http://mailinglists.scilab.org/Error-when-compiling-and-running-with-javasci-in-Scilab-6-tp4034079.html">Error
        when compiling and running with javasci in Scilab 6</a><br>
      Sent from the <a moz-do-not-send="true"
href="http://mailinglists.scilab.org/Scilab-developers-Mailing-Lists-Archives-f2574944.html">Scilab
        developers - Mailing Lists Archives mailing list archive</a> at
      Nabble.com.<br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:dev@lists.scilab.org">dev@lists.scilab.org</a>
<a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/dev">http://lists.scilab.org/mailman/listinfo/dev</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Paul BIGNIER
Development engineer
-----------------------------------------------------------
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.68
<a class="moz-txt-link-freetext" href="http://www.scilab-enterprises.com">http://www.scilab-enterprises.com</a></pre>
  </body>
</html>