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
@@ -46,7 +46,7 @@ public sealed class DatabaseSettings
public sealed class RuntimeSettings
{
public string JavaExecutablePath { get; set; } =
@"Runtime\bin\java.exe";
@"C:\Program Files (x86)\Java\jre1.8.0_481\bin\java.exe";
public string SonicClientLibraryPath { get; set; } =
@"Runtime\SonicClient\lib";
@@ -72,10 +72,18 @@ public sealed class DatabaseSonicConnection
"Bitte die Einstellungen öffnen und ein Benutzerprofil hinterlegen.");
}
string javaExecutablePath =
PathResolver.ResolvePath(
string? javaExecutablePath =
JavaRuntimeLocator.Resolve(
runtimeSettings.JavaExecutablePath);
if (javaExecutablePath is null)
{
throw new InvalidOperationException(
"Java 8 wurde nicht gefunden. " +
"Bitte Runtime:JavaExecutablePath auf " +
@"jre1.8*\bin\java.exe setzen.");
}
string sonicClientLibraryPath =
PathResolver.ResolvePath(
runtimeSettings.SonicClientLibraryPath);