命令行编译多个java文件时间:2022-12-05 17:41:53 如何使用命令行编译多个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