Revert "Revert "add java ObjectToobjs""

This reverts commit e2931b6f1b0269fd50a2ad5f065540ca08499119.
Revert "Revert "Revert "add java ObjectToobjs"""

This reverts commit a1a65675e20a8460cf24ad3a87e3a5a3240a730c.