答案 0 :(得分:0)
用于编译两个java文件:
EatInTime-SpringBootGrab_Data>javac -d "classes" "src/main/java/DataGrabber/Serial.java"
EatInTime-SpringBootGrab_Data>javac -d "classes" -classpath "src/main/java/DataGrabber/Main.java"
执行主要:
EatInTime-SpringBootGrab_Data>java -classpath "classes" main.java.DataGrabber.Main
希望这有帮助。