I’m able to run my Hibernate Java application within the MyEclipse IDE but when I launch the class from the command line using
java mmm.Notifier
I get the following error:
Exception in thread “main” java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
at mmm.NotificationDAO.<clinit>(NotificationDAO.java:20
)
at mmm.Notifier.main(Notifier.java:58)
I’ve verified that my CLASSPATH variable contains log4j-1.2.11.jar. Is there any way of deploying the application from MyEclipseIDE when it is a standalone java app? Again, the app runs from within the IDE.