Error starting deploy tool (library compiler)

1 次查看(过去 30 天)
I am running r2014a and I need to export some code in java. I am using the latest JDK (1.8). I need matlab to use this version, so I followed the instructions on this thread:
The workaround works (I confirm using 'version -java' at the command line, showing 1.8).
However, when I try to launch deploytool, I get the following error:
Error using libraryCompiler (line 32) Java exception occurred: java.lang.IllegalArgumentException: Expression: platform/windows at com.mathworks.project.impl.plugin.DefaultXpathEvaluator.compileXPath(DefaultXpathEvaluator.java:40) at com.mathworks.project.impl.plugin.DefaultXpathEvaluator.compileXPath(DefaultXpathEvaluator.java:16) at com.mathworks.project.impl.plugin.SimpleExpression$1.run(SimpleExpression.java:464) at com.mathworks.project.impl.plugin.SimpleExpression$Token.getCompiledXpath(SimpleExpression.java:393) at com.mathworks.project.impl.plugin.SimpleExpression$TokenType$2.evaluate(SimpleExpression.java:145) at com.mathworks.project.impl.plugin.SimpleExpression.evaluate(SimpleExpression.java:62) at com.mathworks.project.impl.plugin.ExpressionBasedTargetAttribute.evaluateString(ExpressionBasedTargetAttribute.java:72) at com.mathworks.project.impl.plugin.ExpressionBasedTargetAttribute.evaluateBoolean(ExpressionBasedTargetAttribute.java:66) at com.mathworks.project.impl.model.Target.isEnabled(Target.java:437) at com.mathworks.project.impl.plugin.PluginManager.discardDisabledTargets(PluginManager.java:662) at com.mathworks.project.impl.plugin.PluginManager.readTargets(PluginManager.java:251) at com.mathworks.project.impl.plugin.PluginManager.getTargets(PluginManager.java:230) at com.mathworks.project.impl.plugin.PluginManager.getTarget(PluginManager.java:368) at com.mathworks.toolbox.compiler.desktop.DeploytoolLaunchPad.startLibraryTool(DeploytoolLaunchPad.java:128) 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:/Applications/MATLAB_R2014a.app/java/jarext/saxon9-xpath.jar!/META-INF/services/javax.xml.xpath.XPathFactory:2: Illegal configuration-file syntax at javax.xml.xpath.XPathFactory.newInstance(XPathFactory.java:102) at com.mathworks.project.impl.plugin.DefaultXpathEvaluator.compileXPath(DefaultXpathEvaluator.java:36) ... 13 more
Any ideas on how to launch the library compiler?

回答(2 个)

Vijay Nahar
Vijay Nahar 2014-7-9
Have you tried going to the APPs menue then clicking on the Matlab Compiler icon?
  1 个评论
Anthony
Anthony 2014-7-9
I don't have a "Matlab Compiler" icon, but I have tried clicking the "Library Compiler" icon, which produces the aforementioned error. I need to ultimately launch Builder JA.

请先登录,再进行评论。


Ashwin
Ashwin 2014-11-24
I am experiencing the same issue.
Has been solved it in the meanwhile?

类别

Help CenterFile Exchange 中查找有关 Java Package Integration 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by