MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
MMirabito
Post subject: Adding Hibernate to a plain java project  PostPosted: Jul 23, 2008 - 03:35 AM
Veteran Member
Veteran Member


Joined: Aug 03, 2003
Posts: 33

I am using MyEclipse 6.5.1 and I am getting a problem.

1) I create a plain java project (not WEB) and create a Test class with a main method.

2) I run the class by selecting the "Run Open Dialog" and it works it displays "hello"

3) I then decide to add Hibernate capabilities and myeclipse includes jar files creates an hibernatesessionfactory and includes an XML cfg

4) Then i just try to run my test class (note I did not add any new code) I just introduced the "hibernate" capabilities and I get the following error from the console. The class path looks to be okay

Code:
java.lang.NoClassDefFoundError: Test
Exception in thread "main"


Any clue if is this is standard behavior or what I need to do to fix it?

Thanks

Max
 
 View user's profile Send private message  
Reply with quote Back to top
support-nipun
Post subject: RE: Adding Hibernate to a plain java project  PostPosted: Jul 23, 2008 - 03:05 PM
Registered Member
Registered Member


Joined: Apr 18, 2007
Posts: 8012

Thats weird. Can you try reproducing this with a new project. Do you face the same issue?

_________________
Nipun
MyEclipse Support
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
MMirabito
Post subject: RE: Adding Hibernate to a plain java project  PostPosted: Jul 24, 2008 - 05:13 AM
Veteran Member
Veteran Member


Joined: Aug 03, 2003
Posts: 33

Hi Nipun,

Yes i did create a new project several times and i get the same problem. So based on you answere I should be able to add hibernate capabilites to a regular java project and still be able to run my class?

thankks

Max
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits