You do not need to make any installations on production boxes. You need to install it in the build window so that you can create java bindings for the .proto file you are writing. This is similar to a way to generate code from wsdl or xsd. When you generated the code (which helps in serializing / deserializing the binary message), you can link it as a jar and use it like any other jar library. Here is a short tutorial to get you started.
Just add more clarity.
Protobuf = XML Schema .proto = xsd protoc.exe = xjc
The process is as follows
- Create .proto file with meta information
- run .proto via protoc.exe to generate code
- Combining the generated code into a jar file (or just importing all this code into the source tree).
- Add jar file to create path
- Use the generated code in the application for ser / deser
Using maven greatly simplifies 2, 3, and 4
source share