Warning - Build path specifies execution environment J2SE-1.4
In Eclipse from your project:
- Right-click on your project
- Click Properties
- Java build path: Libraries; Remove the "JRE System Library[J2SE 1.4]"
- Click Add Library -> JRE System Library
- Select the new "Execution Environment" or Workspace default JRE
Build path specifies execution environment J2SE-1.4. error in eclipse
You can try to go to Project|Properties
, then Choose the Java Build Path
,
chose the current JRE System Library
, and choose Remove.
Select Add Library
, and under the JRE System Library category
, select your system library;
try to choose the Workspace default JRE
Eclipse Warning Build path specifies execution environment JavaSE-17.
Use of Java 18 requires both Eclipse 2022-03 and this patch from the Marketplace. 2022-03 came out a week before Java 18 (March 16th vs. March 22nd), so it can not officially claim to support it. The patch should be uninstalled before updating to 2022-06 later this month.
Maven build path specifies execution environment J2SE-1.5, even though I changed it to 1.7
- Right-click on your project
- Click Properties
- Click the "Java Compiler" option on the left menu
- Under JDK compliance section on the right, change it to "1.7"
- Run a Maven clean and then Maven build.
Related Topics
In Java, How to Check If a String Contains a Substring (Ignoring Case)
Aggregation Versus Composition
When and Why JPA Entities Should Implement the Serializable Interface
How to Remove the Last Character from a String
How to Re-Attach Detached Objects in Hibernate
How to Make Threadpoolexecutor's Submit() Method Block If It Is Saturated
Comparing Two Java.Util.Dates to See If They Are in the Same Day
Warning - Build Path Specifies Execution Environment J2Se-1.4
Spring Boot Adding Http Request Interceptors
How Do Shift Operators Work in Java
Unsupportedtemporaltypeexception When Formatting Instant to String
Initialising Mock Objects - Mockito
How to Change the Intellij Idea Default Jdk
Splitting String with Pipe Character ("|")
Why Start an Arraylist with an Initial Capacity
Java Error: Only a Type Can Be Imported. Xyz Resolves to a Package