Error starting deploy tool (library compiler)

2 views (last 30 days)
Anthony
Anthony on 9 Jul 2014
Answered: Ashwin on 24 Nov 2014
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?

Answers (2)

Vijay Nahar
Vijay Nahar on 9 Jul 2014
Have you tried going to the APPs menue then clicking on the Matlab Compiler icon?
  1 Comment
Anthony
Anthony on 9 Jul 2014
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.

Sign in to comment.


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

Categories

Find more on MATLAB Compiler in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!