Reputation: 295
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.
How can I make it work?
Upvotes: 25
Views: 144893
Reputation: 39
Here is the link to get Java 64bit to allow a larger heap-size. Just select the "Windows Offline (64-bit)" option. https://www.java.com/en/download/manual.jsp
Upvotes: 3
Reputation: 2019
java -Xmx2G -cp .:jsoup-1.8.2.jar CheckSyntax test.xml > test2.xml
32 bit java cant use heapsize > 2G
Upvotes: 8