java.lang.OutOfMemoryError in Java

前端 未结 5 1840
轮回少年
轮回少年 2021-01-15 02:00

I want to login to ORKUT through a java progrram without involving IE or Firefox,

I am using HTMLUnit for this in the following manner:

import com.ga         


        
5条回答
  •  再見小時候
    2021-01-15 02:50

    The name of error gives a hint: the Java virtual machine needs more memory. You can increase heap space by adding the flag '-Xmx128M' to the jvm (or increasing the integer value just in case, the java call already has a Xmx parameter with a smaller value.

    With the example above you'll have 128 MByte heap space.

提交回复
热议问题