Get src/main and src/test compiling

`asJava()` representations need adding but this was not the job of this initial commit. I'll make sure this is tracked.