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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user