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

2022/5/11

Cannot convert to HTML5: Error: Running TeaVM

Ben_Jiang Ben_Jiang

2022/5/11

#
Hi, I'm trying to embed a scenario (source code included) to a web page, but I couldn't because the code failed to convert to HTML5, and it is giving an error: The attempted translation produced the following diagnostic messages: INFO: Running TeaVM https://www.greenfoot.org/scenarios/29526 What should I do to fix it?
danpost danpost

2022/5/11

#
Ben_Jiang wrote...
Hi, I'm trying to embed a scenario (source code included) to a web page, but I couldn't because the code failed to convert to HTML5, and it is giving an error: The attempted translation produced the following diagnostic messages: INFO: Running TeaVM https://www.greenfoot.org/scenarios/29526 What should I do to fix it?
HTML5 does not support "javax.swing" nor "java.awt". Remove all references to those packages and find other ways to do what you did with them. Or, make some appropriate modifications to how things are handled if you cannot.
Ben_Jiang Ben_Jiang

2022/5/12

#
Thanks! I'll try and see how it goes.
You need to login to post a reply.