Error starting deploy tool (library compiler)

2 ビュー (過去 30 日間)
Anthony
Anthony 2014 年 7 月 9 日
回答済み: Ashwin 2014 年 11 月 24 日
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 Center および File ExchangeMATLAB Compiler についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by