我的代码在Eclipse中编译,但我得到一个ClassNotFound在运行时如何解决它? [英] My code compiles in Eclipse but I get a ClassNotFound at runtime how can I fix it?

查看:193
本文介绍了我的代码在Eclipse中编译,但我得到一个ClassNotFound在运行时如何解决它?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么会导致一个jar成功添加到Eclipse Java项目,但是在运行时,该类的一些类没有发现ClassNotFound异常?

What would cause a jar to be added successfully to an Eclipse Java project but then at runtime some of the classes from that jar are not found with ClassNotFound exceptions?

推荐答案

运行时的CLASSPATH变量可能设置不正确,或者您错过了向jar文件添加一些类。

The CLASSPATH variable at runtime is likely set incorrectly or you missed adding some classes to your jar file.

这篇关于我的代码在Eclipse中编译,但我得到一个ClassNotFound在运行时如何解决它?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆