This site requires JavaScript, please enable it in your browser!
Greenfoot back
won0c
won0c wrote ...

2025/11/24

HTML 5 translation error ??

won0c won0c

2025/11/24

#
I'm getting an HTML 5 translation error. Please tell me how to fix it. https://www.greenfoot.org/scenarios/34807 There is no HTML 5 translation of this scenario available. View legacy version (requires Java plugin) The attempted translation produced the following diagnostic messages: INFO: Running TeaVM INFO: Output file built with errors
tmhscs tmhscs

4 days ago

#
Try deleting all of your import statements to awt and swing in your classes. Also try deleting lines of code like "frc = ((Graphics2D)getImage().getAwtImage().getGraphics()).getFontRenderContext();" in your Score class. I think many/all awt/swing methods and/or directly accessing AWT images have no TeaVM/HTML5 translation available which causes it to fail when uploaded to Greenfoot's website. Good luck!
You need to login to post a reply.