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
View all comments
Show parent comment
1
u/alexp_lt Apr 21 '26
You would need to implement the same JNI interface with a WebGPU library for the desktop.
The opposite option would also be possible, take an existing JNI interface to WebGPU and implement the native methods in JavaScript to make it run in the browser.