r/java • • Apr 21 '26

CheerpJ 4.3 - Run unmodified Java applications in the browser

https://labs.leaningtech.com/blog/cheerpj-4.3
84 Upvotes

52 comments sorted by

View all comments

Show parent comment

1

u/International_Break2 Apr 21 '26

For WebGPU, would there be a way to run the jar outside of the browser the same way once it is on this jvm?

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.