zoukankan      html  css  js  c++  java
  • java matlab 混合编程 Failed to find the required library mclmcrrt9_2.dll on java.library.path.

    问题描述:

      

    Exception in thread "main" java.lang.UnsatisfiedLinkError: Failed to find the required library mclmcrrt9_2.dll on java.library.path.
    This library is typically installed along with MATLAB or the MATLAB Runtime. Its absence may indicate an issue with that installation or 
    the current path configuration, or a mismatch with the architecture of the Java interpreter on the path.
    MATLAB Runtime version this component is attempting to use: 9.2.
    Java interpreter architecture: win64.
    at com.mathworks.toolbox.javabuilder.internal.MCRConfiguration$ProxyLibraryDir.get(MCRConfiguration.java:
    324) at com.mathworks.toolbox.javabuilder.internal.MCRConfiguration$ProxyLibraryDir.<clinit>(MCRConfiguration.java:334) at com.mathworks.toolbox.javabuilder.internal.MCRConfiguration.getProxyLibraryDir(MCRConfiguration.java:339) at com.mathworks.toolbox.javabuilder.internal.MCRConfiguration$MCRRoot.get(MCRConfiguration.java:64) at com.mathworks.toolbox.javabuilder.internal.MCRConfiguration$MCRRoot.<clinit>(MCRConfiguration.java:76) at com.mathworks.toolbox.javabuilder.internal.MCRConfiguration.getMCRRoot(MCRConfiguration.java:81) at com.mathworks.toolbox.javabuilder.internal.MCRConfiguration$ModuleDir.<clinit>(MCRConfiguration.java:53) at com.mathworks.toolbox.javabuilder.internal.MCRConfiguration.getModuleDir(MCRConfiguration.java:58) at com.mathworks.toolbox.javabuilder.internal.MWMCR.<clinit>(MWMCR.java:1699) at nsgaii.NsgaiiMCRFactory.newInstance(NsgaiiMCRFactory.java:55) at nsgaii.NsgaiiMCRFactory.newInstance(NsgaiiMCRFactory.java:66) at nsgaii.NsgaiiOperator.<init>(NsgaiiOperator.java:167) at optimization.algorithm.nsgaii.NSGAII.main(NSGAII.java:33)

    问题分析:

      未安装matlab runtime运行环境,或运行环境版本不匹配

    问题解决:

      1. 安装MCR环境(E:MATLABR2017a oolboxcompilerdeploywin64MCRInstaller.exe)

       配置  path

           C:Program FilesMATLABMATLAB Runtimev92 untimewin64

       配置

         MATLAB_JAVA

         D:installjavajdk1.8.0_181jre

          

      2. 配置java环境

        JAVA_HOME

        D:installjavajdk1.8.0_181

        

           CLASSPATH

        %JAVA_HOME%lib;%JAVA_HOME%libdt.jar;%JAVA_HOME%lib ools.jar

        

         PATH

        ;%JAVA_HOME%jrein;%JAVA_HOME%in

      

    参考链接:

      1.Matlab Compiler SDK 使用步骤及常见问题总结(全)

      2.MATLAB MCR安装以解决GUI编程软件移植运行问题

  • 相关阅读:
    codevs 1163:访问艺术馆
    codevs 2853:方格游戏
    冲刺Noip2017模拟赛2 解题报告——五十岚芒果酱
    HDU 1317:XYZZY
    codevs 1380:没有上司的舞会
    POJ 1734:Sightseeing trip
    lesson 23 one man's meat is another man's poison
    wordlist 4
    TPO-12 C1 Revise a Hemingway paper
    lesson 22 by heart
  • 原文地址:https://www.cnblogs.com/haimishasha/p/10273631.html
Copyright © 2011-2022 走看看