Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
Mork
Post subject: Exception in thread "main" java.lang.NoClassDefFou  PostPosted: Aug 03, 2010 - 02:42 PM
Veteran Member
Veteran Member


Joined: Dec 09, 2004
Posts: 586

How is it possible to get the dreaded:

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

in MyEclipse?

I have a JPA project, which reverse engineered the JPA entities.

Then, I created a simple Java class to test the JPA, but MyEclipse throws the error above.

Isn't the classpath supposed to be automatically configured?

Please advise.

Thanks.

-- M
 
 View user's profile Send private message  
Reply with quote Back to top
Mork
Post subject:   PostPosted: Aug 03, 2010 - 03:11 PM
Veteran Member
Veteran Member


Joined: Dec 09, 2004
Posts: 586

Issue is solved.
 
 View user's profile Send private message  
Reply with quote Back to top
support-joy
Post subject:   PostPosted: Aug 04, 2010 - 10:43 AM
Registered Member
Registered Member


Joined: Feb 03, 2009
Posts: 3364

M,

Can you please post the steps taken to solve this issue? This will help other forum users.

Thank you.

_________________
Joy
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
Mork
Post subject:   PostPosted: Aug 04, 2010 - 11:38 AM
Veteran Member
Veteran Member


Joined: Dec 09, 2004
Posts: 586

Hi Joy,

The problems all started when I moved over to my mac my MyEclilpse projects from Windows.

The mac shows a path like this

/Library/Genuitec/.....C:\My Eclipse Projects....

For whatever reason, MyEclipse doesn't give me any options to fix these problems.

I just cannot use my WIndows MyEclipse projects directly or even the workspace on the mac that contains them.

HTH

- M
 
 View user's profile Send private message  
Reply with quote Back to top
support-joy
Post subject:   PostPosted: Aug 04, 2010 - 12:20 PM
Registered Member
Registered Member


Joined: Feb 03, 2009
Posts: 3364

M,

Thank you for helping us understand the issue you are facing. Mac and windows are different OS. If you notice the ME installer files are different for different OS.
I am not sure how you have migrated your projects from windows to Mac. If you have used any configuration management tool, it would have resolved your path issue. I am guessing you have physically copied the workspace or projects, hence you see the project path containing windows folder locations, which is not recommended.

_________________
Joy
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
Mork
Post subject:   PostPosted: Aug 04, 2010 - 12:30 PM
Veteran Member
Veteran Member


Joined: Dec 09, 2004
Posts: 586

Now you tell me...

I'm still hopeful that you'll update the Mac platform to support the entire MyEclipse feature set.

Thanks Joy.
 
 View user's profile Send private message  
Reply with quote Back to top
support-joy
Post subject:   PostPosted: Aug 05, 2010 - 05:24 AM
Registered Member
Registered Member


Joined: Feb 03, 2009
Posts: 3364

M,

I have escalated your issue to dev team member. They will revert back to you on this.
Sorry for the inconvenience.

_________________
Joy
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
Support-Brian
Post subject:   PostPosted: Aug 05, 2010 - 12:31 PM
Moderator
Moderator


Joined: Aug 21, 2004
Posts: 2339

Mork,

Just a clarification - all MyEclipse resources (i.e classpath containers, natures, libraries, etc) are designed to be system and OS independent. This means you should be able to move them to other workspaces, other capable MyEclipse installations and OSes without issue. We achieve this by using relative locations and variables in our paths - which the running MyEclipse installation running will correctly interpret and fill out.

What I suspect happened here - is that you may have added some path to your project manually OR we have a bug that we don't know about. Do you happen to have the .classpath file for your project on Windows? Can you paste that here?

_________________
Brian
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
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