aboutsummaryrefslogtreecommitdiffstats
path: root/docs/teaching/exercises/scripts/setpaths.bat
blob: 390eec58aceb70e089aba2f0aaf8ed04bf58a048 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
@echo off

rem Change this to be the full path for this directory
set EXTRACTION=c:\aj-@aj.event@

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
set ASPECTJ_HOME=%EXTRACTION%\aspectj
set PATH=%ASPECTJ_HOME%\bin;%PATH%
set CLASSPATH=.;%ASPECTJ_HOME%\lib\aspectjrt.jar;%EXTRACTION%\junit.jar;%JAVA_HOME%\jre\lib\rt.jar