1. 程式人生 > >IDEA報錯:Unable to parse template "Interface" Error message: This template did not

IDEA報錯:Unable to parse template "Interface" Error message: This template did not

實現:IDEA新建 .java 檔案報Unable to parse template "Interface" Error message: This template did not produce a Java class or an interface錯誤

原因:這是因為JDK更新到8 Update 144引起

解決辦法:1、如果要修復的話, 需要在idea.vmoptions or idea64.vmoptions中增加 -Djdk.util.zip.ensureTrailingSlash=false

2、也可以回退回其他JDK版本, 可以避免這個問題。

實際操作:開啟安裝資料夾下的"bin";

用記事本開啟“idea.exe.vmoptions”或“idea64.exe.vmoptions”檔案;

新增“-Djdk.util.zip.ensureTrailingSlash=false”

可能出現的問題:重啟idea後並未生效。可能原因:1、未在修改之前關閉idea

2、系統是64位,但是改的卻是idea.exe.vmoptions(即32位),導致並未生效;或者系統是32位,但是改的卻是idea64.exe.vmoptions(即64位),導致並未生效;

歡迎加入 CSDN技術交流群:QQ群:681223095,方便問題討論。博主不一定長期線上,但是qq群裡會有很多熱心的小夥伴,大家一起討論解決問題。 關注公眾號,更多學習內容給予推送,爭取每日更新

這裡寫圖片描述