MATLAB Answers

Help takes forever to load and I get a Java related error

53 ビュー (過去 30 日間)
Mohamed Abdelsamie
Mohamed Abdelsamie 2016 年 12 月 18 日
回答済み: Dev-iL 2018 年 11 月 5 日
Hello, I get an error when I call the help function. The error message is below
Exception in thread "IPC Process Thread" java.lang.UnsatisfiedLinkError: C:\Users\Sherif\AppData\Local\Temp\jxbrowser-chromium-43.0.2357.52.5.4.2\data\Temp\jxbrowser-common64-147780a3-3fb1-42ab-b4f4-9e6ff0295970.dll: Access is denied
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary1(Unknown Source)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.load0(Unknown Source)
at java.lang.System.load(Unknown Source)
at com.teamdev.jxbrowser.chromium.internal.LibraryLoader.loadLibrary(Unknown Source)
at com.teamdev.jxbrowser.chromium.internal.SharedMemoryLibrary.<init>(Unknown Source)
at com.teamdev.jxbrowser.chromium.internal.SharedMemoryLibrary.getInstance(Unknown Source)
at com.teamdev.jxbrowser.chromium.internal.ipc.ChromiumProcess.start(Unknown Source)
at com.teamdev.jxbrowser.chromium.internal.ipc.d.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception in thread "IPC Process Thread" java.lang.UnsatisfiedLinkError: C:\Users\Sherif\AppData\Local\Temp\jxbrowser-
chromium-43.0.2357.52.5.4.2\data\Temp\jxbrowser-common64-49b24786-2e19-4e4e-900e-e6f45703da1d.dll: Access is denied
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary1(Unknown Source)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.load0(Unknown Source)
at java.lang.System.load(Unknown Source)
at com.teamdev.jxbrowser.chromium.internal.LibraryLoader.loadLibrary(Unknown Source)
at com.teamdev.jxbrowser.chromium.internal.SharedMemoryLibrary.<init>(Unknown Source)
at com.teamdev.jxbrowser.chromium.internal.SharedMemoryLibrary.getInstance(Unknown Source)
at com.teamdev.jxbrowser.chromium.internal.ipc.ChromiumProcess.start(Unknown Source)
at com.teamdev.jxbrowser.chromium.internal.ipc.d.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Not sure exactly what is causing this.
I appreciate your help.
  5 件のコメント
Dylan Wolff
Dylan Wolff 2016 年 12 月 21 日
I'm glad it helped Mohamed! I just added the comment as an answer. Thanks for pointing that out Walter!

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

採用された回答

Dylan Wolff
Dylan Wolff 2016 年 12 月 21 日
It looks to me like this error is occurring because JxBrowser does not have the proper permissions for a file it needs access to in your temporary directory; I have a few ideas that might work.
1) You can try manually changing the permissions for the file (or the directory that contains it) listed in the error message.
2) If that doesn't work or is not possible given your system setup, you can specify an alternative location with the proper permissions as your temporary directory in your java.opts file as explained here:
Specifically, you will need to set the following property:
-Djava.io.tmpdir
You can query the value of your temporary directory using the following command in MATLAB to ensure that the change took place:
>> java.lang.System.getProperty('java.io.tmpdir');
3) As a third option, you can switch to a different version of the default renderer for your help browser by executing the following command in MATLAB:
>> com.mathworks.mlwidgets.html.HtmlComponentFactory.setDefaultType('HTMLPANEL');
4) You can also try changing the renderer altogether with this command:
>> webutils.htmlrenderer(basic);
I hope this helps!
  1 件のコメント
Michel Bourdon
Michel Bourdon 2017 年 1 月 12 日
you may also run Matlab as admin BR Michel

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

その他の回答 (1 件)

Dev-iL
Dev-iL 2018 年 11 月 5 日
I started having the same problem after a Win10 update, which for some reason messed up the permissions of the user Temp folder.
What helped in my case was to go to the folder specified in the error (C:\Users\<username>\AppData\Local\Temp\), go to its properties > Security tab > Advanced, and allow full control.
Be advised that this solution requires admin permissions on the system.

Community Treasure Hunt

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

Start Hunting!

Translated by