Also include the activemq jar. i.e. -cp apache-activemq-4.1-incubator-SNAPSHOT.jar;. or whatever the activemq jar you are using.

To make life easier, I'd recommend looking at using maven. http://maven.apache.org/ or the eclipse IDE.

cob888 wrote:
Thank you for your quick reply !!!
I just do so ,but other error :

C:\incubator-activemq-4.0.2\helloworld>java -cp . App
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/activemq/b
roker/BrokerService
        at App.main(App.java:22)



Reply via email to