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

errorjavaMATLAB and Simulink Student Suite

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.

Best Answer

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!
Related Question