<matlabpat​h>/bin/gln​xa64/libna​tivemvm.so already loaded in another classloader

2 ビュー (過去 30 日間)
MD SALMAN RAHMAN
MD SALMAN RAHMAN 2017 年 7 月 13 日
コメント済み: MD SALMAN RAHMAN 2017 年 9 月 7 日
Hi all,
I have been trying to use Matlab Engine to control matlab sessions with the following code:
String[] options = {"-noFigureWindows", "-r", "-cd"};
MatlabEngine startMatlab = MatlabEngine.startMatlab(options);
startMatlab.eval("GxwModel");
startMatlab.close();
However, I am getting the following error "<matlabpath>/bin/glnxa64/libnativemvm.so already loaded in another classloader". Could anyone point me to the direction of how I can fix it? Thanks in advance!
  2 件のコメント
Amit Doshi
Amit Doshi 2017 年 7 月 18 日
Hello Salman,
Try launching the MATLAB Engine with -nojvm -nodisplay -nosplash options as well.
Also, which line is throwing the error and are you able to run MATLAB on that machine?
MD SALMAN RAHMAN
MD SALMAN RAHMAN 2017 年 9 月 7 日
Hi Amit,
Actually, the line throwing error is this:
MatlabEngine startMatlab = MatlabEngine.startMatlab(options);
I can run the program when I restart. And my MATLAB is working properly.

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

回答 (0 件)

カテゴリ

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