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