Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse resets Java compiler compliance level to 1.7 with every restart

Tags:

java

eclipse

Eclipse resets the compiler compliance level to 1.7 every time I restart. It kinda bothers a lot for code with large size as for every compiler compliance level change eclipse needs a fresh build

I have JDK 8 installed and have everything set to 1.8 in eclipse and project preference files.

like image 788
xavi4_4_4 Avatar asked Jan 24 '26 20:01

xavi4_4_4


1 Answers

If you are using maven, try to put this on your pom.xml

<properties> <maven.compiler.target>1.8</maven.compiler.target> <maven.compiler.source>1.8</maven.compiler.source> </properties>

like image 163
Guilherme Melo Avatar answered Jan 27 '26 11:01

Guilherme Melo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!