Revert "Java threads"

This reverts commit 41766db7f876d300df3200fe8a119c4f18b98a91.