Xcos unable to load on Windows 10
Reported by adhitya
BUG DESCRIPTION:
----------------
I'm unable to load Xcos from Eclipse IDE. When I try to invoke Xcos.xcos(null, 0), it produces a Runtime Exception.
ERROR LOG:
----------
Exception in thread "main" java.lang.ExceptionInInitializerError
at org.scilab.modules.core.Scilab.<clinit>(Scilab.java:65)
at org.scilab.modules.xcos.Xcos.<clinit>(Xcos.java:116)
at org.scilab.modules.xcos.TestingXcos.main(TestingXcos.java:5)
Caused by: java.lang.RuntimeException: XPathFactory#newInstance() failed to create an XPathFactory for the default object model: http://java.sun.com/jaxp/xpath/dom with the XPathFactoryConfigurationException: javax.xml.xpath.XPathFactoryConfigurationException: java.util.ServiceConfigurationError: javax.xml.xpath.XPathFactory: jar:file:/C:/Users/Adhitya/Documents/GitHub/scilab/Windows/thirdparty/saxon9he.jar!/META-INF/services/javax.xml.xpath.XPathFactory:2: Illegal configuration-file syntax
at javax.xml.xpath.XPathFactory.newInstance(XPathFactory.java:102)
at org.scilab.modules.commons.xml.ScilabXPathFactory.newInstance(ScilabXPathFactory.java:56)
at org.scilab.modules.commons.xml.XConfiguration.<clinit>(XConfiguration.java:86)
... 3 more
HOW TO REPRODUCE THE BUG:
-------------------------
I followed the instructions at this page: https://wiki.scilab.org/ScilabWithinEclipse
I have Java7 and Windows 10.
OTHER INFORMATION:
------------------
I've seen that there has been a similar issue in the past: http://bugzilla.scilab.org/show_bug.cgi?id=13854
I also saw this bug related to saxon9he.jar over here: https://sourceforge.net/p/saxon/mailman/message/33221102/