To summary, here are the steps to change Java compiler version for a project in Eclipse IDE:
- Install JRE/JDK that supports the Java version you want to use.
- Add that JRE/JDK to Eclipse's list of installed JREs.
- Update Java Build Path for the project, pointing to the new JRE/JDK.
- Change Java compiler compliance level.
How do I upgrade my version of C++?
You don't "upgrade" to newer C++ standards. You can upgrade compiler to newer version supporting latest standards. As of today, most compilers are set to C++14 by default. To change it you need to pass additional argument during compilation.
How do I upgrade Javac?
- Edit your question and add the output of javac -version. – A.B. ...
- @A.B. I've done that. ...
- Try this command and check, if you can change the active javac version sudo update-alternatives --config javac. – A.B. ...
- I see two alternatives - for java 7 and for java 8. – Jacobian. ...
- Select Java 8. Use the same version as for java.