Exception in thread "main" java.lang.NoClassDefFoundError如何解决

本人初学Hibernate框架,网络上找的视频自学的,刚刚到第一次运行文件就出现这个错误,用的是eclipse,错误代码如下:

Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
    at org.hibernate.boot.spi.XmlMappingBinderAccess.<init>(XmlMappingBinderAccess.java:43)
    at org.hibernate.boot.MetadataSources.<init>(MetadataSources.java:87)
    at org.hibernate.cfg.Configuration.<init>(Configuration.java:123)
    at org.hibernate.cfg.Configuration.<init>(Configuration.java:118)
    at cn.ljs.text.HibernateTest.main(HibernateTest.java:13)
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBException
    at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown Source)
    at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Unknown Source)
    at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
    ... 5 more

文件代码如下:

package cn.ljs.text;

import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.boot.registry.StandardServiceRegistryBuilder;
import org.hibernate.cfg.Configuration;
import org.hibernate.service.ServiceRegistry;
import cn.ljs.pojo.User;

public class HibernateTest {
    public static void main(String[] args) {
        Configuration cfg=new Configuration().configure();
        ServiceRegistry registry=new StandardServiceRegistryBuilder().applySettings(cfg.getProperties()).build();
        SessionFactory factory=cfg.buildSessionFactory(registry);
        Session session=factory.openSession();
        User user=(User) session.get(User.class, 1);
        System.out.println(user);
        session.close();
        factory.close();
    }
}

很简单,就是测试一下布置有没有问题
以下是包图:
图片说明
跟着教学视频走的,代码无误,视频里直接输出了数据库表中的信息,而我就报错...

已自行百度后作出以下修改:

1.将jar包修改到classpath目录下,
图片说明
无效
2.修改classpath等配置,
图片说明
图片说明

path:D:\OracleWINDOWS.X64_180000_db_home\bin;%JAVA_HOME%\bin;%MAVEN_HOME%\bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;D:\java\bin;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\system32\wbem

我半路出家,在外面培训班学过4个月java基础,学的是SSM框架,现在想自己拓展一下学习Hibernate,哪知道一开始就遇到这问题 o(╥﹏╥)o,请高手指点!谢谢!

0

1个回答

0
weixin_43959294
手鞠寿司 多谢 完美解决
4 个月之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
在centOS上安装oracle出现的问题及解决方法
问题:CentOS6.5 静默安装Oracle 11G过程中提示:Exception in thread "main" java.lang.NoClassDefFoundError . 在执行sh  ./database/runInstaller -silent -noconfig -responseFile  ./database/response/db_install.rsp时,提示: $
springboot 启动错误
错误信息 :Exception in thread "main" java.lang.NoClassDefFoundError: ch/qos/logback/classic/turbo/TurboFilterr 解决方案  : 添加依赖 ch.qos.logback logback-classic 1.2.3
第99课:使用Spark Streaming+Kafka实战对论坛网站动态行为的多维度分析及java.lang.NoClassDefFoundError问题解决完整内幕版本解密
第99课:使用Spark Streaming 实战对论坛网站动态行为的多维度分析 /* 王家林老师授课http://weibo.com/ilovepains  每天晚上20:00YY频道现场授课频道68917580*/ /**  * *第99课:使用Spark Streaming 实战对论坛网站动态行为的多维度分析  * 论坛数据自动生成代码,该生成的数据会作为Producer的方式发送给
Kafka-storm的开发错吴总结
工程是基于Maven来构建 1、clojure如果是1.4.0会报如下错误,换成1.6.0即可解决 org.clojure clojure 1.6.0 2.Caused by: java.lang.IllegalStateException: Detected both log4j-over-slf4j.jar AND slf4j-log4j12.jar on the clas
七牛上传文件使用到的jar包
可以按照七牛网上的例子进行上传文件。本人找了好长时间才找齐。要不然就报错java.lang.NoClassDefFoundError: kotlin/TypeCastException
commons-httpclient-3.1-rc1.jar
解决Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/httpclient/methods/RequestEntity异常
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 jersey-core-1.19.4.jar 解决 Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/jersey/api/client/config/ClientConfig
spring-aop-5.0.3.RELEASE.jar
Exception in thread "main" java.lang.NoClassDefFoundError: org/springframework/aop/TargetSource
Akka框架学习中遇到的部分错误和异常及其解决方法
1.Exception in thread "main" java.lang.ClassNotFoundException: akka.remote.RemoteActorRefProvider 原因:缺少akka-remote-2.0.2.jar包 2. Exception in thread "main" java.lang.NoClassDefFoundError: com/go
noggit-0.7.jar
Exception in thread "main" java.lang.NoClassDefFoundError: org/noggit/CharArr 缺少noggit-0.5.jar
imaging.jar
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/imaging/Imaging
怎么解决java.lang.NoClassDefFoundError错误 ,以及类的加载机制
目录前言NoClassDefFoundError错误发生的原因NoClassDefFoundError和ClassNotFoundException区别怎么解决NoClassDefFoundError错误NoClassDefFoundError解决示例 转自http://blog.csdn.net/jamesjxin/article/details/46606307回到顶部前言在日常Java开发中...
Kotlin项目崩溃报 java.lang.ClassNotFoundException异常问题解决思路
今天闲来无事学准备在Android Studio下编译一个Ktolin Demo 运行一下。以为环境配置好了直接运行,编译没有错误,结果运行直接报了这样一个错误:31013-31013/com.yan.newbe E/AndroidRuntime: FATAL EXCEPTION: mainProcess: com.yan.newbe, PID: 31013java.lang.RuntimeExc...
关于给APK签名简记
前言 最近遇到一个问题需要抓取SystemTrace,网上一搜,我去太麻烦了。查找MTK的FAQ,发现有工具,于是索取了apk,但是这个apk需要签名。看到文档中签名的方法有两种:[FAQ17553]如何手动对apk进行签名 或者通过Android.mk重签,添加LOCAL_CERTIFICATE := platform 第一种方法 这种方法是使用命令 java -jar signapk.ja
Java连Mongodb出错的问题
我去mongoodb的官网下载最新版的3.6.0发现报错Exception in thread “main” java.lang.NoClassDefFoundError: com/mongodb/connection/BufferProvider 后来查博客发现需要导出三个包 下载地址三个包都导入之后,问题就解决了
spark整合kafka打包运行错误处理
问题1WARN NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable Exception in thread "main" java.lang.NoClassDefFoundError: kafka/serializ
运行jar出现错误:没有主清单属性、 找不到或无法加载主类、Exception in thread "main" java.lang.NoClassDefFoundError
1、没有主清单属性 解决方法:用winrar打开jar--&amp;gt;META-INF--&amp;gt;META-INF.MF 加上Main-Class: 2、找不到或无法加载主类 加Main-Class时出错 正确格式Main-Class: Test.Test(我的Test.java文件目录是在 /src/Test/Test.java下) 3、Exception in thread &quot;main...
Exception in thread "main" java.lang.NoClassDefFoundError:
错误提示是什么意思?rnException in thread "main" java.lang.NoClassDefFoundError: myprojects/p9/p9
java.lang.NoClassDefFoundError: Exception in thread "main"
刚开始学习并发 遇到一个问题,请高手帮忙解决rnrn//LiftOff.javarn public class LiftOff implements Runnablern protected int countDown=10;rn public static int taskCount=0;rn private final int id =taskCount++;rn public LiftOff()rn public LiftOff(int countDown)rn this.countDown=countDown;rn rn rn public String status()rn return "#"+id+"("+rn (countDown>0?countDown:"LiftOff!")+"), ";rn rn public void run()rn while(countDown-->0)rn System.out.println(status());rn Thread.yield();rn rn rn rn rnrn//MainThread.javarnpublic class MainThread rnrn public static void main(String[] args) rn // TODO 自动生成方法存根rn rn LiftOff launch=new LiftOff();rn launch.run();rn rn rnrnrn1在eclipse中运行输出java.lang.NoClassDefFoundError ,同一包中的其他程序运行无异常rn2使用命令编译运行无误rn怎么解决rnrnrn
Exception in thread "main" java.lang.NoClassDefFoundError
在myeclipse中运行如下程序:rnrnrnrn出现错误rnrnrnException in thread "main" java.lang.NoClassDefFoundErrorrn at com.ebay.sdk.ApiCall.executeByApiName(ApiCall.java:588)rn at com.ebay.sdk.ApiCall.execute(ApiCall.java:348)rn at com.ebay.sdk.call.GetSearchResultsCall.getSearchResults(GetSearchResultsCall.java:623)rn at layer_ebay.ebay.getInfo(ebay.java:109)rn at layer_ebay.ebay.main(ebay.java:39)rnrn问题出在哪???请各位高手指教rnrnrn/*rn * Bay.javarn *rn * Created on November 25, 2005, 2:46 PMrn *rn * To change this template, choose Tools | Options and locate the template underrn * the Source Creation and Management node. Right-click the template and choosern * Open. You can then make changes to the template in the Source Editor.rn * The type javax.xml.bind.annotation.XmlAccessType cannot be resolved. It is indirectly referenced from rn required .class filesrn */rnpackage layer_ebay;rnimport Util.ebay_info;rnimport com.ebay.sdk.call.GetSearchResultsCall;rnimport java.util.*;rnimport java.net.URI;rnrnrnrnimport com.ebay.sdk.*;rnimport com.ebay.sdk.call.GetItemCall;rnimport com.ebay.soap.eBLBaseComponents.*;rnimport com.ebay.sdk.util.eBayUtil;rnimport com.ebay.sdk.helper.ConsoleUtil;rnimport com.ebay.soap.eBLBaseComponents.ItemTypeFilterCodeType;rnpublic class ebay rn// public static void main(String args[])rn// ebay e = new ebay();rn//// java.util.ArrayList books = ebayBooks.getInfo(ISBN);rn// rnrn //Main methodrn rn public static void main(String args[])rn// ebaypriceinfo ebay = new ebaypriceinfo();rn String ISBN = "978-7-111-25611-3";rn// double price =ebay.getBookPrice(ISBN);rn ebay e = new ebay();rn java.util.ArrayList array = e.getInfo(ISBN);rn System.out.println("ok");rn rn public static java.util.ArrayList getInfo(String ISBN) rnrn String input;rn java.util.ArrayList bookList = new java.util.ArrayList();rn try rn rn System.out.print("\n");rn System.out.print("+++++++++++++++++++++++++++++++++++++++\n");rn System.out.print("+ Welcome to eBay SDK for Java ! +\n");rn System.out.print("+ Sample - ConsoleViewItem +\n");rn System.out.print("+++++++++++++++++++++++++++++++++++++++\n");rn System.out.print("\n");rn System.out.println("===== [1] Collect Account Information ====");rn rn rn /**Defines API context under which the API call will be made.rn To successfully make eBay API call, rn you need both API account and a normal eBay account. rn ApiContext also controls additional things like logging, CallRetry etc.rn **/rn ApiContext apiContext = new ApiContext();rn /**rn * Defines credentials to be used for making eBay API call. Set either eBay token (seteBayToken()) rn * or ApiAccount plus eBayAccount since they are exclusive to each other. rn */rn ApiCredential cred = apiContext.getApiCredential();rn ApiAccount ac = cred.getApiAccount();rn eBayAccount ec = cred.geteBayAccount();rnrn //String token = "AgAAAA**AQAAAA**aAAAAA**Cf2GQw**nY+sHZ2PrBmdj6wVnY+sEZ2PrA2dj6wJnY+lC5WGoAydj6x9nY+seQ**t2AAAA**AAMAAA**LvhBZdLbjhD1ThMi6hH3TqiacGtqVcrfAMUA+HpJMrsP1i7PTIB2Mh/+dgJ55tB8L/0REolGiQeFt9Welcss3pbB8HsQHCJIST9LSuQaPeZEMoU/x9Y1DT+hfN8p7i3vZJ9r9WTyUorUs3lBfLrowaEnAnBE40vnnJaMkppx408d1oXyZ5U2XtCiQRwWd8+QFvPiqGXQwCyag9TJLefn7IoQdcBvXwLqY7p4wKVJVW+NxewLvAe7o8JKDWBNvr2bBOb+9uqR+XCbX4x+EryqcabTpuW0PVohOIMJccWCIKtrR1XRWj9ma+/lZ++ufblQ/TTFP10jpA319nw3gZ42Bm8fxGU1Op3ZFNgqsNH+wrqVA1SNTXQHH6ceqSolgK6fDuEH4YJu6v+Lvi16v9CS3tezYgXH926IUWQvcN09fHR4GlhR6VAPxwfRyNimpe1DWbjQfYTwqt0QOjw94iKy7y+4V50uzOTqRfHd2zSdgXGaH52P3eQ1gSaZkTQnHwcr12v2uLFSJKsMOtoUiLlenmPNz0wujo6YCfqrqn9Xq5Od0ohSaFtiCgWI41rWiGZ2BR+4qe11rJIku+Q4VNrQm5/qJk59nn0cwoczstYkbkL2sCx+NN8rXN8yK9EcW4iV6RdEs56UneecUvNRqE+FAPKhB4Q/Gkwqr2TDYSMQFBdhSeEQuL/U0x73ZPcc/MydtXVNHarBrOPP4yvL/zcW9kjQZaxL3NqbzQAhqwjI42vXRDz5XiT5ijUvC8g86D";rn //String eBaySOAPURL = "https://api.sandbox.ebay.com/wsapi";rn String token ="AgAAAA**AQAAAA**aAAAAA**IRTdSg**nY+sHZ2PrBmdj6wVnY+sEZ2PrA2dj6wFk4CoD5aDoQqdj6x9nY+seQ**vDUBAA**AAMAAA**lcSM2XOkj5eE3gATOIK8JKyIAGTmiX9DgXPr9JK61RoYaJd3LClPjiSNYZsf6DZ2sS8sQN+HzKzOp22AmJ7zLVtPEeoFhOn+jRtqe3xRGcWYBRqdGpuNVQnO2DAPVezZ9krezY0cWOsnfmZzDrIkQIM9txY9epPrkKwEk64G40uYP3V3DPxvsAiDuz89VgyojgC64j8MC54AduUsDSnxWhmaU5q2P7UPeI6qCEK9nYk0BS4uvUxwyml1SQlDRhcn2xTx9WjrnqYHDmk+RkvXRNoLuxHIrjJ6g9bm+GAHAY0LAkLsqQ4qHJBsLtmN+4kKO1suPDiFFDH7v1N4TI7Tcl4LZrgEvxLaImx6bzrIIdbNHvV+70ch47m+EaFJ0RW66wzWS47LTt1oC4EHGnFzFh4IQKKRJtf9pQom2Bx4YlY8ckWdtaihi63SdbMpbr6jagAkCO3R/RTuCT5d9zD9rN7nk8nlFtYl4e8GjZ+jxesWKNTlO8w9p+sbmQMOKDcqzVhMjzM/X3AIdLpB2uB1ZhJx6m9cRXRYCoJL84X/eRHAONeV/9uEJ958bNRu3Dumj+loe2FtLH78cqHFnJPH86e8B1k5DKlhHe5ay5+uU39lIuFz27wHR7AgxkTfv34R8RttAgc/YM/U7bQ67xUIPAgh0d5cOrJvm91+Sg2/lv9qgnsdQ9QyUiPvIOxmUcCgmgTDGW74AifyijtwN3zYEk6R6gYvry+SuV0x2mxeErBLrcm53RLVcdzKbZB/8v5Y";rn// String token = "AgAAAA**AQAAAA**aAAAAA**DmOHQw**nY+sHZ2PrBmdj6wVnY+sEZ2PrA2dj6wGloqgC5GCqQydj6x9nY+seQ**yQ8AAA**AAMAAA**lgEzCWVf3IAUD8j6/GQsUQz47xBUdD63nakhvTUDjzsY2YV9QqNNlbI2M7AP3wFHNSH+UJgpqgj/0x+8MdGzPuWZJ1EoYv1ljwtZLb4Lrgfla2b0lcx/tmSL9gSZrXHoRPqcDhGzlsYhEjSB9kEXevYo5vgDdR0IecH2/0fDa2UQB1z92QZF7HoC4sMxBKxK2L46rnx3vKffqeeJQVclPud32reezByAYxRCxXDOQjVtikWPg5GMTTksnq2TENsjYXr2fzR3xtxYVquTtI4XRYX5AnD27VrFI1eWGFw67AZMPfZfPfnD/HdQHXhd9bjTCkffVEdYIqY72oGWe5sXkEhQ4r4x/EpLzw8nqpB0YC0b10Y8/md+pAC8TgPrqmAmWgM3yc2ta1gkd93Qig8sHqtmBxPoSIYfWd9268EYW+JTaRKP7+mqKwa/0TI+66XMxwRcZJ1QaNo/Z+XUiddHi0oBsLPb6oCf4jmTkkSO55YwJm6ZfeVKJylm8jnhRdhwl88z7g2nvpSyk3za4zg0ysxnG/BN5DSOIzySjErGpUCXt2bIc+O6YTr43GDRNlZylAaCAlbuD670M/2T4DBs00C13YhCrskTjkCNc95IKMjPUJf9+XO8nBemLY1I2I3mKIq//pzRq6aA+7/xfui+TQv0My5hXKehPVm+H/uebu3f6mv96hUahpNdd0GJd3tgYgEceu8jolKGd7ge8C/9acvh/KkvKmPxh/1s2MhL0Z/P52vudOGf5HWEBxdFTG";rn String eBaySOAPURL = "https://api.ebay.com/wsapi";rn rn String itemIDStr ;rnrn apiContext.setApiServerUrl(eBaySOAPURL);rn cred.seteBayToken(token);rn apiContext.setRouting("New");rn GetSearchResultsCall api = new GetSearchResultsCall(apiContext);rnrn //api.setQuery("dell");rn //Contains an ISBN(概述国际标准书号) value, EAN value, UPC(条形码) value, ticket keywords, or eBay catalog product ID, plus other meta-data.rn ExternalProductIDType externalProductIDType = new ExternalProductIDType();rn externalProductIDType.setType(ExternalProductCodeType.ISBN);rn externalProductIDType.setValue(ISBN);rn api.setExternalProductID(externalProductIDType);rn // Search flagsrn ArrayList al = new ArrayList();rnrn SearchFlagsCodeType flags[] = new SearchFlagsCodeType[al.size()];rn for(int i = 0; i < al.size(); i++ )rn flags[i] = (SearchFlagsCodeType)al.get(i);rnrn if( flags.length > 0 )rn api.setSearchFlags(flags);rnrn api.setItemTypeFilter(com.ebay.soap.eBLBaseComponents.ItemTypeFilterCodeType.ALL_ITEMS);rnrn PaginationType pt = new PaginationType();rn rn System.out.println(pt);rn rn pt.setEntriesPerPage(new Integer(10));rn pt.setPageNumber(new Integer(1));rn api.setPagination(pt);rnrn // Call eBay.rn SearchResultItemType[] items = api.getSearchResults();rn rn if (items==null) return bookList;rn for(int i = 0; i < items.length ; i++ )rn rn ItemType it = items[i].getItem();rn itemIDStr = it.getItemID(); //.getValue();rnrn GetItemCall gc = new GetItemCall(apiContext);rn DetailLevelCodeType[] detailLevels = new DetailLevelCodeType[] rn DetailLevelCodeType.RETURN_ALL,rn DetailLevelCodeType.ITEM_RETURN_ATTRIBUTES,rn DetailLevelCodeType.ITEM_RETURN_DESCRIPTIONrn ;rn rn gc.setDetailLevel(detailLevels);rn// ItemIDType itemID = new ItemIDType(itemIDStr);rn// ItemType item = gc.getItem(itemID);rn // [2] Create item object.rn ItemType item = gc.getItem(itemIDStr);rn rn rn rn SellingStatusType sst = item.getSellingStatus();rn ListingDetailsType listingDetails = item.getListingDetails();rn // org.apache.axis.types.URI url1 =listingDetails.getViewItemURL();rn rn rn rn String url1 =listingDetails.getViewItemURL();rn Calendar cal = listingDetails.getEndTime();rn Date dat = cal.getTime();rn rn ebay_info book = new ebay_info();rn book.url = url1.toString();rn book.BidCount=sst.getBidCount();rn book.CurrentPrice =sst.getCurrentPrice().getValue();rn book.ItemType = item.getListingType().toString();rn book.PrimaryCategory = item.getPrimaryCategory().getCategoryID();rn book.Quantity = item.getQuantity();rn book.QuantitySold = sst.getQuantitySold();rn book.StartPrice = item.getStartPrice().getValue();rn book.Title =item.getTitle();rn book.date =dat; rn bookList.add(book);rn rn rn rn catch(Exception e) rn e.printStackTrace();rn rn return bookList;rnrnrnrn rn
hadoop2.6.0下打包mahout调用数据模型程序 运行时报错
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/mahout/common/AbstractJob at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.
使用JDBC出现NoClassDefFoundError异常的解决方法
今天在学习JDBC的过程中,运行一个JDBC的Java时报错,错误如下: Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class me.gacl.utils.JdbcUtils at me.gacl.demo.Test.main(Test.java:30) 查了一下,这个异
Exception in thread "main"java.lang.NoclassDefFoundError
出错Exception in thread "main"java.lang.NoclassDefFoundErrorrn代码如下:rn-----------------------rnpackage hello;rnpublic class Hellorn public static voidrn main(String arg[]) rn System.out.println(new String("Hello, World!"));rn rn
exception in thread "main" java.lang.NoclassDefFoundError:***
我想运行程序的话就提示这样:rnexception in thread "main" java.lang.NoclassDefFoundError:***rn是不是类库的问题,还是什么问题?
Exception in thread "main" java.lang.NoClassDefFoundError:***
同样的class在别的机器上可以RUNrn为什么到了我的机器上就出现这个提示啊rn我的PATH和他们的是一样的
spark常见问题解决
(1)执行spark-shell进入交互界面时INFO信息过多          解决方法:          cd /usr/local/spark/conf          cp log4j.properties.template log4j.properties         编辑log4j.properties,将“log4j.rootCategory=INFO,con
storm+kafka整合异常处理
[摘要:1 拷贝kafka依附jar包到storm lib [root@hdmaster libs]# cp kafka_2.10-0.8.2.1.jar /opt/apache-storm-0.9.5/lib/ [root@hdmaster libs]# cp scala-library-2.10.4.ja]  1 拷贝kafka依赖jar包到storm lib [root@hdmast
项目启动的时候报Exception in thread main 错误解决方法
  项目在运行过程中报错: Exception  in thread main 找到window---preferences--java--installed jres--找到对应jdk编辑default VM arguments。添加内存设置  -Xms512m -Xmx1024m -XX:MaxPermSize=256m 如果填写不对也可能会造成这个错误。 ...
Scala 程序运行中遇到的错误
网上有好多出现相同问题的,但是都没说解决办法,下面是自己遇到的一些问题。 后续遇到会继续补充 问题是在本机运行的 IDEA 里面遇到的。 错误1 Exception in thread "main" java.lang.NoClassDefFoundError: scala/Product$class at org.apache.spark.SparkConf$Deprecated
Exception in thread "main" java.lang.NoClassDefFoundError 如何解决
使用 javac Hello.java 成功rn使用 java Hello 失败 出现 Exception in thread "main" java.lang.NoClassDefFoundErrorrnrn配置是这样的 classPath .;C:\j2sdk1.5.0\lib\dt.jar;C:\j2sdk1.5.0\lib\tools.jar;C:\j2sdk1.5.0;C:\Tomcat 5.0\webapps\ROOT\WEB-INF\classesrnrnJAVA_HOME C:\j2sdk1.5.0rnrnPath C:\j2sdk1.5.0\bin;C:\j2sdk1.5.0;C:\Tomcat 5.0rn
Storm实战常见问题及解决方案
该文档为实实在在的原创文档,转载请注明: http://blog.sina.com.cn/s/blog_8c243ea30101k0k1.html 类型 详细 备注 该文档是群里几个朋友在storm实战中遇到的一些问题,及其对应解决办法。     相关描述 ²  其他相关文档请参考新浪博客http://blo
slf4j-api-1.7.6.jar
异常四. Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory 缺少 slf4j-api-1.7.6.jar 包
jboss7与jdk8搭建报错
直接下载jdk8和jboss7 jdk8下载地址: https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html jboss7下载地址: http://jbossas.jboss.org/downloads   然后启动后报错: Java HotSpot(TM) 64-Bit ...
noggit-0.5.jar
异常七. Exception in thread "main" java.lang.NoClassDefFoundError: org/noggit/CharArr 缺少noggit-0.5.jar
让MapDB3运行起来
无意间看到MapDB,然后决定写个demo以便以后能使用上。 然而MapDB3使用了java8,这需要在eclipse添加上java8. 然而并部好用,报了一个类找不到的错误 Exception in thread "main" java.lang.NoClassDefFoundError: kotlin/jvm/internal/Intrinsics 经过google发现了一门新的语
WebServices CXF开发常见异常及解决方法
======================================================异常1================================================================= 2011-7-14 9:55:15 org.apache.cxf.service.factory.ReflectionServiceFactoryB
造成java.lang.NoClassDefFoundError错误的原因及解决办法
1、项目依赖的jar包未全部导入; 如:java.lang.NoClassDefFoundError: Could not initialize class com.esms.common.util.XmlUtil,当你去查这个类的时候发现这个类是存在,之所以抱着个错是 因为在这个类里面的方法引用了其他jar包中的类的方法,而这个被引用的这个jar包刚好缺失,所以抛出这个错。 解决办法:一层
CDH安装中遇到的问题解决
--------------------------cdh中重装hbase后之前的脚本残留解决--------------------- 1.切换到zookeeper的bin目录;  //zookeeper-client status命令可以找到该bin目录 2.执行$sh zkCli.sh 输入 ls / 4.输入rmr /hbas
启动web容器服务后出现 Xmemcached-Reactor-3错误
Exception in thread “Xmemcached-Reactor-3” java.lang.NullPointerException at org.slf4j.impl.Log4jLoggerAdapter.error(Log4jLoggerAdapter.java:485) at net.rubyeye.xmemcached.impl.MemcachedHandl
算法-第四版-练习1.2.11解答
根据Date的API实现一个SmartDate类型,在日期非法时抛出一个异常。 /** * Description : * Author : mn@furzoom.com * Date : Sep 26, 2016 5:40:07 PM * Copyright (c) 2013-2016, http://furzoom.com All Rights Re
文章热词 机器学习教程 Objective-C培训 交互设计视频教程 颜色模型 设计制作学习
相关热词 mysql关联查询两次本表 native底部 react extjs glyph 图标 python菜鸟教程main 区块链解决