java编译
1 run command
1 | //he_test |
1.编译代码
javac -d bin/ ./src/HelloWorld.java
bin/下生成com/hlw/test/HelloWorld.class
2.运行程序
java -classpath/-cp ./bin/ com/hlw/test/HelloWorld
2 构建工具
maven
gradle
1 | //he_test |
1.编译代码
javac -d bin/ ./src/HelloWorld.java
bin/下生成com/hlw/test/HelloWorld.class
2.运行程序
java -classpath/-cp ./bin/ com/hlw/test/HelloWorld
maven
gradle