Add Java support.
Double the memory for compilation, required by gcj.
Test classes for Java.
Update test config for gcj.

Increased memory and time limit.