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
445 stars 21 forks source link

Failed to read image with awt.Toolkit #107

Closed oeway closed 3 years ago

oeway commented 3 years ago

If I mount a jpeg image into the file system and read with Image img = Toolkit.getDefaultToolkit().createImage(file_path), it returns null.

This is it being used in my project which currently failed and I had to switch to ImageIO.

(I tried to create a minimal test case, but not sure how to mount a file to https://javafiddle.leaningtech.com/)

alexp-sssup commented 3 years ago

This issue might be fixed with endpoint: https://cjrtnc.leaningtech.com/20201008/loader.js

We can't be sure without a full test case, if the problem is still there please provide one.

oeway commented 3 years ago

@alexp-sssup It works, thanks!