I am wondering how to switch the java compiler in Eclipse.
To change the compiler version in eclipse you need to go to Windows > Preferences > Java > Compiler. There you will see Compiler Compilation Level where in drop-down you will see all compiler version available in system.
Configure the default JRE Set it as the default in Eclipse by selecting Preferences -> Java -> Installed JREs. Add the installed JDK and select the checkbox, making it the default.
Eclipse does not use the compiler in the JDK, just the runtime libraries. The compiler is embedded in Eclipse (so you can run on a plain JRE).
You set all the compiler properties in the Java->Compiler preference window, and the class libraries in the chosen JRE.
Window > Prefrences > Java > Installed JREs
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With