`
lovnet
  • 浏览: 6706804 次
  • 性别: Icon_minigender_1
  • 来自: 武汉
文章分类
社区版块
存档分类
最新评论

Class Not Found Exception解决

 
阅读更多

环境:MyEclipse 6.5

问题:运行Java程序时出现” Class Not Found Exception”异常。

解决:

1.查看你的类(报错指向的那个类)引入的包是否正确,如果不正确,改之。

2.查看你的类(报错指向的那个类)同一工程其他包下是否有相同的文件,如果有,删之。

3如果你编写的是网络程序,有客户端和服务器端,查看客户端和服务器端公共的类所在的包名是否相同,如果不同,改之。

分享到:
评论

相关推荐

    【解决方案】pyspark 初次连接mongo 时报错Class not found exception:com.mongodb.spark.sql.DefaultSource

    部分报错如下: Traceback (most recent call last):  File /home/cisco/spark-mongo-test.py, line 7, in ... File /home/cisco/spark-2.2.0-bin-hadoop2.7/python/lib/pyspark.zip/pyspark/sql/readwriter.py, ...

    php使用ZipArchive提示Fatal error: Class ZipArchive not found in的解决方法

    本文实例讲述了php使用ZipArchive提示Fatal error: Class ZipArchive not found in的解决方法。分享给大家供大家参考。具体如下: ZipArchive是php自带的一个压缩与解压缩函数了,今天理所当然的情况中使用new Zip...

    ClassNotFoundException终极解决办法

    ClassNotFoundException终极解决办法 完美解决ClassNotFoundException,jar包在线查找库,在线下载库

    sun.io.CharToByteConverter支持类

    网上找来了相关java文件,改文件包主要用于解决类似找不到sun.io.CharToByteConverter类及相关方法情况,放到对应引用文件目录下编译即可。 PS:java文件编码格式为UTF-8,如果有其它编码格式,自己调整一下就行,我...

    使用IDEA启动项目遇见ClassNotFoundException的解决方案

    主要介绍了使用IDEA启动项目遇见ClassNotFoundException的正确解决方案,本文给大家介绍的非常详细,对大家的学习或工作具有一定的参考借鉴价值,需要的朋友可以参考下

    PHP连接数据库时遇到的两个错误的解决方案

    提示 Class ‘mysqli’ not found 类似的信息 2、我的解决方案 1)描述 php配置文件中以下这一行的分号去掉 ; extension=mysqli 2)细节 vim /etc/php/php.ini 找到下面这一行并将前面的分号注释去掉,保存退出。 ; ...

    darabonba:Darabonba是一种用于OpenAPI的DSL语言,可以使用生成多语言的SDK,代码示例,测试用例等代码

    Darabonba(原名TeaDSL) 一种OpenAPI应用的领域特定语言。可以利用它为任意样式的接口生成多语言的SDK,代码示例,测试用例,接口编排等。 概念 组件 解析器(当前模块) 生成器(陆续开源中) ...

    mysql-connector-java-5.1.49-bin.jar

    Driver class 'sun.jdbc.odbc.JdbcOdbcDriver' could not be found, make sure the 'MS SQL Server' driver (jar file) is installed. ----- 所以把mysql-connector-java-5.1.49-bin.jar放到lib文件夹下

    greenplum.jar 官方驱动 JDBC

    public static void main(String args[]) throws Exception{ Class.forName("com.pivotal.jdbc.GreenplumDriver"); Connection db = DriverManager.getConnection("jdbc:pivotal:greenplum://192.168.139.128:...

    E-stanl 软件

    throw new Exception("MainDepartment Object not found!"); } } catch (Exception ex) { throw new Exception("MainDepartmentDAL.Search : " + ex.Message); } return SQLAPI....

    FlexGraphics_V_1.79_D4-XE10.2_Downloadly.ir

    - FIX: In the method TFlexPanel.ResizeSelection exception occurred when the number of selected items changed while the method was running. - ADD: Added the method TFlexControl.DoNeedHint - allows ...

    带注释的Bootstrap.java

    * class path and therefore not visible to application level classes. * * @author Craig R. McClanahan * @author Remy Maucherat */ public final class Bootstrap { private static final Log log = ...

    servlet2.4doc

    Overview Package Class Tree Deprecated Index Help PREV NEXT FRAMES NO FRAMES A B C D E F G H I J L P R S U V -------------------------------------------------------------------------------- A ...

    [示例][PHP]生成UUIDs的PHP库.zip

    throw new \Exception('device parser not found'); } UUID 是 通用唯一识别码(Universally Unique Identifier)的缩写,是一种软件建构的标准,亦为开放软件基金会组织在分布式计算环境领域的一部分。其目的,是...

    DevExpress VCL 13.2.5 D7-DXE6 FullSource

    •Q587123 - TcxDBTreeList - The "Expression expected but nothing found" exception occurs when clicking the Append navigator button •Q586815 - TcxDBTreeList - The Insert and Append navigator buttons ...

    Java学生管理系统,Mysql数据库,gui结合

    System.out.println("Class not found exception occir.Message is:"); System.out.println(e11.getMessage()); } try { PreparedStatement prepstmt1; Statement stmt; ResultSet rs...

    struts_2.3.12GA_API文档(chm版本)

    Gets a message based on a key using the supplied args, as defined in MessageFormat, or, if the message is not found, a supplied default value is returned. String getText(String key, String default...

    Bochs - The cross platform IA-32 (x86) emulator

    class, optional commit support on Bochs exit, save/restore file attributes, 1.44 MB floppy support, set file modification date/time - converted the complete hdimage stuff to the new 'hdimage' ...

    flink on yarn 缺少依赖NoClassDefFoundError: com/sun/jersey

    flink-hadoop-compatibility_2.12-1.7.1.jar javax.ws.rs-api-2.0.1.jar jersey-common-2.27.jar ...解决 Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/jersey/api/client/config/ClientConfig

    android 串口驱动

    * Do not remove or rename the field mFd: it is used by native method close(); */ private FileDescriptor mFd; private FileInputStream mFileInputStream; private FileOutputStream mFileOutputStream...

Global site tag (gtag.js) - Google Analytics