[Scilab-Dev] Problem with advanced mode using scilab within Eclipse
jm.gauthier
jm.gauthier at samares-engineering.com
Mon May 23 00:06:17 CEST 2016
Hello,
I'am trying to package an Eclipse plugin that calls the Scilab engine throw
the org.scilab.modules.javasci API.
The following is what I want to do:
/Scilab sci = new Scilab(true);
sci.open();
String command = "loadXcosLibs();
importXcosDiagram("PathToMyXCosFile.zcos");xcos_simulate(scs_m, 4);";
sci.exec(command);/
This piece of code works very well inside a JUnit test. However when
embedded in an eclipse plugin, it thrown the following error message inside
the console (all the paths are defined, and I have a lib folder which
contains all the required jar file (including the required modules):
java.lang.ClassCastException:
org.scilab.modules.history_manager.HistoryPrefs cannot be cast to
org.scilab.modules.commons.xml.XConfigurationListener
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_UNCAUGHT_CXX_EXCEPTION (0xe06d7363) at pc=0x000007fefbd1a06d,
pid=11568, tid=12744
#
# JRE version: Java(TM) SE Runtime Environment (8.0_91-b14) (build
1.8.0_91-b14)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.91-b14 mixed mode
windows-amd64 compressed oops)
# Problematic frame:
# C [KERNELBASE.dll+0x1a06d]
#
# Failed to write core dump. Minidumps are not enabled by default on client
versions of Windows
#
# An error report file with more information is saved as:
# C:\Softwares\eclipse_mdt_neon_M3\hs_err_pid11568.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
In addition, I have included all the jar files inside the Classpath of the
MANIFEST.MF (Runtime tab).
Please, find the hs_err_pid11568.log
<http://mailinglists.scilab.org/file/n4034100/hs_err_pid11568.log> file.
I'am using Eclipse Neon 64b with Java 1.8 64b and Scilab 5.5.2 64b.
Thank you in advance for your helps.
--
View this message in context: http://mailinglists.scilab.org/Problem-with-advanced-mode-using-scilab-within-Eclipse-tp4034100.html
Sent from the Scilab developers - Mailing Lists Archives mailing list archive at Nabble.com.
More information about the dev
mailing list