Error starting deploy tool (library compiler)

조회 수: 1 (최근 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 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