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

조회 수: 6 (최근 30일)
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

답변 (1개)

Anjaneyulu Bairi
Anjaneyulu Bairi 2024년 1월 10일
편집: Anjaneyulu Bairi 2024년 1월 10일
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.

카테고리

Help CenterFile Exchange에서 Composite Components에 대해 자세히 알아보기

태그

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by