Run jboss 7.1 server with jre 7, IntelliJ IDEA 2025.3.3, UnsupportedClassVersionError
已回答
I'm trying to run jboss 7.1, which doesn't work with jre 8, and with the latest update (IntelliJ IDEA 2025.3.3 ultimate) it wont start.
the jboss run plugin seems to be adding com.intellij.rt.execution.CommandLineWrapper to the classpath and it doesn't work with jre7
~/opt/jdk1.7.0_80/bin/java -Dfile.encoding=UTF-8 -classpath ~/.local/share/JetBrains/Toolbox/apps/intellij-idea-ultimate/lib/idea_rt.jar com.intellij.rt.execution.CommandLineWrapper /tmp/idea_classpath448860208 com.intellij.javaee.oss.process.JavaeeProcess 44113 com.intellij.javaee.oss.jboss.agent.JBoss71Agent
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/intellij/rt/execution/CommandLineWrapper : Unsupported major.minor version 52.0
IDEA requires application server's bundled JDK to be 5.0+, please replace JDK manually at java.lang.ClassLoader.defineClass1(Native Method)I would remove it from the classpath but I cannot find how
thank you
请先登录再写评论。
IntelliJ IDEA 2025.3.3 uses launcher/helper classes during server startup that are compiled for Java 8+, while your JBoss 7.1 configuration is being started with Java 7. Because of that,
com.intellij.rt.execution.CommandLineWrappercannot be loaded by JRE 7, and the server fails before startup.In current IDEA versions, this helper is part of the internal launch mechanism for the application server integration and is not something that can normally be removed from the JBoss run configuration manually.
The recommended workaround is to start JBoss 7.1 externally with Java 7 and then attach the debugger from IntelliJ IDEA, or use Java 8 for the server if your environment allows it.
Thank you for your response and the workaround.
Is there any intention to implement support for the integration of legacy servers that use Java 7?
Being able to manage deployment and debugging directly from the IDE is one of the main reasons I use IntelliJ Ultimate instead of the Community edition.
Hi Matias Estrada , perhaps we can try the 2021.x version to see if it works or not. You can back up your project, and remove the .idea folder and .iml file, and go to File | New | New project from existing sources to let the IDE generate these IDE-based files automatically.
I know it works in previous versions, as it started happening in the latest update.
I just tried with IntelliJ IDEA 2025.1.7 (Ultimate Edition) and it worked without re importing the project
It should be related to https://youtrack.jetbrains.com/issue/IDEA-374134/Upgrade-intellij.java.rt-module-to-Java-8. Yes, using 2025.1.7 is a workaround for this issue.
Someone had already thought about this issue, but it wasn't implemented.
Hello Matias Estrada
The issue is already fixed and available in version 2025.3. According to the ticket history, the error message was improved as well:
You should see it starting from IntelliJ IDEA 2025.3.2 (Build 253.30387.90). If this is not the case, please let me know so I can investigate further.
Have a good day!
IDE doesn't support starting Java processes using Java 7, the minimum supported version is Java 8. To solve this, either:
Change the run configuration to use a newer Java version.
Or
Set the `idea.no.launcher` custom property to `true` to disable the IntelliJ launcher (additional features like `soft exit` will stop working).
Please try it if it helps.
thank you,
I've tried adding `idea.no.launcher=true` with `Help > Edit Custom Properties`
and `-Didea.no.launcher=true` vm option. I've restarted the IDE in both cases.
None of those worked
IntelliJ IDEA 2025.3.4
Build #IU-253.32098.37, built on March 17, 2026
Hi Matias Estrada , sorry to hear that the workaround didn't help.
To be honest, the situation is, starting from 2025.3, java7 or older versions are not supported anymore. We've added such a warning when the SDK is set to JDK 1.7 or older, like this:
So currently, to work with or run the project with JDK 1.7 or older, you need to use the IDEA with the version like 2025.1.7.
Sorry for the inconvenience brought by this issue.
If you are not seeing this warning, please check the SDK via Project Structure. If there are any other scenarios with your project, please kindly let us know, thank you.