-2

I have downloaded RabbitMQ and seeking tutorial. However I'm not in Java at all and I don't know how to solve problem.

Problem is that I get this error

error: package com.rabbitmq.client does not exist import com.rabbitmq.client.ConnectionFactory;
error: package com.rabbitmq.client does not exist import com.rabbitmq.client.Connection;
error: package com.rabbitmq.client does not exist import com.rabbitmq.client.Channel;`

I have downloaded server and some client jars from this website, but I don't know how to include all the stuff in Java Project.

Also I'm using netbeans 8.0.2

jjlema
  • 850
  • 5
  • 8
user2935430
  • 49
  • 1
  • 5

1 Answers1

1

That class is on amqp-client jar, be sure that you have that jar in your classpath.

If you are using maven, you can add:

        <dependency>
            <groupId>com.rabbitmq</groupId>
            <artifactId>amqp-client</artifactId>
            <version>${amqp.client.version}</version>
        </dependency>

or donwload the jar from maven central:

http://search.maven.org/#artifactdetails%7Ccom.rabbitmq%7Camqp-client%7C3.4.2%7Cjar

jjlema
  • 850
  • 5
  • 8