天天看點

matlab啟動時,指令行中出現“java.lang.​ClassNotFo​undExcepti​on”錯誤代碼

當我在使用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.​ClassNotFo​undExcepti​on in matlabR2014a

想深入了解代碼出現錯誤的原因,可以進入:Why/How is IntelliJ causing debug output in Netbeans?

繼續閱讀