首先确保包的导入正确
package com.atguigu.myproject02.ui;
import com.atguigu.myproject02.bean.Customer;
import com.atguigu.myproject02.service.CustomerList;
import com.atguigu.myproject02.util.CMUtility;
在大目录中添加一个source.txt文件,里面写入需要编译的文件路径和文件名
source.txt的内容为:
在终端输入命令:
在cd 到myproject02下输入:
javac @source.txt
— 编译成功!