JAVA invalid maximum heap size. The specified size exceeds the maximum displayed size
I need to run this command to fix the code in the 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.
How can I get it to work?
+3
K0pp0
source
to share
2 answers
If your JVM is 32-bit you cannot use the -d64 switch
+4
Sivakumar
source
to share
java -Xmx2G -cp .:jsoup-1.8.2.jar CheckSyntax test.xml > test2.xml
32bit java can not heapsize> 2G
+1
Prozi
source
to share