Created
November 16, 2017 12:34
-
-
Save akkida746/e813a015da358cfee27850d6f65a9de6 to your computer and use it in GitHub Desktop.
Windows gRPC plugin commands to generate java objects
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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