Jindent does not format certain files and shows error message Java Error: null or Java Error: OutOfMemoryException. How can I fix this?

By default Jindent's Java VM will be started with 64MB of heap size. For some reasons Jindent run into a memory issue and need more heap size. This can happen if you format huge Java files or if you format a lot of files which generate a huge amount of messages.

To enable more heap size start Jindent with the following command line parameters:
  • Invoking Jindent as pure Java program:

    java -Xms256M -Xmx256M Jindent ...

  • Invoking Jindent as exe file or execution script:

    Jindent -J-Xms256M -J-Xmx256M ...

In these examples a heap size of 256 MB is enabled. To enable different heap size values please change the numbers according your needs.
  • Saturday, 13 April 2013

Comments (0)

Leave a comment

You are commenting as guest.