facebook

NoClassDefFoundError: org/jdesktop/layout/GroupLayout$Group

  1. MyEclipse Archived
  2.  > 
  3. Matisse/Swing UI Development
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #256221 Reply

    MikeKing
    Member

    Hi,

    My Matisse program executes successfully from within the Eclipse IDE.
    When I deploy it by Export (ing) the jar file and then try to execute this jar file the following error is obtained
    “NoClassDefFoundError: org/jdesktop/layout/GroupLayout$Group”. This happens at the line
    “new MapItMainForm().setVisible(true);”

    From discussion I found on the internet, it seems that the manifest.mf file should be modified to also contain
    Class-Path: swing-layout-1.0.jar, in addition to the usual Main-Class: …..
    or something like this.

    I tried this but still get the same error.

    Can anyone help?

    Mike King

    #256227 Reply

    MikeKing
    Member

    Hi,

    I must be doing something basic wrong, because I solved the ‘NoClassDefFoundError’ problem, but another different ‘NoClassDefFoundError’ problem occurred. I solved this and another different ‘NoClassDefFoundError’ occurred.

    The history is shown below:

    1.
    NoClassDefFoundError: org/jdesktop/layout/GroupLayout$Group
    solved by
    java -Xbootclasspath/a:”C:\aaaa\MapIt\MapItWorkspace_MyEclipse5\MapIt Model and Hibernate\lib\swing-layout-1.0.jar” -jar MapIt.jar

    2.
    The above error fixed but now
    NoClassDefFoundError: org/Hibernate/HibernateException
    solved by
    java -Xbootclasspath/a:”C:\aaaa\MapIt\MapItWorkspace_MyEclipse5\MapIt Model and Hibernate\lib\swing-layout-1.0.jar;C:\Program Files\MyEclipse 5.0M2\eclipse\plugins\com.genuitec.org.hibernate.eclipse_4.9.200\lib\hibernate\hibernate3.jar” -jar MapIt.jar

    3.
    The above error fixed but now
    NoClassDefFoundError: org/apache/commons/logging/LogFactory

    Is there something I should be doing when using Eclipse/MyEclipse to
    export jar file? How do I know what jar’s must be put on the classpath for the deployed program so that I don’t have to react only after the error has happened?

    Some help will really be appreciated.

    Mike King

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: NoClassDefFoundError: org/jdesktop/layout/GroupLayout$Group

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