Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
<p>Hi
I have written a code and I run it a lot but suddenly this exception occurred please hep me thanks
Exception:</p>

<pre><code>  Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
        at javax.media.j3d.BoundingBox.&lt;init&gt;(BoundingBox.java:86)
        at javax.media.j3d.NodeRetained.&lt;init&gt;(NodeRetained.java:198)
        at javax.media.j3d.LeafRetained.&lt;init&gt;(LeafRetained.java:40)
        at javax.media.j3d.LightRetained.&lt;init&gt;(LightRetained.java:44)
        at javax.media.j3d.DirectionalLightRetained.&lt;init&gt;(DirectionalLightRetained.java:50)
        at javax.media.j3d.DirectionalLight.createRetained(DirectionalLight.java:116)
        at javax.media.j3d.SceneGraphObject.&lt;init&gt;(SceneGraphObject.java:119)
        at javax.media.j3d.Node.&lt;init&gt;(Node.java:178)
        at javax.media.j3d.Leaf.&lt;init&gt;(Leaf.java:50)
        at javax.media.j3d.Light.&lt;init&gt;(Light.java:270)
        at javax.media.j3d.DirectionalLight.&lt;init&gt;(DirectionalLight.java:87)
</code></pre>
