Replies: 3 comments 21 replies
|
I'm just working on the same task: reviving this project. I actually managed to do this with Java 21 compiler and recent TeaVM version. Just wait until I publish everything. Or you can checkout |
|
I managed to build the compiler module earlier but index in throwing:
|
BTW, what do you mean by this? With TeaVM it's definitely not possible and it's not a goal for this project. CheerpJ is much closer to "compile JDK into JS and run it in the browser", but they do a lot of hacks to do that, and also has their drawbacks. |
Uh oh!
There was an error while loading. Please reload this page.
Hi! I'm working on reviving an old and abandoned repository for a special project I'm pursuing. I managed to build the decade-old
teavm-javacproject in 2025, which already feels like a significant accomplishment. The project depended heavily on snapshot versions with specific revisions, includinglangtoolsthat I retrieved from JetBrains’ repository. Despite the original Mercurial repositories being long gone, the build was ultimately successful.However, I encountered the following runtime error:
This occurs in a worker script where I have:
Now I'm at a crossroads: is it worth spending the time debugging this error to get a working demo, or would it be more practical to use the latest version of TeaVM with a modern JVM language?
Any thoughts or advice would be appreciated!
P.S.
A question for the community: has anyone attempted to compile the JDK into JavaScript and run it in the browser? I’d love to hear about your experience—what worked, what didn’t, and whether you found it worthwhile.
All reactions