leaningtech / cheerpj-meta

Run Java 8 applications, libraries, applets, Java Web Start, and Oracle Forms on the web without legacy plugins.
https://labs.leaningtech.com/cheerpj
459 stars 21 forks source link

AWT application does not render #158

Closed apolinario closed 1 year ago

apolinario commented 1 year ago

I'm running an adapted version of https://github.com/amidos2006/Mario-AI-Framework that includes the external files inside the jar file and loads from the jar file as opposed to loading from an external file

However I get a Uncaught (in promise) error while trying to run it:

Screenshot 2023-02-15 at 23 40 35

Here's the *.jar file for reproduction: mario.jar.zip

alexp-sssup commented 1 year ago

The problem is fixed in the following runtime https://cjrtnc.leaningtech.com/20230216/loader.js

Please make sure to remove any previously compiled jar.js, since this new runtime is not compatible with the 2.3 AOT compiler. It should not matter, the level of performance of the internal on-the-fly compiler seems to be sufficient for this game.