- This topic has 7 replies, 3 voices, and was last updated 14 years, 10 months ago by
Brian Fernandes.
-
AuthorPosts
-
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
Issue is solved.
support-joyMemberM,
Can you please post the steps taken to solve this issue? This will help other forum users.
Thank you.
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
support-joyMemberM,
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.Now you tell me…
I’m still hopeful that you’ll update the Mac platform to support the entire MyEclipse feature set.
Thanks Joy.
support-joyMemberM,
I have escalated your issue to dev team member. They will revert back to you on this.
Sorry for the inconvenience.
Brian FernandesModeratorMork,
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?
-
AuthorPosts