JAVA 调用 MATLAB 2012a 64位 ,生成jar包后,在win环境运行顺畅,迁移到linux环境报错
Exceptioninthread"main"java.lang.ExceptionInInitializerErroratcom.mathworks.toolbox.j...
Exception in thread "main" java.lang.ExceptionInInitializerErrorat com.mathworks.toolbox.javabuilder.internal.MCRConfiguration.getProxyLibraryDir(MCRConfiguration.java:178)at com.mathworks.toolbox.javabuilder.internal.MCRConfiguration$MCRRoot.get(MCRConfiguration.java:
at com.mathworks.toolbox.javabuilder.internal.MWMCR.<clinit>(MWMCR.java:1466)
at com.mathworks.toolbox.javabuilder.MWUtil.GetUnknownClassID(MWUtil.java:727)
at com.mathworks.toolbox.javabuilder.MWClassID.<clinit>(MWClassID.java:41)
at com.cmdb.corn.farecast.FarecastPlan.doFarecastNew(FarecastPlan.java:307)
at com.cmdb.corn.farecast.FarecastPlan.farecastData(FarecastPlan.java:233)
at com.cmdb.corn.farecast.FarecastPlan.getHistoryData(FarecastPlan.java:138)
at com.cmdb.corn.farecast.FarecastPlan.executePlan(FarecastPlan.java:56)
at com.cmdb.corn.farecast.TestFarecast.main(TestFarecast.java:11)
Caused by: java.lang.NullPointerException
at com.mathworks.toolbox.javabuilder.internal.MCRConfiguration$ProxyLibraryDir.get(MCRConfiguration.java:143)
at com.mathworks.toolbox.javabuilder.internal.MCRConfiguration$ProxyLibraryDir.<clinit>(MCRConfiguration.java:173)
... 14 more 展开
at com.mathworks.toolbox.javabuilder.internal.MWMCR.<clinit>(MWMCR.java:1466)
at com.mathworks.toolbox.javabuilder.MWUtil.GetUnknownClassID(MWUtil.java:727)
at com.mathworks.toolbox.javabuilder.MWClassID.<clinit>(MWClassID.java:41)
at com.cmdb.corn.farecast.FarecastPlan.doFarecastNew(FarecastPlan.java:307)
at com.cmdb.corn.farecast.FarecastPlan.farecastData(FarecastPlan.java:233)
at com.cmdb.corn.farecast.FarecastPlan.getHistoryData(FarecastPlan.java:138)
at com.cmdb.corn.farecast.FarecastPlan.executePlan(FarecastPlan.java:56)
at com.cmdb.corn.farecast.TestFarecast.main(TestFarecast.java:11)
Caused by: java.lang.NullPointerException
at com.mathworks.toolbox.javabuilder.internal.MCRConfiguration$ProxyLibraryDir.get(MCRConfiguration.java:143)
at com.mathworks.toolbox.javabuilder.internal.MCRConfiguration$ProxyLibraryDir.<clinit>(MCRConfiguration.java:173)
... 14 more 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询