eclipse项目中启动项目无法载入类

时间:2023-03-08 23:30:02
eclipse项目中启动项目无法载入类

在eclipse 项目中,当载入jar包后,加载里面的包,可以找到此类,但是编译运行的时候报错java.lang.ClassNotFoundException:

1,路径名未写正确;

2,配置出错;

右键项目->Deployement Assembly->查看是否配置Path

eclipse项目中启动项目无法载入类

是否加入jar包的路径。

解决:Add->

eclipse项目中启动项目无法载入类

选择此项->

eclipse项目中启动项目无法载入类

选择要加入的build path entries->完成即可。