Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Java Compiler Version does not get saves
Java Compiler Version does not get saves [message #1860360] Tue, 01 August 2023 07:02 Go to next message
Fabio Gandolfi is currently offline Fabio GandolfiFriend
Messages: 1
Registered: July 2022
Junior Member
Hi,

Every time I restart my Eclipse IDE the "Compiler compliance level" (Settings -> Java -> Compiler) will get reset to Java 11 even if my project is set up to Java 17. Where are these settings stored and how can I store it so that I don`t need to change this setting on every restart manually?

Thx
Re: Java Compiler Version does not get saves [message #1860396 is a reply to message #1860360] Thu, 03 August 2023 05:26 Go to previous messageGo to next message
Sarika Sinha is currently offline Sarika SinhaFriend
Messages: 132
Registered: February 2010
Location: Bangalore, India
Senior Member
There are 2 levels of Settings in Eclipse, One is Workspace level which can be overridden for a particular Project at Project Level.
Changing the Project level Compliance will not update the Workspace level Compliance level. But you can edit Workspace level setting and Save it to have the saved settings when you restart Eclipse IDE.


Sarika Sinha
JDT Programmer
Re: Java Compiler Version does not get saves [message #1860444 is a reply to message #1860396] Sat, 05 August 2023 21:41 Go to previous message
David M. Karr is currently offline David M. KarrFriend
Messages: 810
Registered: July 2009
Senior Member
Adding to the other response, the reality is that I don't think the Eclipse-wide "Compiler compliance level" really matters at all. If your project is using Java 17, there is no conflict there. If you want new projects to use Java 17, just set that as the default JRE.
Previous Topic:Modify Default Run Configuration for Test Plugins
Next Topic:Error when transfering java projects from eclipse under windows to eclipse under linux
Goto Forum:
  


Current Time: Thu Jan 23 17:58:06 GMT 2025

Powered by FUDForum. Page generated in 0.03699 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top