How to use protoc.exe in Windows for eclipse luna?

448 views
Skip to first unread message

Deepak Patel

unread,
Mar 24, 2015, 8:31:24 PM3/24/15
to prot...@googlegroups.com

I am using Eclipse IDE, Version: Luna Release (4.4.0) to build a project. I am trying to use google protocol buffers. But I don't know how to use protoc to compile .proto files and then how to use the source code to build my project. I have downloaded compiler and source code fromhttps://developers.google.com/protocol-buffers/docs/downloads

But how to integrate it with Eclipse IDE, I have no clue. As I am a beginner in protobuf, it will be a great help to me if someone could explain it step by step that how to use the protoc compiler and source code in eclipse.

Thanks in advance.

Deepak Patel

unread,
Mar 24, 2015, 8:31:24 PM3/24/15
to prot...@googlegroups.com

I am using (Windows 7) Eclipse IDE, Version: Luna Release (4.4.0) to build a project. I am trying to use google protocol buffers. But I don't know how to use protoc to compile .proto files and then how to use the source code to build my project. I have downloaded compiler and source code fromhttps://developers.google.com/protocol-buffers/docs/downloads

But how to integrate it with Eclipse IDE, I have no clue. As I am a beginner in protobuf, it will be a great help to me if someone could explain it step by step that how to use the protoc compiler and source code in eclipse.

Thank in advance.

V.B.

unread,
Mar 25, 2015, 9:33:01 AM3/25/15
to prot...@googlegroups.com
We happen to use the protobuf-dt plugin for Eclipse. The project (open-source) is owned by two Google engineers, but it hasn't been updated in a while - it really needs to be updated. It can be configured to compile your .proto files (using protoc.exe) and place the generated files in a location of your choosing. It also supports editing and syntax highlighting of .proto files, which is really nice.
- You can seek additional help at the protobuf-dt google group.

You can always compile your .proto files manually outside of Eclipse too, or write a script for it.

osu...@gmail.com

unread,
Apr 7, 2015, 1:01:22 AM4/7/15
to prot...@googlegroups.com
If you use Eclipse with maven (m2e) you could try this plugin
https://github.com/os72/protoc-jar-maven-plugin

Reply all
Reply to author
Forward
0 new messages