Well, the so-called protobufs Java tutorial doesn't actually mention how to get the protobuf library in your project. This implies that all the code is in your single .java file, which would actually be pretty nice, but this is not the case.
Look at the source and you will see links to com.google.protobuf , which you can find in the java/src/main/java directory in the protobuf source. Copy this into your project and it will have build errors.
The solution is in the README.txt . Yes, maybe I should read this, but shouldn't all the information you need to get started begin with a textbook? In any case, do the following:
And then copy the java files to your project.
Timmmm
source share