Simple experiments to know how to share objects between Java and C code