Why do I get multiple Java errors when opening MatLab?

When I open MatLab I get the following errors in the command window:
I am running MatLab version 9.2 (R2017a) with Aerospace Toolbox 2.19 (R2017a) on Windows 10. I have Java 1.8.0_144 installed.

5 件のコメント

aborghes
aborghes 2017 年 8 月 8 日
Can you look to see if there is a file called hwsmanagement.jar located in C:/Program Files/MATLAB/R2017a/java/jar/ ? The error you are getting is because that file can not be found.
Andrew Winkler
Andrew Winkler 2017 年 8 月 10 日
Thank you for taking a look at my question aborghes. I was able to navigate to the hwsmanagement.jar file but a cursor popup told me that it was not part of my path. I was able to add the C:/Program Files/MATLAB/R2017a/java/jar folder (and subfolders) to the path and now when I hover over the file the directory location is shown. However, as you can see when I restart MatLab, the errors still persist. Is there something else I should do?
Elizabeth Reese
Elizabeth Reese 2017 年 8 月 11 日
How were you adding the JAR file to the path?
Have you tried the following?
restoredefaultpath
savepath
Note that this will overwrite your path with the default path.
Andrew Winkler
Andrew Winkler 2017 年 8 月 15 日
Thank you for answering Liz. I added the JAR files by clicking on Set Path, then clicking on Add with Subfolders, and navigating to the Program Files/MATLAB/R2017a/Java/Jar directory.
If I use restoredefaultpath and then savepath, I'm left at square one where I navigate to the java/jar directory and all the java files are grayed-out and a tool tip windows appears telling me the files are not in my MATLAB path. I still get the red errors shown above.
Elizabeth Reese
Elizabeth Reese 2017 年 8 月 24 日
Because the errors occur before the ">>", this is related to the Java path used during startup. Here is some information about how to add a JAR to the static Java path and make sure that the Java files are "known" at startup instead of added dynamically for each session. Hope this helps!

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

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeStartup and Shutdown についてさらに検索

タグ

質問済み:

2017 年 8 月 8 日

コメント済み:

2017 年 8 月 24 日

Community Treasure Hunt

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

Start Hunting!

Translated by