Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

need better setup documentation #17

Open
dwrensha opened this issue Feb 8, 2015 · 5 comments
Open

need better setup documentation #17

dwrensha opened this issue Feb 8, 2015 · 5 comments

Comments

@dwrensha
Copy link
Member

dwrensha commented Feb 8, 2015

For example, where is java.capnp?

@dwrensha
Copy link
Member Author

dwrensha commented Feb 8, 2015

To answer that specific question: you can tell the schema compiler where to find java.capnp by invoking it like this: capnp compile -I compiler/src/main/schema. Alternatively, you could copy java.capnp into the installed capnp include directory, where you will also find schema.capnp and c++.capnp.

Does that clear things up? What else is causing trouble? (These questions are specifically addressed to Luc Perkins, who initially raised this issue on Twitter, but anyone else should feel welcome to chime in!)

@mfirry
Copy link

mfirry commented Feb 16, 2015

Hi, I followed your suggestions and copied java.capnp onto the include dir and now I get

capnp compile -ojava addressbook.capnp                                                                                                                   
java: no such plugin (executable should be 'capnpc-java')
java: plugin failed: exit code 1

@dwrensha
Copy link
Member Author

Hi @mfirry. Using the -ojava flag like that will only work if capnpc-java is in your current directory or in your PATH. You can instead invoke it like capnp compile -o/path/to/capnpc-java.

See capnp compile --help.

@mfirry
Copy link

mfirry commented Feb 16, 2015

Great. Thanks!

@jalbatross
Copy link

I was receiving the same error as @mfirry, and using the capnp compile -o/path/to/capnpc-java did not work for me.

However, placing capnpc-java and the .cpnp source file in the same directory and using

capnp compile -o./capnpc-java mySourceFile.capnp

Did the trick!

Hopefully someone else struggling with this issue finds this useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants