JAVA无效的最大堆大小.指定的大小超出了最大可表示大小 [英] JAVA invalid maximum heap size. The specified size exceeds the maximum representable size

查看:211
本文介绍了JAVA无效的最大堆大小.指定的大小超出了最大可表示大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须运行以下命令将代码修复为xml文件:

I have to run this command to fix the code to a xml file:

java -Xmx5G -cp .:jsoup-1.8.2.jar CheckSyntax test.xml > test2.xml

但是它给了我这个错误:

But it gives me this error:

Invalid maximum heap size: -Xmx5G
The specified size exceeds the maximum representable size.

我如何使它工作?

推荐答案

如果JVM是32位的,则不能使用-d64开关

If your JVM is 32-bit you cannot use the switch -d64

这篇关于JAVA无效的最大堆大小.指定的大小超出了最大可表示大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆