-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Exception in thread "main" java.lang.NoClassDefFoundError:
PostPosted: Mon Jun 14, 2010 3:15 am 
Newbie

Joined: Mon Jun 14, 2010 3:10 am
Posts: 1
I have recently installed Hibernate3.0, I am running this program thru command prompt and I am getting the following error. I have copied the jar files into the classpath.

E:\Mansi programs\Advanced Java\Hibernate>java AddEmployee 22 Mansi 50000
Exception in thread "main" java.lang.NoClassDefFoundError: AddEmployee
Caused by: java.lang.ClassNotFoundException: AddEmployee
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: AddEmployee. Program will exit.

Can anyone help me with the above problem?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.