As long as it sticks to Processing’s API, project Pjs can auto-transpile Java to JS syntax:
Another online sketch demo: