Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'build-kernel/bin/setupClasspath.bat')
-rw-r--r--build-kernel/bin/setupClasspath.bat20
1 files changed, 20 insertions, 0 deletions
diff --git a/build-kernel/bin/setupClasspath.bat b/build-kernel/bin/setupClasspath.bat
new file mode 100644
index 00000000..96b7ac97
--- /dev/null
+++ b/build-kernel/bin/setupClasspath.bat
@@ -0,0 +1,20 @@
+@echo off
+rem Construct the CLASSPATH list from the Kernel lib directory.
+
+if "%JAVA_HOME%" == "" (
+ echo The JAVA_HOME environment variable is not defined.
+ exit /B 1
+)
+if "%KERNEL_HOME%" == "" (
+ echo The KERNEL_HOME environment variable is not defined.
+ exit /B 1
+)
+
+for %%G in ("%KERNEL_HOME%\lib\*.jar") do call :AppendToClasspath "%%G"
+rem Remove leading semi-colon if present
+if "%CLASSPATH:~0,1%"==";" set CLASSPATH=%CLASSPATH:~1%
+exit /B 0
+
+:AppendToClasspath
+ set CLASSPATH=%CLASSPATH%;%~1
+ goto :eof

Back to the top