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 javacwhere 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

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -