kafka-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Novogrodsky <david.novogrod...@gmail.com>
Subject Re: still looking for Maven POM for Java Kafka
Date Tue, 06 May 2014 18:00:41 GMT
Yury,

Thank you for the reply.  It was helpful.

David Novogrodsky
david.novogrodsky@gmail.com
http://www.linkedin.com/in/davidnovogrodsky


On Tue, May 6, 2014 at 10:47 AM, Yury Ruchin <yuri.ruchin@gmail.com> wrote:

> Looks like Kafka classes is not on your classpath. You should either
> assemble an uber-jar from your project (e. g. using Maven Assembly plugin
> with jar-with-dependencies descriptor ref) or add location of Kafka classes
> to your classpath.
>
>
> 2014-05-06 19:11 GMT+04:00 David Novogrodsky <david.novogrodsky@gmail.com
> >:
>
> > All,
> >
> > I am running some examples from the packet book Apache Kafka.  I am
> > creating a HighLevelconsumer.  I am getting an error when I try to run
> the
> > code:
> > --
> > C:\Users\david.j.novogrodsky\Documents\TestingKafka\target>java -cp
> > Kafka_test-1.0-SNAPSHOT.jar com.cat.HighLevelConsumer test
> > Exception in thread "main" java.lang.NoClassDefFoundError:
> > kafka/consumer/ConsumerConfig
> >         at com.cat.HighLevelConsumer.<init>(HighLevelConsumer.java:32)
> >         at com.cat.HighLevelConsumer.main(HighLevelConsumer.java:61)
> > Caused by: java.lang.ClassNotFoundException:
> kafka.consumer.ConsumerConfig
> >         at java.net.URLClassLoader$1.run(Unknown Source)
> >         at java.net.URLClassLoader$1.run(Unknown Source)
> >         at java.security.AccessController.doPrivileged(Native Method)
> >         at java.net.URLClassLoader.findClass(Unknown Source)
> >         at java.lang.ClassLoader.loadClass(Unknown Source)
> >         at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
> >         at java.lang.ClassLoader.loadClass(Unknown Source)
> > --
> > Is this an error with the POM?
> > David Novogrodsky
> > david.novogrodsky@gmail.com
> > http://www.linkedin.com/in/davidnovogrodsky
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message