[rabbitmq-discuss] java client library

aniruddh narayan aniruddh.narayan at yahoo.co.in
Mon Sep 7 06:41:02 BST 2009


Hi,
I have downloaded rabbitmq complete bundle and installed the server and the "broker running"
message
is displayed....but whenever i try to compile an example from the "java
client examples"......persay like "HelloServer.java"......i get a
compilation error....like the following

C:\>javac HelloServer.java
HelloServer.java:34: package com.rabbitmq.client does not exist
import com.rabbitmq.client.AMQP;
                           ^
HelloServer.java:35: package com.rabbitmq.client does not exist
import com.rabbitmq.client.Channel;
                          
 ^
HelloServer.java:36: package com.rabbitmq.client does not exist
import com.rabbitmq.client.Connection;
                           ^
HelloServer.java:37: package com.rabbitmq.client does not exist
import com.rabbitmq.client.ConnectionFactory;
                           ^
HelloServer.java:38: package com.rabbitmq.client does not exist
import com.rabbitmq.client.StringRpcServer;
                           ^
HelloServer.java:44: package AMQP does not exist
            int portNumber =
 (args.length > 1) ? Integer.parseInt(args[1]) : AMQ
P.PROTOCOL.PORT;


HelloServer.java:46: cannot find symbol
symbol  : class ConnectionFactory
location: class com.rabbitmq.examples.HelloServer
            ConnectionFactory connFactory = new ConnectionFactory();
            ^
HelloServer.java:46: cannot find symbol
symbol  : class ConnectionFactory
location: class com.rabbitmq.examples.HelloServer
            ConnectionFactory connFactory = new
 ConnectionFactory();
                                                ^
HelloServer.java:47: cannot find symbol
symbol  : class Connection
location: class com.rabbitmq.examples.HelloServer
            Connection conn = connFactory.newConnection(hostName, portNumber);
            ^
HelloServer.java:48: cannot find symbol
symbol  : class Channel
location: class com.rabbitmq.examples.HelloServer
            final Channel ch =
 conn.createChannel();
                  ^
HelloServer.java:51: cannot find symbol
symbol  : class StringRpcServer
location: class com.rabbitmq.examples.HelloServer
            StringRpcServer server = new StringRpcServer(ch, "Hello") {
            ^
HelloServer.java:51: cannot find symbol

Bascially its not able to impor the packages.....


Any help will be much appreciated.....
thanks...aniruddh


      See the Web's breaking stories, chosen by people like you. Check out Yahoo! Buzz. http://in.buzz.yahoo.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20090907/1c66be57/attachment.htm 


More information about the rabbitmq-discuss mailing list