../gradlew -PskipCodegen=true installDist
to build, and ./build/install/grpc-examples/bin/hello-world-client
to run the client. This all works, but only for the hello-world tutorial. I have no idea how to do this for my own client/server. I'm able to generate the client/server protobufs using the .proto file. I looked in their readme and Java tutorial and couldn't find out how to compile the actual server (and client) after I write them https://github.com/grpc/grpc-java/blob/master/examples/README.md http://www.grpc.io/docs/tutorials/basic/java.html#try-it-out . Unless there's documentation im missing, does anyone know how to compile a server and client that implements the GRPC classes generated from the .proto file? I did spend a fair amount of time searching. Any advice is much appreciated, thanks.I'm having a lot of trouble figuring out how to compile a GRPC Java server. I looked all over the grpc.io website and closest thing I found was this: http://www.grpc.io/docs/#quick-start , where I run../gradlew -PskipCodegen=true installDist
to build, and./build/install/grpc-examples/bin/hello-world-client
to run the client. This all works, but only for the hello-world tutorial. I have no idea how to do this for my own client/server. I'm able to generate the client/server protobufs using the .proto file. I looked in their readme and Java tutorial and couldn't find out how to compile the actual server (and client) after I write them https://github.com/grpc/grpc-java/blob/master/examples/README.md http://www.grpc.io/docs/tutorials/basic/java.html#try-it-out . Unless there's documentation im missing, does anyone know how to compile a server and client that implements the GRPC classes generated from the .proto file? I did spend a fair amount of time searching. Any advice is much appreciated, thanks.
--
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 grpc-io+u...@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/c2790384-a07a-42ae-a48d-b24980744337%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
compile 'io.grpc:grpc-all:0.9.0'
I created ___Server.java with the start() and main(), and created an inner class that implements the service and implements the methods defined in the interface. So i have all the protocol buffer generated .java files and the server right now.
I just want to compile and run this server (through the terminal). What does it mean exactly by the below (where do i put this dependency)? I used gradle with the helloworld, so i'm assuming i can just use gradle with this new server. I'm new to gradle as well so sorry if this question was dumbOr for Gradle, add to your dependencies:compile 'io.grpc:grpc-all:0.9.0'
So i think my project is missing some of the grpc libraries at run time (io.grpc.ServerBuilder). It compiles properly when i do gradle build, but when i try to run the jar, im getting: NoClassDefFound for the ServerBuilder. This is my current build.gradle file:
...
Am i missing something? I have runtime dependency set for the grpc libs, but I'm still getting NoClassDefFound. Thanks