summaryrefslogtreecommitdiffstats
path: root/docs/teaching/exercises/scripts/ajbrowser.bat
diff options
context:
space:
mode:
Diffstat (limited to 'docs/teaching/exercises/scripts/ajbrowser.bat')
-rwxr-xr-xdocs/teaching/exercises/scripts/ajbrowser.bat9
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/teaching/exercises/scripts/ajbrowser.bat b/docs/teaching/exercises/scripts/ajbrowser.bat
new file mode 100755
index 000000000..dd717ccae
--- /dev/null
+++ b/docs/teaching/exercises/scripts/ajbrowser.bat
@@ -0,0 +1,9 @@
+@echo off
+if exist "%JAVA_HOME%\bin\java.exe" goto haveJava
+if exist "%JAVA_HOME%\bin\java.bat" goto haveJava
+if exist "%JAVA_HOME%\bin\java" goto haveJava
+echo java does not exist as %JAVA_HOME%\bin\java
+echo please fix the JAVA_HOME environment variable
+
+:haveJava
+"%JAVA_HOME%\bin\java" -classpath "%ASPECTJ_HOME%\lib\aspectjtools.jar;%JAVA_HOME%\lib\tools.jar;%CLASSPATH%" -Xmx64M org.aspectj.tools.ajbrowser.Main %1 %2 %3 %4 %5 %6 %7 %8 %9