From 31af1cadd92f8c272e2a4231a8e5a8f0331c8c7c Mon Sep 17 00:00:00 2001 From: Bart van Helvert Date: Thu, 14 Aug 2025 14:38:41 +0200 Subject: [PATCH] [java] Update cmd line proxy builder message to Java 8 Changes the version check to check for Java 8 compatability after the class file format version was increased. Also adds an additional workaround to the error message. #IDEA-374134 GitOrigin-RevId: 818d7c8e54e431648b5a170e97486bf1fec255ba --- .../intellij/execution/runners/ProcessProxyFactoryImpl.java | 4 ++-- java/openapi/resources/messages/JavaBundle.properties | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/java/execution/impl/src/com/intellij/execution/runners/ProcessProxyFactoryImpl.java b/java/execution/impl/src/com/intellij/execution/runners/ProcessProxyFactoryImpl.java index 1529facf5379..89f09dcf8cd0 100644 --- a/java/execution/impl/src/com/intellij/execution/runners/ProcessProxyFactoryImpl.java +++ b/java/execution/impl/src/com/intellij/execution/runners/ProcessProxyFactoryImpl.java @@ -35,8 +35,8 @@ public final class ProcessProxyFactoryImpl extends ProcessProxyFactory { ProcessProxyImpl proxy = new ProcessProxyImpl(StringUtil.getShortName(mainClass)); String port = String.valueOf(proxy.getPortNumber()); JavaSdkVersion jdkVersion = JavaSdkVersionUtil.getJavaSdkVersion(javaParameters.getJdk()); - if (jdkVersion != null && !jdkVersion.isAtLeast(JavaSdkVersion.JDK_1_7)) { - throw new ExecutionException(JavaBundle.message("error.message.ide.does.not.support.starting.processes.using.old.java", + if (jdkVersion != null && !jdkVersion.isAtLeast(JavaSdkVersion.JDK_1_8)) { + throw new ExecutionException(JavaBundle.message("error.message.ide.does.not.support.starting.processes.using.old.java.app", jdkVersion.getDescription())); } diff --git a/java/openapi/resources/messages/JavaBundle.properties b/java/openapi/resources/messages/JavaBundle.properties index 39fa963cfd73..96ea43c6fed7 100644 --- a/java/openapi/resources/messages/JavaBundle.properties +++ b/java/openapi/resources/messages/JavaBundle.properties @@ -1845,8 +1845,10 @@ introduce.parameter.advertisement.text=Press {0} to delegate via overloading met progress.title.collect.method.overriders=Collect method overriders\u2026 remove.var.keyword.text=Remove 'var' -error.message.ide.does.not.support.starting.processes.using.old.java=IDE doesn''t support starting Java processes using Java {0}, \ - the minimum supported version is 1.7. Change the run configuration to use a newer Java version. +error.message.ide.does.not.support.starting.processes.using.old.java.app=IDE doesn''t support starting Java processes using Java {0}, \ + the minimum supported version is Java 8. To solve this, either: \n * Change the run configuration to use a newer Java version. \n \ + * Set the `idea.no.launcher` system property to `true` to disable the IntelliJ launcher (additional features like `soft exit` will stop \ + working). intention.family.name.upgrade.jdk=Upgrade JDK intention.name.upgrade.jdk.to=Upgrade JDK to {0}+