You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by cob888 <cu...@hotmail.com> on 2006/12/01 02:20:09 UTC
Can you help me ?
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???
--
View this message in context: http://www.nabble.com/Can-you-help-me---tf2735572.html#a7631760
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Can you help me ?
Posted by Adrian Co <ac...@exist.com>.
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)
>
>
>
Re: Can you help me ?
Posted by cob888 <cu...@hotmail.com>.
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)
--
View this message in context: http://www.nabble.com/Can-you-help-me---tf2735572.html#a7631970
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Can you help me ?
Posted by Adrian Co <ac...@exist.com>.
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???
>
>