From the project's root directory:
javac src/com/osama/GHide/*.java
To run, assuming no other dependencies:
java -cp ./src com.osama.GHide.EnteringPoint
(Assuming EnteringPoint
has the normal main
function.)
The javac
command compiles all the .java
files in the package's directory. Since they're all in the same package/directory, this works. It also puts the generated .class
files in the same directory, which may or may not be what you want.
To put them in a different directory, use the -d
option and supply a path.
javac -d bin src/com/osama/GHide/*.java
Then to run:
java -cp ./bin com.osama.GHide.EnteringPoint
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…