當我在使用pycharm IDE編寫Python代碼,在打開matlab 2015時,出現錯誤代碼:
eption "java.lang.ClassNotFoundException: com.intellij.codeInsight.editorActions.FoldingData"while constructing DataFlavor for: application/x-java-jvm-local-objectref;
class=com.intellij.codeInsight.editorActions.FoldingData
當時,我以爲是matlab啓動出了問題,於是就查了查出了什麼問題。發現這個問題與matlab啓動沒有關係,是與其他軟件(如: IntelliJ, WebStorm, 或者 PyCharm)同時在放入了剪貼板(clipboard)的原因。只要關閉同時打開的IntelliJ, WebStorm, 或者 PyCharm,再打開matlab軟件,就會恢復正常,不會出現錯誤代碼。
參考資源:
java.lang.ClassNotFoundException
in matlabR2014a
想深入瞭解代碼出現錯誤的原因,可以進入:Why/How is IntelliJ causing debug output in Netbeans?