如果出现这个问题,可能是加入了package 包,去掉package字符,再编译就可以运行了 可能是文件名没有写对。 转载于:https://www.cnblogs.com/alisonGavin/p/8663338.html