Hi,
Welcome to JavaRanch!
First, a bit of business: you may not have read our
naming policy on the way in. It requires that you use a full, real (sounding) first and last name for your display name. "Handles" aren't acceptable, and a single name is not enough (although we would make an exception for Christo if he wanted to learn about Java.) You can change your display name
here. Thanks!
Second, note that you can pass Java options to javac using the -J switch. So one way to force an OutOfMemoryError would simply be to give javac only a small heap to work with. I just tried it, and I can force an OutOfMemoryError while compiling a single trivial class by using
javac -J-Xms2m -J-Xmx2m Foo.java
The "-J-Xms2m -J-Xmx2m" limits the JVM running javac to 2 megs of Java heap -- the compiler can't get very far with that.