求助,用mvn compile然后java -cp能够成功执行输出hello 123。但是右键run java报错The file Main.java isn't on the classpath, the runtime may throw class not found error. Do you want to add the parent folder "Trae/hello123/src/main/java/com/example" to Java source path?
展开
评论
点赞