IntelliJ IDEA Ultimate is one of the most popular Java IDE. But sometimes, when you run IntelliJ IDEA, it shows you an error. The error message is “Error: java: error: release version 5 not supported in IntelliJ IDEA Ultimate”. This blog will show you different methods to solve this error.
How To Fix The Error “Error:java: error: release version 5 not supported in IntelliJ IDEA Ultimate”?
You may get the following problem when attempting to run a basic java maven project in IntelliJ IDEA Ultimate today.
Error:java: error: release version 5 not supported
Open your IDE settings to resolve the “Error:java: problem: release version 5 not supported in IntelliJ IDEA Ultimate” error. Then, navigate to Build Execution, Deployment. Then, choose Compiler. Next, simply scroll down to Maven and java compile. The modules’ selection and related java compile version “target bytecode version” will appear in the right panel. Choose a version greater than 1.5. If a JDK is not accessible, you may have to update it. Build, Execution, and Deployment Preferences -> Compiler -> Java Compiler -> Target bytecode version Setting this value resolved the issue for you.
Option 1: Upgrade the target bytecode version.
- Open your IDE Preferences.
- Then, choose Build Execution and Deployment.
- Then, choose Compiler.
- Next, simply scroll down to Maven and Java Compilation.
- A set of modules and related java compile version “target bytecode version” will appear in the right panel.
- Choose a version greater than 1.5.
- When a jdk is not accessible, you may have to update it.
- Build, Execution, and Deployment Preferences -> Compiler -> Java Compiler -> Target bytecode version Setting this value resolved the issue for me.
Option 2: Include this code in the build plugin’s POM file.
<properties> <java.version>1.8</java.version> <maven.compiler.version>3.8.1</maven.compiler.version> <maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.target>1.8</maven.compiler.target> </properties> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>${maven.compiler.version}</version> <configuration> <source>${java.version}</source> <target>${java.version}</target> </configuration> </plugin> </plugins> </build>
Option 3: Attempt to upgrade the Java version.
First, in pom.xml, configure your language level/release versions as shown.
<properties> <maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.target>1.8</maven.compiler.target> </properties>
Then, simply try changing the Java version.
- Navigate to File -> Project Structure -> Project -> Then Project SDK -> Set it to 11
- Navigate to File -> Project Structure -> Choose Project -> Set the Project language level to 11 by selecting it from the drop-down menu.
- Navigate to File -> Project Structure -> Choose Project -> Choose Modules, then Sources, and then change it to 11.
- Navigate to Settings -> Accessible Build, Execution, Deployment -> Choose Compiler -> Then, Java Compiler -> Finish by changing the bytecode version of the project to 11
- Navigate to Settings -> Access Build, Execution, Deployment -> Choose Compiler -> Then Java Compiler -> Finish by setting it to 11 by selecting Module.
Conclusion
We hope you found our blog post on how to fix the error “Error:java: error: release version 5 not supported in IntelliJ IDEA Ultimate” helpful. If you have any further queries or concerns about this topic, please leave a comment. Thank you for reading; we are always glad when one of our articles provides useful knowledge on this subject!
Related articles
- Top Ways To Create A User-Friendly Online Property Search For Your Real Estate Clients
If you’re running a real estate business, you’re well aware that pretty much most of the paperwork has become automated and it’s time for you really get an education on what you need to use in terms of technology. This is important to make your online presence and services stand out from the competition. Like […]
- List Education Websites for Students, providing a variety of materials and completely free
Everyone would like to get the highest quality of education in order to fulfill their goals. But the more an institution is of high quality and reputable, the more fees they charge. Students typically leave their education in a state of nil and work blue collar jobs to achieve their primary needs. Additionally, they collect […]
- Simple solution to correct the requests.exceptions.ConnectionError: (‘Connection aborted.’ RemoteDisconnected(‘Remote end closed connection without response’)) issue
Python is a popular programming language that can be used widely in a lot of applications. Python is also a good choice as a programming language depending on user background and perspective. Because it is used widely and popular, if you find any errors when using Python. It is a common problem, you face the […]
- “[Errno 61] Connection refused” is occurring even, the program is connecting with the port well and the socket is running in the interfaces.
If you see the “[Errno 61] Connection refused” issue although you checked the program, port, socket and interfaces. Although your program of Python works well in the server and the client, they are installed at the same device. The local IP from my device is connecting with the clients but this IP is not connected […]
- Description “Return by Reference”.
C++ is considered not only as a language of Object Oriented Programming, but also an intermediate level language. It identifies both high and low level languages. It became easy and widely used in computer programs and that is the reason why we should understand the definition and its function as well. Such as Return by […]