Errors on my command window for every click and selection of a block in simulink and simscape

6 Ansichten (letzte 30 Tage)
When I open matlab I get an error on my command window. This error keeps coming whenever I am working on simulink, that is, whenever I select a component or a block or even when I hover over a component. This is the details of the error.
Error using dig.isProductInstalled>getProductNames (line 58)
Java exception occurred:
java.lang.NoClassDefFoundError: com/mathworks/instutil/MinimalProducts
at
com.mathworks.install_impl.InstalledProductFactory$InstallerWorkSpace.createInjector(Unknown
Source)
at
com.mathworks.install_impl.InstalledProductFactory$InstallerWorkSpace.executeTask(Unknown
Source)
at
com.mathworks.install_impl.InstalledProductFactory$InstallerWorkSpace.access$300(Unknown
Source)
at
com.mathworks.install_impl.InstalledProductFactory.getInstalledProducts(Unknown
Source)
Caused by: java.lang.ClassNotFoundException:
com.mathworks.instutil.MinimalProducts
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)
... 4 more
Error in dig.isProductInstalled (line 44)
productNames = getProductNames;
Error in slSingleSelectionActionConfig
Error using dig.isProductInstalled>getProductNames (line 58)
Java exception occurred:
java.lang.NoClassDefFoundError: com/mathworks/instutil/MinimalProducts
at
com.mathworks.install_impl.InstalledProductFactory$InstallerWorkSpace.createInjector(Unknown
Source)
at
com.mathworks.install_impl.InstalledProductFactory$InstallerWorkSpace.executeTask(Unknown
Source)
at
com.mathworks.install_impl.InstalledProductFactory$InstallerWorkSpace.access$300(Unknown
Source)
at
com.mathworks.install_impl.InstalledProductFactory.getInstalledProducts(Unknown
Source)
Caused by: java.lang.ClassNotFoundException:
com.mathworks.instutil.MinimalProducts
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)
... 4 more
Error in dig.isProductInstalled (line 44)
productNames = getProductNames;
Error in slSingleSelectionActionConfig
Error using dig.isProductInstalled>getProductNames (line 58)
Java exception occurred:
java.lang.NoClassDefFoundError: com/mathworks/instutil/MinimalProducts
at
com.mathworks.install_impl.InstalledProductFactory$InstallerWorkSpace.createInjector(Unknown
Source)
at
com.mathworks.install_impl.InstalledProductFactory$InstallerWorkSpace.executeTask(Unknown
Source)
at
com.mathworks.install_impl.InstalledProductFactory$InstallerWorkSpace.access$300(Unknown
Source)
at
com.mathworks.install_impl.InstalledProductFactory.getInstalledProducts(Unknown
Source)
Caused by: java.lang.ClassNotFoundException:
com.mathworks.instutil.MinimalProducts
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)
... 4 more
Error in dig.isProductInstalled (line 44)
productNames = getProductNames;
Error in slSingleSelectionActionConfig
Error using dig.isProductInstalled>getProductNames (line 58)
Java exception occurred:
java.lang.NoClassDefFoundError: com/mathworks/instutil/MinimalProducts
at
com.mathworks.install_impl.InstalledProductFactory$InstallerWorkSpace.createInjector(Unknown
Source)
at
com.mathworks.install_impl.InstalledProductFactory$InstallerWorkSpace.executeTask(Unknown
Source)
at
com.mathworks.install_impl.InstalledProductFactory$InstallerWorkSpace.access$300(Unknown
Source)
at
com.mathworks.install_impl.InstalledProductFactory.getInstalledProducts(Unknown
Source)
Caused by: java.lang.ClassNotFoundException:
com.mathworks.instutil.MinimalProducts
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)
... 4 more

Antworten (1)

Anjaneyulu Bairi
Anjaneyulu Bairi am 10 Jan. 2024
Bearbeitet: Anjaneyulu Bairi am 10 Jan. 2024
Hi,
I understand that you are getting errors on command window which is related to java class not found error. The "NoClassDefFoundError” is thrown because MATLAB couldn’t find Java Runtime libraries and the possible reasons are listed below.
  • Missing of some .jar files in MATLAB Installation folder and to add any jar file to the path execute below command.
javaaddpath(jar_file_path);
  • There are no references of JAR files in classpath.txt to JAVA Runtime libraries so add references of jar libraries in classpath.txt.
  • MATLAB search path may cause this issue sometimes, so restore the default search path by executing below command.
restoredefaultpath
If error persists, Uninstall the MATLAB and re-install it.
Hope it helps to resolve your query.

Kategorien

Mehr zu Composite Components finden Sie in Help Center und File Exchange

Produkte


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by