Java clone of LibTMCG