JDK5.0 Compile Error

I successfully installed JDK5.0 on my Wndows2000 (SP4) laptop, but when I started using it to compile even the simplest Java program, I got the following error:

The system is out of resources.

Consult the following stack trace fro details.

java.lang.OutOfMemoryError: Java heap space

I am stuck here and could anyone help me out?

[360 byte] By [mxie2004] at [2007-9-30 19:40:18]
# 1

Found out the cause for this issue. I have a long list of jars in my CLASSPATH setting. javac of JDK5.0 tried to load all of these jars and got OutOfMemoryError. It's interesting that previous versions of JDK has no problem with my long CLASSPATH.

Once I cut down the CLASSPATH, the OutOfMemoryError was gone.

mxie2004 at 2007-7-7 0:25:00 > top of Java-index,Administration Tools,Sun Connection...