How to setup Protocol Buffers on Windows

This page gives instructions for setting up Protocol Buffers on Windows. I am installing pre-compiled binaries.

Step 1: Download

Download the zip file corresponding to your operating system and computer architecture, from Protocol Buffers GitHub link. I have downloaded the zip file: protoc-3.7.1-win64.zip

Step 2: Unzip the zip file downloaded

Unzip the zip file downloaded in your preferred location

Step 3: Update environment's Path variable

Update your environment’s Path variable to include the path to the protoc executable. 

Add a new System variable.

    Example: 
    Variable name: PROTOBUF_HOME
    Variable value: D:\Softwares\protoc-3.7.1-win64

Update Path variable with the following: %PROTOBUF_HOME%\bin

Step 4: Verify in Command Prompt
C:\Users\Aj>protoc --version
libprotoc 3.7.1

Comments

Popular Posts

Elasticsearch, Logstash, Kibana Tutorial: Load MySQL Data into Elasticsearch

Dropwizard MySQL Integration Tutorial

Send Email in Java