JAVA error appears in matlab

This error appears when I try to run a matlab file and it doesnt run btw
Error using ee_battery_opt_m (line 98)
Error due to multiple causes.
Caused by:
Error using ee_battery_opt_m (line 98)
Error due to multiple causes.
Error using ee_battery_opt_m (line 98)
Unexpected exception (Bundle#540 start failed: Loading C:\Program
Files\Polyspace\R2019b\bin\win64\builtins\physmod\sm\gui\mwphysmod_sm_gui_jni_builtinimpl.dllfailed with error:
Failed to retrieve error message.) was caught.
Error using ee_battery_opt_m (line 98)
Unable to load 'network_engine_domain' due to the following error
'Unexpected exception (Bundle#540 start failed: Loading C:\Program
Files\Polyspace\R2019b\bin\win64\builtins\physmod\sm\gui\mwphysmod_sm_gui_jni_builtinimpl.dllfailed with error:
Failed to retrieve error message.) was caught.'
Error using ee_battery_opt_m (line 98)
Error due to multiple causes.
Error using ee_battery_opt_m (line 98)
Unexpected exception (Bundle#540 start failed: Loading C:\Program
Files\Polyspace\R2019b\bin\win64\builtins\physmod\sm\gui\mwphysmod_sm_gui_jni_builtinimpl.dllfailed with error:
Failed to retrieve error message.) was caught.
Error using ee_battery_opt_m (line 98)
Unable to load 'network_engine_domain' due to the following error
'Unexpected exception (Bundle#540 start failed: Loading C:\Program
Files\Polyspace\R2019b\bin\win64\builtins\physmod\sm\gui\mwphysmod_sm_gui_jni_builtinimpl.dllfailed with error:
Failed to retrieve error message.) was caught.'
Error using ee_battery_opt_m (line 98)
Error due to multiple causes.
Error using ee_battery_opt_m (line 98)
Unexpected exception (Bundle#540 start failed: Loading C:\Program
Files\Polyspace\R2019b\bin\win64\builtins\physmod\sm\gui\mwphysmod_sm_gui_jni_builtinimpl.dllfailed with error:
Failed to retrieve error message.) was caught.
Error using ee_battery_opt_m (line 98)
Unable to load 'network_engine_domain' due to the following error
'Unexpected exception (Bundle#540 start failed: Loading C:\Program
Files\Polyspace\R2019b\bin\win64\builtins\physmod\sm\gui\mwphysmod_sm_gui_jni_builtinimpl.dllfailed with error:
Failed to retrieve error message.) was caught.'
Error using ee_battery_opt_m (line 98)
Error due to multiple causes.
Error using ee_battery_opt_m (line 98)
Unexpected exception (Bundle#540 start failed: Loading C:\Program
Files\Polyspace\R2019b\bin\win64\builtins\physmod\sm\gui\mwphysmod_sm_gui_jni_builtinimpl.dllfailed with error:
Failed to retrieve error message.) was caught.
Error using ee_battery_opt_m (line 98)
Unable to load 'network_engine_domain' due to the following error
'Unexpected exception (Bundle#540 start failed: Loading C:\Program
Files\Polyspace\R2019b\bin\win64\builtins\physmod\sm\gui\mwphysmod_sm_gui_jni_builtinimpl.dllfailed with error:
Failed to retrieve error message.) was caught.'

回答(1 个)

Anirban
Anirban 2022-9-9

0 个投票

Your MATLAB root begins with C:\Program Files\Polyspace\. This indicates that you might be opening MATLAB from C:\Program Files\Polyspace\R2019b\bin. Even though a MATLAB executable exists in this location, it is not meant to be used.
You should open MATLAB from a location like C:\Program Files\MATLAB\R2019b\bin.

类别

帮助中心File Exchange 中查找有关 Startup and Shutdown 的更多信息

产品

版本

R2019b

标签

Community Treasure Hunt

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

Start Hunting!

Translated by