Why do I receive a java.lang.IllegalArgumentException error message when starting MATLAB Compiler?
조회 수: 8 (최근 30일)
이전 댓글 표시
MathWorks Support Team
2017년 12월 15일
답변: MathWorks Support Team
2017년 12월 15일
Why is it that when I start up MATLAB Compiler, I get the following error message:
Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: This collection does not allow clients with duplicate names
at com.google.common.base.Preconditions.checkArgument(Preconditions.java:93)
at com.mathworks.desktop.client.UniqueClientCollection.check(UniqueClientCollection.java:53)
at com.mathworks.desktop.client.UniqueClientCollection.add(UniqueClientCollection.java:47)
at com.mathworks.toolbox.compiler.desktop.DeploytoolToolstripTab.initializeToolstrip(DeploytoolToolstripTab.java:55)
at com.mathworks.toolbox.compiler.desktop.DeploytoolToolstripClient.loadingFinished(DeploytoolToolstripClient.java:128)
at com.mathworks.project.impl.ProjectGUI$3$1.run(ProjectGUI.java:387)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
채택된 답변
MathWorks Support Team
2017년 12월 15일
This may be an issue with either your toolbox cache not being up to date or having insufficient privileges to your pathdef.m file.
Try running the following commands in MATLAB:
>> rehash toolboxcache
>> savepath
Afterwards, try starting up MATLAB Compiler again. If the above commands return with any error about permissions error with the pathdef.m file, try placing the file in your MATLAB working directory.
The pathdef.m file should be located in your $MATLABROOT\toolbox\local (for Windows) or $MATLABROOT/toolbox/local (for macOS and Linux).
$MATLABROOT being your MATLAB installation directory.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!