Why am I getting a java error when trying to run my java class compiled by MATLAB Builder JA 2.2.3 (R2011b)?
显示 更早的评论
I have compiled a java class using MATLAB Builder JA 2.2.3 (R2011b). When I try to run the class on my Linux machine, I get the following error:
Exception in thread "main" java.lang.NoSuchMethodError: com.mathworks.toolbox.javabuilder(Com/mathworks/toolbox/javabuilder/Microphone;Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;[I)Com/mathworks/toolbox/javabuilder/internal/MWMCR;
at com.entic.matlab._255_plantoptimizer._255_plantoptimizerMCRFactory.newInstance(_255_plantoptimizerMCRFactory.java:47)
at com.entic.matlab._255_plantoptimizer._255_plantoptimizerMCRFactory.newInstance(_255_plantoptimizerMCRFactory.java:58)
at com.entic.matlab._255_plantoptimizer.PlantOptimizer.<init>(PlantOptimizer.java:62)
at com.entic.matlab.esb._255.ChillerOptimizer.calculateOptimization(ChillerOptimizer.java:24)
at com.entic.matlab.esb._255.ChillerOptimizer.main(ChillerOptimizer.java:63)
I have made sure that the MCR is installed.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Deploy to Java Applications Using MWArray Data API 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!