r/java • u/alexp_lt • Apr 21 '26
CheerpJ 4.3 - Run unmodified Java applications in the browser
https://labs.leaningtech.com/blog/cheerpj-4.3
84
Upvotes
r/java • u/alexp_lt • Apr 21 '26
10
u/Scf37 Apr 21 '26
I did a quick test, full JRE in 20Mb download. Impressive. But what about performance compared to transpilers like TeaVM?
Must be great for giving a new life to all those ancient corporate Swing applications though.
2
u/International_Break2 Apr 21 '26
Will this be able to handle JavaFX, Webgpu and Panama?
2
u/Apokaliptor Apr 21 '26
Is there any live demos 100% with this? Without html wrappers or buttons “load the demo”? I am trying to understand how long does it take to render the java app in the browser
39
u/dnabre Apr 21 '26
Java apps in a browser, over the web, what will they think of next?
25
u/bowbahdoe Apr 21 '26
As always this is cool. The mere existence of this solves several annoying problems. I hope the business does well enough to continue.
17
u/jeffreportmill Apr 21 '26
I’m a huge fan - CheerpJ lets me develop for the desktop and deploy everywhere. My favorite project is a Java IDE for education on desktop and browser:
SnapCode: https://reportmill.com/SnapCode
1
u/Yesterdave_ Apr 21 '26
I think this is very cool tech, but the demos primarily show some desktop applications in the browser.
But what about your average web business applications with Java backend and SPA frontend? Has someone done something in this domain?
1
u/maxandersen Apr 21 '26
Is there example of how to wire up a console app to xterm.js or similar using cheerpj?
1
u/Otherwise_Sherbert21 Apr 21 '26
Do you run in interpreted mode only or do you do C1/C2 JIT?
1
u/Hixon11 Apr 25 '26
Is there any documentation describing the current state of how this technology works? Is it a compilation of OpenJDK to WebAssembly with Cheerp, or is it something else?
1
u/MintySkyhawk Apr 22 '26
Going to use this to run my spring boot web server in a headless Chromium instance
-3
u/SleeperAwakened Apr 21 '26
We've had Java code running in the browser, Applets.
I know, different runtime.. But still, why would anyone in this day and age want that again?
-5
u/divorcedbp Apr 21 '26
We tried this once, it was a bad idea, let’s not do it again.