Hello Zhu,

There seems to be a bug indeed, I am reproducing the errors.
Could you please report a bug <http://bugzilla.scilab.org/enter_bug.cgi>?

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?). 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...

Regards,
Paul

On 05/07/2016 02:17 AM, sampig wrote:

Hello,

When I tried to compile and run javasci in Scilab 6 (https://help.scilab.org/docs/5.5.2/en_US/compile_and_run_javasci_v2.html), 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.


I got this *error*:
/------------------
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.// //Here, Scilab should have 'libscijvm-disable' defined but gets 'libscijvm' instead.// //If you do not know what it means, please report a bug on http://bugzilla.scilab.org/. If you do, you probably know that you should change the link order in SCI/modules/Makefile.am/


*Environment*:
--------------------
Ubuntu 16.04 LTS
Scilab 6 in master branch / Scilab 6.0.0-beta-1
JDK1.8
Eclipse Mars


*HOW TO REPRODUCE THE ISSUE:*
-------------------------------------------------------
*1*. in Scilab 6 of master branch:
/export SCI=/usr/develop/scilab/share/scilab//
//export LD_LIBRARY_PATH=/usr/develop/scilab/lib/scilab:/usr/develop/scilab/lib/thirdparty// //javac -cp $CLASSPATH:$SCI/modules/javasci/jar/org.scilab.modules.javasci.jar:$SCI/modules/types/jar/org.scilab.modules.types.jar Test.java// //java -cp $CLASSPATH:$SCI/modules/javasci/jar/org.scilab.modules.javasci.jar:$SCI/modules/types/jar/org.scilab.modules.types.jar Test/



*2*. in Scilab 6.0.0-beta-1:



*3*. in eclipse with Scilab 6 of master branch:


Also tried this "Scilab sci = new Scilab();".

If anyone has succeeded doing this, please tell me how.

Thanks very much!


Best wishes,
Chenfeng Zhu
--
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":[hidden email] </user/SendEmail.jtp?type=node&node=4034079&i=0>, 
"IRC":[hidden email] </user/SendEmail.jtp?type=node&node=4034079&i=1>}
}



------------------------------------------------------------------------
View this message in context: Error when compiling and running with javasci in Scilab 6 <http://mailinglists.scilab.org/Error-when-compiling-and-running-with-javasci-in-Scilab-6-tp4034079.html> Sent from the Scilab developers - Mailing Lists Archives mailing list archive <http://mailinglists.scilab.org/Scilab-developers-Mailing-Lists-Archives-f2574944.html> at Nabble.com.


_______________________________________________
dev mailing list
[email protected]
http://lists.scilab.org/mailman/listinfo/dev

--
Paul BIGNIER
Development engineer
-----------------------------------------------------------
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.68
http://www.scilab-enterprises.com

_______________________________________________
dev mailing list
[email protected]
http://lists.scilab.org/mailman/listinfo/dev

Reply via email to