I got the same problem.
Always i have to use HTML's!
please anwser!
MrIncredible
Is this just when you create a jar and not otherwise? Are you sure it's not an exception occuring in your code causing the issue (have a look at the Java console?)
I've just thrown together a quick simple scenario, exported it to a jar and it seems to work fine.
Hi,
In Greenfoot it works fine, but in Jar and Html there is the square.
In the HTML i can click RESET and then it works, but not in the JAR.
MrIncredible
As above, have you checked the Java console for errors?
Yes, of course.
Its very mysterious, isnt it ?
MrIncredible
Have you tried clearing out your Java cache? And could you point to a scenario I could download (the one originally posted doesn't seem to allow downloads) that demonstrates the problem?
Sorry for this question:
How to clear out Java Chache ?
I dont know what i did wrong ! :-(
MrIncredible
Are you running windows? If so see here: http://www.java.com/en/download/help/plugin_cache.xml
There are a couple of bugs in Greenfoot 2.1.0 that can cause this (they'll be fixed in the next release). For instance it can happen if you call Greenfoot.getKey() or similary from the world's constructor.
When does the next release come ?
MrIncredible
The world-class, where this code is written, is a subclass of a scrollworld class, I wrote...
and there I need another constructor to create the scrollworld... x)