フィルターのクリア

Why I'm getting this error?

35 ビュー (過去 30 日間)
cicese ut3
cicese ut3 2015 年 7 月 9 日
コメント済み: Wei Ge 2022 年 1 月 16 日
Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: Failed to find the required library libmwmclmcrrt.so.8.4 on java.library.path. This library is typically installed along with MATLAB or the MCR. Its absence may indicate an issue with that installation or the current path configuration. The MCR version that this component is trying to use is: 8.4.
Occurs when I try to run a jar file generated in Matlab, on Netbeans IDE 8.0.2. OS Linux Ubuntu MATE.
  1 件のコメント
Wei Ge
Wei Ge 2022 年 1 月 16 日
I meet the same problem, but I have not resolved the problem yet. Could you show me how to resolve it?

サインインしてコメントする。

採用された回答

cicese ut3
cicese ut3 2015 年 7 月 16 日
編集済み: Walter Roberson 2015 年 7 月 16 日
My solution was use the ProcessBuilder java class. With this class I was able to run the jar file generated, in the same way how it is executed from console.
Example:
ProcessBuilder pb = new ProcessBuilder("java", "-cp", "CLASSPATH","Class1", "Values");
//This two lines allow us to set the LD_LIBRARY_PATH
Map<String, String> env = pb.environment();
env.put("LD_LIBRARY_PATH", LD_LIBRARY_PATH);
try { Process p = pb.start(); } catch (IOException ex) { ex.printStackTrace(System.out); }

その他の回答 (2 件)

Titus Edelhofer
Titus Edelhofer 2015 年 7 月 9 日
Hi,
as the error indicates: have you installed on the machine where you want to run the jar file the MCR (MATLAB Compiler Runtime)? Take a look here:
Titus
  2 件のコメント
cicese ut3
cicese ut3 2015 年 7 月 9 日
I already installed the MCR and configured the LD_LIBRARY_PATH variable. When I run the jar generated in Matlab in console works fine, the problem is when I try to run it in a netbeans project.
Titus Edelhofer
Titus Edelhofer 2015 年 7 月 9 日
Hi,
I assume you added the javabuilder.jar to your netbeans project? Could you post more of the error message? It's strange that it's complaining about libmwmlcrrt "not on the java library path". It should be on the system library path, not the java library path ...
Titus

サインインしてコメントする。


Rafi Kandli
Rafi Kandli 2019 年 8 月 8 日
i didnt find libmwmclmcrrt.so in matlab folder (matlab runtime 9.6)..

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by