facebook

JDOM Erros in Java Eclipse

  1. CodeMix & Angular IDE
  2.  > 
  3. Getting Help
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #643734 Reply

    pizzalover
    Participant

    Error: Unable to initialize main class x

    Above code giving errors when already added the JDOM into my build path. Whats wrong?

    • This topic was modified 4 years, 8 months ago by pizzalover.
    #643740 Reply

    support-swapna
    Moderator

    Hi,

    Can you paste the full error here? There should also be a caused by part in the exception. Possible that the dependent/supporting jars are not added to the project. Please recheck and if you are still seeing issues, then share the project (zipped) along with the jars to help us take a look.

    Apologies for inconvenience caused.

    –Swapna
    Genuitec Support

    #643770 Reply

    pizzalover
    Participant

    Yes,

    So I have a class where I’m trying to parse an XML document but get this.

    Error: Unable to initialize main class utep.cs3331.lab4.files.ChessGameXMLParser
    Caused by: java.lang.NoClassDefFoundError: org/jdom2/JDOMException

    #643771 Reply

    support-swapna
    Moderator

    Hi,

    1. How are you running this program? In a server or as a main class in Eclipse?
    2. Have you added the JDOM 2.x version? From the exception, it looks like it needs that class which isn’t found in the jar you added.
    Please check if the supported jar is added to the project’s Deployment Assembly page (right click on the project > Properties > Deployment Assembly).

    At this point, this looks like project specific issue and not related to CodeMix/Angular. If you can share with us the project, we can take a look.

    –Swapna
    Genuitec Support

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: JDOM Erros in Java Eclipse

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