Finished java port. Changed ordering of method lookups in receive message to be a bit saner.
Java lib completed