- This topic has 1 reply, 1 voice, and was last updated 18 years, 4 months ago by MikeKing.
-
AuthorPosts
-
MikeKingMemberHi,
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
MikeKingMemberHi,
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.jar2.
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.jar3.
The above error fixed but now
NoClassDefFoundError: org/apache/commons/logging/LogFactoryIs 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
-
AuthorPosts