设置java jvm(虚拟机) 的内存在大小

package WanWan;

public class Test {

    /**
     * @param args
     */
    public static void main(String[] args) {
        // TODO Auto-generated method stub
        byte bytes[] = new byte[1024*1024*200];
        bytes[0]=0;
        System.out.println(bytes[0]);
    }
}

跑起这个代码!

可以在 在myeclips中右击Test.java程序,找到文件属性。进入

在单击Test 进入

设置-Xmx400m就可以了 单击Apply 单击ok 在运行程序就行了

posted on 2013-09-05 20:07  邵邵  阅读(524)  评论(0编辑  收藏  举报

淘宝美工兼职招聘