when i in lvl2 edito entering
{
Greenfoot.setWorld(new Level2());
}
in okey no syntaks error but level 2 is not vorking and java error
java.lang.OutOfMemoryError: Java heap space
at java.awt.image.DataBufferInt.<init>(DataBufferInt.java:75)
at java.awt.image.Raster.createPackedRaster(Raster.java:470)
at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:1032)
at java.awt.GraphicsConfiguration.createCompatibleImage(GraphicsConfiguration.java:186)
at greenfoot.util.GraphicsUtilities.createCompatibleTranslucentImage(GraphicsUtilities.java:179)
at greenfoot.GreenfootImage.<init>(GreenfootImage.java:131)
at greenfoot.World.setBackground(World.java:156)
at greenfoot.World.<init>(World.java:124)
at greenfoot.World.<init>(World.java:104)
at Level2.<init>(Level2.java:18)
at Level2.<init>(Level2.java:21)
at Level2.<init>(Level2.java:21)
at Level2.<init>(Level2.java:21)
at Level2.<init>(Level2.java:21)
at Level2.<init>(Level2.java:21)
at Level2.<init>(Level2.java:21)
at Level2.<init>(Level2.java:21)
at Level2.<init>(Level2.java:21)
at Level2.<init>(Level2.java:21)
at Level2.<init>(Level2.java:21)
at Level2.<init>(Level2.java:21)
at Level2.<init>(Level2.java:21)
at Level2.<init>(Level2.java:21)
at Level2.<init>(Level2.java:21)
at Level2.<init>(Level2.java:21)
at Level2.<init>(Level2.java:21)
at Level2.<init>(Level2.java:21)
at Level2.<init>(Level2.java:21)
at Level2.<init>(Level2.java:21)
at Level2.<init>(Level2.java:21)
at Level2.<init>(Level2.java:21)
at Level2.<init>(Level2.java:21)
what i need do? maby 2 lvl work on greenfoot 2.1.0 me version 2.3.0