Hi Tyler, PATH contains a list of directories which the system searches to find programs. It looks like you added capnpc-java itself (an executable, not a directory) to the PATH. That won't work. You need to add the containing directory to the PATH, like:
PATH=$PATH:/Users/tyler/..../capnproto-maven/output make -Kenton On Mon, Feb 25, 2019 at 3:53 PM <[email protected]> wrote: > I'm attempting to convert > https://github.com/jen20/capnproto-java/tree/maven to generate Kotlin > classes instead of Java classes. > > I've first updated the code to match capnproto-java upstream, and made > several changes to get it to its current point. > > * changed c++11 to c++14 > * changed > https://github.com/jen20/capnproto-java/blob/maven/capnproto-benchmarks/src/main/schema/Makefile > to specify `-I../../../../` > * changed > https://github.com/jen20/capnproto-java/blob/maven/capnproto-benchmarks/src/main/schema/carsales.capnp > and the other schemas in that file to remove the `../../../../` > > but now when running make I get > > > cd capnproto-benchmarks/src/main/schema && /Applications/Xcode.app/ > Contents/Developer/usr/bin/make benchmarkschema > capnp compile -I../../../../ -ojava:../java/org/capnproto/benchmark > carsales.capnp > java: no such plugin (executable should be 'capnpc-java') > java: plugin failed: exit code 1 > make[1]: *** [carsales] Error 1 > make: *** [generate-benchmarks-schema] Error 2 > > I don't really know anything about C++ or C, so I've only gotten this far > through googling. According to the website, the plugin should be found by > either being on the PATH or specifying a slash and it will use the > directory path. If I add the capnpc-java binary from `output/capnpc-java` > to the PATH then instead of a plugin missing failure I get a > > cd capnproto-benchmarks/src/main/schema && /Applications/Xcode.app/ > Contents/Developer/usr/bin/make benchmarkschema > capnp compile -I../../../../ -ojava:../java/org/capnproto/benchmark > carsales.capnp > *** Uncaught exception *** > capnp/compiler/capnp.c++:600: failed: exec(): Not a directory > stack: 108fcf78b 109090188 10908ffd2 > java: plugin failed: exit code 1 > make[1]: *** [carsales] Error 1 > make: *** [generate-benchmarks-schema] Error 2 > > error. > > I don't know if the first solution by placing the binary on the path is > the actual solution, as I'm just running > > PATH=$PATH:/Users/tyler/..../capnproto-maven/output/capnpc-java make > > which doesn't seem right. > > Any help with getting this project running again (so I can modify it) > would be great. > > -- > You received this message because you are subscribed to the Google Groups > "Cap'n Proto" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > Visit this group at https://groups.google.com/group/capnproto. > -- You received this message because you are subscribed to the Google Groups "Cap'n Proto" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. Visit this group at https://groups.google.com/group/capnproto.
