I am trying to use Protocol buffers in my project(web-app) based in Java. I downloaded zip Protocol Buffers 2.4.0a full source(C++,Java,Python) & Protocol Buffers 2.4.0 compiler-Windows binary.
I was able to build the .proto file and generate the required java classes for my project, using the protoc compiler. Then I included the java folder(protobuf-2.4.0a\java\src\main\java......) contained in the PB's downloaded zipped source code to my project's src directory. However as I can see in my IDE, some of its dependencies of those files are not yet resolved. and I was not able to deserialize the messages when i tried out, (I guess I was able to serialize, however).
Could you help me by letting me know what needs to be fixed ? Shouldnt I be instead putting a jar in my classpath rather than including the PB source code to my src folder?
(I didnt used maven anywhere to download anything. I do not know how to use maven)
Descriptors.javafile in the src code, there is an import statement:com.google.protobuf.DescriptorProtos.*;This package does not exist at all