Clearing Java Objects
이전 댓글 표시
My code uses Java objects that I created and provide to ML in a .jar file.
After my code terminates, I try to run "clear java" and I get a message back that some of my objects still exist and Java cannot be cleared:
Warning: Objects of Param/TableCellRenderer class exist - not clearing java Warning: Objects of Param/RowHeaderRenderer class exist - not clearing java
How can I clear these objects? The only way that I have found is to restart ML. Not fun when co-developing between ML and Java.
댓글 수: 3
Kaustubha Govind
2011년 6월 21일
The documentation suggests "If any Java objects exist outside the workspace (for example, in user data or persistent variables in a locked code file), clear issues a warning and does not remove the Java class definition." - is this the case with your Java class?
Joseph Burgel
2011년 6월 27일
Kaustubha Govind
2011년 6월 27일
Interesting problem. You might want to consider contacting Tech Support to see if they've seen this before.
답변 (1개)
카테고리
도움말 센터 및 File Exchange에서 Call Java from MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!