如何使用命令行编译多个java文件
文件结构:
method 1
cd javaproject
javac -sourcepath javapath -d classpath javapath/*.java
cd classpath
java a
java b
method 2
cd javaproject/javapath
javac -d ../classpath *.java
cd ../classpath
java a
java b
2022-10-23 21:20:14
cd javaproject
javac -sourcepath javapath -d classpath javapath/*.java
cd classpath
java a
java b
cd javaproject/javapath
javac -d ../classpath *.java
cd ../classpath
java a
java b