IDEA安裝scala環境

clone flink 1.6  執行報錯.顯示沒有scala jar

下載scala sdk 引用到項目中,發現一直去C盤的用戶目錄下去找jar包. 卸載IDEA中的scala插件,重新安裝失敗.應該是沒有C盤的操作權限.修改IDEA的緩存文件配置

IDEA的緩存文件夾.IntelliJIdea2017.1,存放着IDEA的破解密碼,各個項目的緩存,默認是在C盤的用戶目錄下,目前有1.5G大小。現在想要把它從C盤移出。
在IDEA的安裝路徑下中,進入bin目錄後找到屬性文件:idea.properties 用記事本打開,找到如下代碼段:

 

 1 #---------------------------------------------------------------------
 2 # Uncomment this option if you want to customize path to IDE config folder. Make sure you're using forward slashes.
 3 #---------------------------------------------------------------------
 4 # idea.config.path=${user.home}/.IntelliJIdea/config
 5 
 6 #---------------------------------------------------------------------
 7 # Uncomment this option if you want to customize path to IDE system folder. Make sure you're using forward slashes.
 8 #---------------------------------------------------------------------
 9 # idea.system.path=${user.home}/.IntelliJIdea/system
10 
11 #---------------------------------------------------------------------
12 # Uncomment this option if you want to customize path to user installed plugins folder. Make sure you're using forward slashes.
13 #---------------------------------------------------------------------
14 # idea.plugins.path=${idea.config.path}/plugins

 

 
需要注意,在IDEA2017中,默認這些配置是註釋掉的,我在這可吃了大虧,沒想到配置沒有生效的原因是如此簡單。

更改配置文件如下:

 

 1 #---------------------------------------------------------------------
 2 # Uncomment this option if you want to customize path to IDE config folder. Make sure you're using forward slashes.
 3 #---------------------------------------------------------------------
 4 idea.config.path=E:/personaldata/.IntelliJIdea/config
 5 
 6 #---------------------------------------------------------------------
 7 # Uncomment this option if you want to customize path to IDE system folder. Make sure you're using forward slashes.
 8 #---------------------------------------------------------------------
 9 idea.system.path=E:/personaldata/.IntelliJIdea/system
10 
11 #---------------------------------------------------------------------
12 # Uncomment this option if you want to customize path to user installed plugins folder. Make sure you're using forward slashes.
13 #---------------------------------------------------------------------
14 idea.plugins.path=${idea.config.path}/plugins

 
更改了以後重啓IDEA,會彈出如下界面Complete Installation,選擇Previous version

 

此時,在目錄下生成了一個.IntelliJIdea文件


此時把.IntelliJIdea2017.1刪除了也可以,原來的項目也都能找得到
  PS:初始緩存文件夾.IntelliJIdea2017.1的來歷,之前安裝的是IDEA2015,那時的緩存文件是.IntelliJIdea,後來將IDEA2015升級成了IDE2017,在同一個目錄下生成了這個.IntelliJIdea2017.1文件夾。可能是IDEA內部的某種設置,如果文件中已經存在了.IntelliJIdea文件,就要在後面增加版本號後綴。

發佈了43 篇原創文章 · 獲贊 6 · 訪問量 5萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章