- go to the “Projects” tab in the Netbeans main window
- right-click on your project and select “Properties”
- switch to the “Run” category
- enter “-Xmx256m” in the “VM Options” field
This way you set the maximum heap space to 256mb.
This way you set the maximum heap space to 256mb.
much much much thanks to you all

all work perfect now 
