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