diff --git a/lib/Service/ConfigureCheckService.php b/lib/Service/ConfigureCheckService.php index 50dca48fa..1316676e7 100644 --- a/lib/Service/ConfigureCheckService.php +++ b/lib/Service/ConfigureCheckService.php @@ -238,6 +238,16 @@ private function checkJava(): array { if ($javaPath) { if (file_exists($javaPath)) { \exec($javaPath . " -version 2>&1", $javaVersion); + if (empty($javaVersion)) { + return [ + (new ConfigureCheckHelper()) + ->setErrorMessage( + 'Failed to execute Java. Sounds that your operational system is blocking the JVM.' + ) + ->setResource('java') + ->setTip('https://github.com/LibreSign/libresign/issues/2327#issuecomment-1961988790'), + ]; + } $javaVersion = current($javaVersion); if ($javaVersion !== InstallService::JAVA_VERSION) { return [