Specify in your classpath where the App.class is located. i.e. java -cp . App

cob888 wrote:
Tha sample of  "Helloworld" in activemq ,which I success to compile by
javac;they product four *.class
files(App$HelloWorldBroker.class;App$HelloWorldConsumer.class;App$HelloWorldProducer.class;App.class).

But run error when  I use command  "c:\java App",such as :

C:\incubator-activemq-4.0.2\helloworld>java App
Exception in thread "main" java.lang.NoClassDefFoundError: App

How to deal with the problem???


Reply via email to