Revert "main java"

This reverts commit 9681a09b1d40d867375917013e272ee48d56e4cc.
Revert "Revert "main java""

This reverts commit 7a73ff802a41601c091932abd643e615db60c1e9.