The java_out just enables Java codegen, not grpc-java codegen. You need to
use protoc-gen-grpc-java as well. I'd *highly *recommend using the
gradle/maven protoc plugins that we document in our main README
<https://github.com/grpc/grpc-java/blob/master/README.md>. If you really
want to run protoc manually, the compiler README
<https://github.com/grpc/grpc-java/blob/master/compiler/README.md> should
help you get it working.

On Wed, Dec 14, 2016 at 6:24 AM, Alessio Sacco <[email protected]>
wrote:

> Hello,
> I'm new in gRPC.
> I'm able to create Java classes for message type from proto file. But I
> can't generate a Java class for the stubs ( e.g. RouteGuideGrpc.java in
> the tutorial ).
> How can I generate a class of that type? I write a command of this type :
>
> protoc -I=$SRC_DIR --java_out=$DST_DIR $SRC_DIR/addressbook.proto
>
> Is it not enough?
>
> Thank you.
> Alessio Sacco
>
> --
> You received this message because you are subscribed to the Google Groups "
> grpc.io" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/grpc-io.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/grpc-io/CAG6eabX9t8jg_35gGWb5gJy%3Dcia%3Di1xf27E_
> CELte4Pi1ZWdKQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/grpc-io/CAG6eabX9t8jg_35gGWb5gJy%3Dcia%3Di1xf27E_CELte4Pi1ZWdKQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/CA%2B4M1oPEHSuUnGk4nNwunw811iKRHk%3DUSEcTPwQ%3D9Z_hM9JSyg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to