Why am I getting a java error when trying to run my java class compiled by MATLAB Builder JA 2.2.3 (R2011b)?
Afficher commentaires plus anciens
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.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Deploy to Java Applications Using MWArray Data API dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!