Out of Memory Error
Urban Widmark
urban@svenskatest.se
Sun Apr 11 23:51:00 GMT 1999
On 1999年4月11日, Jeff Andrews wrote:
> this is the output:
> [root@pilsner /root]# ./HelloWorld
> Out of Memory! Returning NIL!
> java.lang.OutOfMemoryError
>> Any thoughts or compiling options I should try?
Try clearing your CLASSPATH and then recompiling:
cola:~/project/gcj>echo $CLASSPATH
.:/usr/local/java/lib/classes.zip:/usr/local/java/lib/classes:/opt/swing-1.1/swingall.jar
cola:~/project/gcj>/opt/egcs-snapshot/bin/gcj --main=tt -o tt tt.java
cola:~/project/gcj>./tt
Out of Memory! Returning NIL!
java.lang.OutOfMemoryError
cola:~/project/gcj>unsetenv CLASSPATH
cola:~/project/gcj>/opt/egcs-snapshot/bin/gcj --main=tt -o tt tt.java
cola:~/project/gcj>./tt
Hello World!
I had the same problem. I'm guessing it has something to do with the jdk
classes.zip being in the classpath.
/Urban
---
Urban Widmark urban@svenskatest.se
Svenska Test AB +46 90 71 71 23
More information about the Java
mailing list