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