Skip to main content
diff options
Diffstat (limited to 'build-kernel/bin/checkJava.bat')
1 files changed, 17 insertions, 0 deletions
diff --git a/build-kernel/bin/checkJava.bat b/build-kernel/bin/checkJava.bat
new file mode 100644
index 00000000..316486be
--- /dev/null
+++ b/build-kernel/bin/checkJava.bat
@@ -0,0 +1,17 @@
+@echo off
+rem Script for checking we have the right version of Java.
+if "%JAVA_HOME%" == "" (
+ echo The JAVA_HOME environment variable is not defined.
+ exit /B 1
+if "%CLASSPATH%" == "" (
+ echo The CLASSPATH environment variable is not defined.
+ exit /B 1
+rem Run java version check with the discovered java jvm.
+"%JAVA_HOME%\bin\java" -classpath "%CLASSPATH%" org.eclipse.virgo.osgi.launcher.JavaVersionChecker
+rem If non-zero exit then either we cannot find the checker or the Java version is incorrect.
+if not "%ERRORLEVEL%"=="0" exit /B %ERRORLEVEL%

Back to the top