C
文章目录
- 粗心导致example写成c
- ClassNotFoundException
- Cannot run program
粗心导致example写成c
ClassNotFoundException
1、异常信息:
代码语言:javascript复制 java.lang.ClassNotFoundException: cn.itcast.servlet.BaseServlet
.....
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:315)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
java.lang.Thread.run(Thread.java:748)
2、解决方案:
3、总结:
代码语言:javascript复制导入jar包位置:WEB-INF下中的lib文件夹下(必须是lib文件夹)
Cannot run program
1.异常信息
代码语言:javascript复制 idea 报错 Cannot run program
"C:Program FilesJavajdk1.8.0_121binjava" (in directory "G:MAVENPROJECTjpush-api-java-client-3.3.3"):
CreateProcess error=2,
2.解决方案
3.总结
代码语言:javascript复制 maven找不到路径,
无法运行项目