Plotting from Java

I have a Java (not JavaScript) app that churns some data and I’d like to create and style plotly plots from there. Ideally I’d like the app to generate a local HTML file and then I’ll visualize the plot locally in a browser. Maybe offline if at all possible.
I could not find mention of Java wrappers, but I understand plotly uses a json format to define plots, so I would like to generate such json, containing both data and layout, from my application.
What would be the best approach to do display such json, then?
Thank you!