I believe the easiest path is to deploy your Java Mode sketches to the web.
If your sketches just strictly rely on Processing’s API: Reference / Processing.org
You can try out Pjs to automatically transpile your Java code to JS:
Otherwise, you can consider porting your Java Mode sketch to p5js instead: