Exception in thread "main" java. Lang. exceptionininitializererror

Source: Internet
Author: User
Error message exception in thread "Main" Java. lang. exceptionininitializererrorat Org. hibernate. cfg. configuration. reset (configuration. java: 330) at Org. hibernate. cfg. configuration. <init> (configuration. java: 296) at Org. hibernate. cfg. configuration. <init> (configuration. java: 300) at studenttest. main (studenttest. java: 24) caused by: Java. lang. nullpointerexceptionat Org. hibernate. util. confighelper. getresourceasstream (confighelper. java: 167) at Org. hibernate. cfg. environment. <clinit> (environment. java: 608 )... 4 more
My little hibernatedemo example (hibernate3.6.0) has not been changed. I just changed a setting of eclipse Jee 3.6. As shown in the following figure: When you add the user library, there is a check box "system libary (added to the boot class path)". Do not check this. I just checked it. After the check, it will be fine.
You must exclude that you have correctly imported all required packages. See: http://topic.csdn.net/u/20110205/01/e123e681-60ec-45d1-87c6-3a7862aeca78.html? Seed = 129169960 & R = 72086597 # r_72086597, 5th Floor
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.