java - How do the javac command line flags CLASSPATH and -d work in the script below? -
can tell me meaning of batch file code below? know meaning of first line sets path current framework directory need meaning of second , third line.
cd /d %~dp0framework
set classpath=..\framework*;..\framework.;..\framework\lib*;
javac -d . *.java
pause
the line
set classpath=..\framework*;..\framework.;..\framework\lib*;
tells javac
where find classes need (depend on)
the -d .
sets destination directory compiled classes current directory. please note there .
after -d
. .
on command line means current directory (or called working directory in dos). if put in -d c:\tmp
(you might have try c:\\tmp
- not familiar dos) , have such directory, output go there.
hope helps.
Comments
Post a Comment