Why do I get a com.mathworks.html.BrowserCreationException error when running certain MATLAB commands on Linux?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
MathWorks Support Team
el 20 de Jun. de 2019
Respondida: MathWorks Support Team
el 2 de Jul. de 2019
I get a Java error such as the following every time I call 'uisetcolor', 'webmap', or any other commands that use the JxBrowser on my Linux machine. It always seems to be a "com.mathworks.html.BrowserCreationException" error. How can I fix this?
e.g.
>> uisetcolor
Error using matlab.ui.internal.dialog.WebColorChooser/show (line 74)
Java exception occurred:
com.mathworks.html.BrowserCreationException: com.mathworks.html.BrowserCreationException: com.teamdev.jxbrowser.chromium.internal.ipc.IPCException: IPC process
exited. Exit code: 127
at com.mathworks.mlwidgets.html.LightweightChromiumBrowserBuilder.buildBrowser(LightweightChromiumBrowserBuilder.java:52)
at com.mathworks.mlwidgets.html.LightweightBrowserBuilder.buildBrowser(LightweightBrowserBuilder.java:189)
Caused by: com.mathworks.html.BrowserCreationException: com.teamdev.jxbrowser.chromium.internal.ipc.IPCException: IPC process exited. Exit code: 127
at com.mathworks.html.jxbrowser.chromium.LightweightChromiumBrowser.<init>(LightweightChromiumBrowser.java:35)
at com.mathworks.mlwidgets.html.LightweightChromiumBrowserBuilder.buildBrowser(LightweightChromiumBrowserBuilder.java:40)
... 1 more
Caused by: com.teamdev.jxbrowser.chromium.internal.ipc.IPCException: IPC process exited. Exit code: 127
at com.teamdev.jxbrowser.chromium.internal.ipc.d.run(Unknown Source)
at java.lang.Thread.run(Thread.java:748)
Error in uisetcolor_helper>showDialog (line 67)
ccDialog.show;
Error in uisetcolor_helper (line 12)
selectedColor = showDialog(ccDialog);
Error in uisetcolor (line 37)
selectedColor = uisetcolor_helper(varargin{:});
Respuesta aceptada
MathWorks Support Team
el 13 de Ag. de 2019
1) Please make sure you are using MATLAB on a supported version of Linux, as “minimal” or “core” installations of Linux may lack the necessary software packages required to run MATLAB.
2) Please try installing any missing JxBrowser dependencies. You can see any missing dependencies by running `ldd` on the 'jxbrowser-chromium' executable that ships with MATLAB.
e.g.
>> cd(fullfile(matlabroot,'sys','jxbrowser-chromium','glnxa64','chromium'))
>> !ldd jxbrowser-chromium | grep -i found
libgconf-2.so.4 => not found
This example indicates that we are missing the "libgconf-2-4" dependency, which can be installed with a package manager such as `apt`.
NOTE: The exact location of the 'jxbrowser-chromium' executable may be different depending on the version of MATLAB you are using. The example above is from R2019a.
See the link below for another example of using `ldd` and installing dependencies.
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Introduction to Installation and Licensing en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!