概述
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
错误如下:
java.lang.ExceptionInInitializerError
at com.mathworks.toolbox.javabuilder.internal.MCRConfiguration.getProxyLibraryDir(MCRConfiguration.java:260)
at com.mathworks.toolbox.javabuilder.internal.MCRConfiguration$MCRRoot.get(MCRConfiguration.java:71)
at com.mathworks.toolbox.javabuilder.internal.MCRConfiguration$MCRRoot.(MCRConfiguration.java:81)
at com.mathworks.toolbox.javabuilder.internal.MCRConfiguration.getMCRRoot(MCRConfiguration.java:86)
at com.mathworks.toolbox.javabuilder.internal.MCRConfiguration$ModuleDir.(MCRConfiguration.java:60)
at com.mathworks.toolbox.javabuilder.internal.MCRConfiguration.getModuleDir(MCRConfiguration.java:65)
at com.mathworks.toolbox.javabuilder.internal.MWMCR.(MWMCR.java:1472)
at untitled.Class1.main(Class1.java:126)
Caused by: java.lang.NullPointerException
at com.mathworks.toolbox.javabuilder.internal.MCRConfiguration$ProxyLibraryDir.get(MCRConfiguration.java:225)
at com.mathworks.toolbox.javabuilder.internal.MCRConfiguration$ProxyLibraryDir.(MCRConfiguration.java:255)
... 8 more
具体代码如下:
public static void main (String[] args) throws MWException
{
try {
MWMCR mcr = MWMCR.newInstance(
sDefaultComponentOptions,
UntitledMCRFactory.class,
sComponentName,
sComponentId,
new int[]{8,4,0}
);
mcr.runMain( sUntitledSignature, args);
mcr.dispose();
} catch (Throwable t) {
t.printStackTrace();
}
}
主要在 MWMCR mcr = MWMCR.newInstance(
sDefaultComponentOptions,
UntitledMCRFactory.class,
sComponentName,
sComponentId,
new int[]{8,4,0}
);这个调用出现了异常,怎么解决呢 急需帮助!
最后
以上就是踏实绿茶为你收集整理的java报错空指针异常_java调用matlab出现空指针异常的全部内容,希望文章能够帮你解决java报错空指针异常_java调用matlab出现空指针异常所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复