Skip to content

Commit

Permalink
Mention package manager use on linux for suggestions to old JDKs
Browse files Browse the repository at this point in the history
  • Loading branch information
Col-E committed Apr 27, 2024
1 parent 61f80ca commit 69c8b7d
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import picocli.CommandLine.Option;
import software.coley.recaf.launch.info.JavaFxVersion;
import software.coley.recaf.launch.info.JavaVersion;
import software.coley.recaf.launch.info.PlatformType;

import java.util.EnumSet;
import java.util.concurrent.Callable;
Expand Down Expand Up @@ -54,8 +55,10 @@ public static boolean isCompatible(boolean ignoreBundledFx, boolean skipSuggesti
"Multiple problems were found that may lead to incompatibilities with Recaf");
for (CompatibilityProblem problem : problems)
sb.append(" - ").append(problem.getMessage());
if (!skipSuggestions)
sb.append("\nSuggestions:\n - Install OpenJDK 22 or higher from https://adoptium.net/temurin/releases/");
if (!skipSuggestions) {
String suffix = PlatformType.isLinux() ? " or your package manager" : "";
sb.append("\nSuggestions:\n - Install OpenJDK 22 or higher from https://adoptium.net/temurin/releases/").append(suffix);
}
logger.warn(sb.toString());
return false;
}
Expand Down

0 comments on commit 69c8b7d

Please sign in to comment.