Hi Mark,
Not sure about this one, I will try to replicate the error (or directly re-compile it in a similar environment) but in the meantime my guess would be that this may be caused by MCR not being able to find the java method "com.mathworks.mlwidgets.help.LightweightHelpPanel" which is used by the Methods function to create a browser panel. I believe that java method should be defined in the mlwidgets.jar file (this should be somewhere within your Matlab installation folder) so perhaps adding this file during compilation (e.g. using "mcc -a ...") may work (?).
Best
Alfonso
Originally posted by Mark Vernon:
Hello again!
I've compiled a standalone version of conn22a from using local installs of matlab 2022b (w/compiler sdk), Matlab runtime R2022b, spm12_7771, and conn22a. It compiles without error and runs without issue, but when I try to use the new Methods function I get the following error:
ERROR DESCRIPTION:
Error using conn_referenceexplore
Java exception occurred:
java.lang.NoClassDefFoundError: com/mathworks/instutil/InstutilResourceKeys
at com.mathworks.mlwidgets.help.DocCenterRoot.initDocRelease(DocCenterRoot.java:43)
at com.mathworks.mlwidgets.help.DocCenterRoot.<clinit>(DocCenterRoot.java:26)
at com.mathworks.mlwidgets.help.HelpPrefs.<clinit>(HelpPrefs.java:58)
at com.mathworks.mlwidgets.help.DocCenterLocalizationPrefs.isDocInstalled(DocCenterLocalizationPrefs.java:273)
at com.mathworks.mlwidgets.help.DocCenterLocalizationPrefs.saveLocalizationPreferences(DocCenterLocalizationPrefs.java:255)
at com.mathworks.mlwidgets.help.DocCenterLocalizationPrefs.setLocalizationPreferences(DocCenterLocalizationPrefs.java:239)
at com.mathworks.mlwidgets.help.DocCenterLocalizationPrefs.getLocalizationModel(DocCenterLocalizationPrefs.java:28)
at com.mathworks.mlwidgets.help.DocCenterLocalizationPrefs.getDocCenterLocation(DocCenterLocalizationPrefs.java:68)
at com.mathworks.mlwidgets.help.LightweightHelpPanel.initDocConfig(LightweightHelpPanel.java:61)
at com.mathworks.mlwidgets.help.LightweightHelpPanel.<init>(LightweightHelpPanel.java:57)
at com.mathworks.mlwidgets.help.LightweightHelpPanel.<init>(LightweightHelpPanel.java:53)
Caused by: java.lang.ClassNotFoundException: com.mathworks.instutil.InstutilResourceKeys
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 11 more
Error in conn (line 5377)
Error in conn_menumanager (line 124)
CONN22.a
SPM compiled
Matlab v.2022b
project: CONN21.a
storage: 44107.9Gb available
ans =
<a href="matlab:helpPopup logical" style="font-weight:bold">logical</a>
1
Has anyone run across something like this while compiling other versions perhaps? Seems like it may be a java path issue, but I'm not sure.
Thanks,
Mark
Threaded View
| Title | Author | Date |
|---|---|---|
| Mark Vernon | Jun 14, 2023 | |
| Mark Vernon | Jun 27, 2023 | |
| Alfonso Nieto-Castanon | Jul 6, 2023 | |
