Fix Java 8 resolution for MfApi restart, refresh targets after settings, and copy errors to clipboard.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-29 09:34:04 +02:00
co-authored by Cursor
parent f584fd68fe
commit dcceb7b719
14 changed files with 358 additions and 97 deletions
@@ -11,8 +11,8 @@ public sealed class RuntimeEnvironmentValidator
{
List<string> issues = [];
string javaExecutablePath =
PathResolver.ResolvePath(
string? javaExecutablePath =
JavaRuntimeLocator.Resolve(
settings.JavaExecutablePath);
string sonicClientLibraryPath =
@@ -21,10 +21,11 @@ public sealed class RuntimeEnvironmentValidator
string javaVersion = string.Empty;
if (!File.Exists(javaExecutablePath))
if (javaExecutablePath is null)
{
issues.Add(
$"Java wurde nicht gefunden: {javaExecutablePath}");
"Java 8 wurde nicht gefunden. "
+ "Runtime:JavaExecutablePath oder installierte jre1.8* prüfen.");
}
else
{
@@ -80,7 +81,7 @@ public sealed class RuntimeEnvironmentValidator
return new RuntimeValidationResult
{
IsValid = issues.Count == 0,
JavaExecutablePath = javaExecutablePath,
JavaExecutablePath = javaExecutablePath ?? string.Empty,
SonicClientLibraryPath = sonicClientLibraryPath,
JavaVersion = javaVersion,
Issues = issues