Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Issue while generating grpc Java stub using protoc v3

I am using Protoc version 3.0 on Ubuntu 14.4 and issuing command

 protoc -I ./ --java_out=. --grpc_out=. --plugin=protoc-gen-grpc=/opt/jvision/grpc/oc/protoc-gen-grpc-java-1.0.0-linux-x86_32.exe ./agent.proto

Same issue for python described here

I am getting this error:

/opt/jvision/grpc/oc/protoc-gen-grpc-java-1.0.0-linux-x86_32.exe: program not found or is not executable
--grpc_out: protoc-gen-grpc: Plugin failed with status code 1.

However if i skip stub part and just issue command

protoc  -I=./ --java_out=. ./agent.proto

It works perfectly fine. Wondering what i am missing.

like image 714
Ammad Avatar asked Dec 06 '25 08:12

Ammad


1 Answers

I haven't enough reputation for comments, so this is questions to author:

  1. Have you checked "/opt/jvision/grpc/oc/protoc-gen-grpc-java-1.0.0-linux-x86_32.exe" path? Is it correct?
  2. Does it have executable flag?
  3. Is it compiled for linux?
like image 194
Radik Kurbanov Avatar answered Dec 08 '25 21:12

Radik Kurbanov



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!