Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ IDEA 16 can't resolve JDK1.8

I have IntelliJ IDEA CE. I did some practice coding (had some project in maven) and I was developing it in IDEA 15 CE. Then update came and I cannot build project again, because of error: JComboBox usage generified after JDK 1.6 API which would couse compilation problem with JDK 5.0. (in maven is target JDK 1.8, in IDEA preferences is JDK1.8 and in project preferences is JDK 1.8. I Tried import settings from IDEA 15 (where it still works fine) with no difference, also I tried clean install IDEA... with no results. Any help pls?

like image 489
jakub Avatar asked Apr 17 '16 10:04

jakub


2 Answers

Finally I find out... File -> Project Structure -> Module... And for every module I had to set version 8...(there was version 5 I don't know why...)

like image 71
jakub Avatar answered Oct 21 '22 20:10

jakub


You should be able to change it in File>Project Structure>Project>Project SDK and then either pick JDK 1.8 in the drop-down menu, or click 'new' and navigate to the JDK folder.

like image 35
a.deshpande012 Avatar answered Oct 21 '22 22:10

a.deshpande012