Cannot compile QueuePTPSamples/RequestReply example with Eclipse1.3.1 and Java6 SE 23
When I run Requestor.java as Java Application Eclipse throws error on line
factory = new ActiveMQConnectionFactory(username, password, broker);
Exception in thread "main" java.lang.NoClassDefFoundError: javax/management/j2ee/statistics/Stats at org.apache.activemq.ActiveMQConnectionFactory.(ActiveMQConnectionFactory.java:82)
and execption row in ActiveMQConnectionFactory
JMSStatsImpl factoryStats = new JMSStatsImpl();
What I'm missing ?
Edited by: email@example.com on Dec 28, 2010 4:24 PM
Note that the build.xml includes all of the jars from the lib directory of the installation on the class-path.
The jar you need to include in your eclipse project is ant build.xml should setup the correct build path automatically but if you are working form first principals you need to manually add the required dependencies.