1. 程式人生 > >關於idea無法建立class類報錯問題

關於idea無法建立class類報錯問題

Unable to parse template "Interface" Error message: This template did not produce a Java class or an interface

找到idea的安裝目錄,進入bin,找到檔案idea.exe.vmoptions或者idea64.exe.vmoptions(隨便其中一個)。

 

用記事本開啟,在最後一行新增-Djdk.util.zip.ensureTrailingSlash=false。儲存後重啟idea即可。