A small example project to work with Cap'n proto and Java.
- Install cap'n proto
- On Fedora you can
dnf install capnproto capnproto-devel
- On Fedora you can
- Install cap'n proto for Java
- Put the
capnpc-javabinary somewhere on your$PATH
- Put the
- The schema is stored in
src/main/capnp/foo.capnp - Execute the
build.shto compile the schema to Java files- The generated java file is stored in
src/main/java/de/mkammerer/capnp/test/Capnp.java
- The generated java file is stored in
- See
Mainclass for reading / writing