summaryrefslogtreecommitdiffstats
path: root/docs/teaching/exercises/setpaths.bat
blob: bfb9a804629800565fc7d2dd570e66aafa4cc127 (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-oopsla

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