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
@@ -44,8 +44,8 @@ public sealed class SonicCredentialTester
"Für den Verbindungstest fehlt ein Container.");
}
string javaPath =
PathResolver.ResolvePath(
string? javaPath =
JavaRuntimeLocator.Resolve(
_runtimeSettings.JavaExecutablePath);
string libraryPath =
@@ -55,10 +55,12 @@ public sealed class SonicCredentialTester
string? toolsPath =
ResolveToolsDirectory();
if (!File.Exists(javaPath))
if (javaPath is null)
{
return CredentialTestResult.Failed(
$"Java wurde nicht gefunden: {javaPath}");
"Java 8 wurde nicht gefunden. "
+ "Runtime:JavaExecutablePath prüfen "
+ @"(z. B. C:\Program Files (x86)\Java\jre1.8.0_481\bin\java.exe).");
}
if (!Directory.Exists(libraryPath))