Skip to content

Instantly share code, notes, and snippets.

@akkida746
Created November 16, 2017 12:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akkida746/e813a015da358cfee27850d6f65a9de6 to your computer and use it in GitHub Desktop.
Save akkida746/e813a015da358cfee27850d6f65a9de6 to your computer and use it in GitHub Desktop.
Windows gRPC plugin commands to generate java objects
protoc --proto_path=F:\MyProjects\GRPC_Demo_MVN\src\main\java\main --java_out=F:\MyProjects\GRPC_Demo_MVN\src\main\java F:\MyProjects\GRPC_Demo_MVN\src\main\java\main\*.proto
protoc --grpc-java_out=lite:F:/MyProjects/GRPC_Demo_MVN/src/main/java --proto_path="F:/MyProjects/GRPC_Demo_MVN/src/main/java/main" "hello.proto"
@akkida746
Copy link
Author

akkida746 commented Nov 16, 2017

There are 2 commands here. Run them one by one in windows cmd. Make sure protoc-gen-grpc-java.exe is added to windows $PATH. Just download it and add it to System PATH. Use below link for reference:

https://github.com/grpc/grpc-java/tree/master/compiler

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment