facebook

Exception in thread "main" java.lang.NoClassDefFou

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #310288 Reply

    Mork
    Participant

    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

    #310290

    Mork
    Participant

    Issue is solved.

    #310313

    support-joy
    Member

    M,

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

    Thank you.

    #310314

    Mork
    Participant

    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

    #310317

    support-joy
    Member

    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.

    #310318

    Mork
    Participant

    Now you tell me…

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

    Thanks Joy.

    #310338

    support-joy
    Member

    M,

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

    #310347

    Brian Fernandes
    Moderator

    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?

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: Exception in thread "main" java.lang.NoClassDefFou

You must be logged in to post in the forum log in