Clear Filters
Clear Filters

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

13 views (last 30 days)
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.
  6 Comments
Dylan Wolff
Dylan Wolff on 21 Dec 2016
I'm glad it helped Mohamed! I just added the comment as an answer. Thanks for pointing that out Walter!
Damon DeLuca
Damon DeLuca on 21 Oct 2022
Greetings,
We are having this issue when running an executable in 2019a with the MCR directory. The executable runs, but when we try to use certain functions/buttons the "jxbrowser....:Access Denied'' locks up the program. No problems when running the program from Matlab 2019a.
In local environment variables, MCR_CACHE_ROOT is set to a temp folder with all permissions allowed. The "TEMP" and "TMP" variables are also set to the same temp folder.
I tried adding the change default renderer suggestion to the opening function of the main .m file and recompiled. That didn't help.
We distribute this program to many users on Navy NMCI network and need it to work -- any additional ideas will be appreciated!

Sign in to comment.

Accepted Answer

Dylan Wolff
Dylan Wolff on 21 Dec 2016
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!

More Answers (1)

Dev-iL
Dev-iL on 5 Nov 2018
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.

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!