Documentation

  • Demos
  • Visit our website
  • Contact us
  • MathType

    • Wiris Quizzes

      • Learning Lemur

        • CalcMe

          • MathPlayer

            • Store FAQ

              • VPAT for the electronic documentation

                • MathFlow

                  • BF FAQ

                    • Home
                    • MathFlow
                    • MathFlow SDK for Developers
                    • Composition (Java and Windows)
                    • Composition (Java and Windows)

                    Java runtime options

                    Reading time: 1min

                    Headless support

                    The composition components of the SDK can be used in an environment without a windows server by running Java in headless mode. This requires a Java version of 1.4 or later and the command line switch

                    -Djava.awt.headless=true

                    at the invocation of the java command.

                    Memory and large images

                    When generating very large images, it is necessary to increase the heap size to allow for greater memory usage if the following message appears:

                    "The image is too large, please increase the Java heap size."

                    It is possible to increase the Java heap size by modifying these runtime parameters:

                    java -Xms<initial heap size> -Xmx<maximum heap size>

                    Default values:

                    java -Xms32m -Xmx128m

                    For example:

                    java -Xms128m -Xmx256m or java -Xms128m -Xmx512m

                    Was this article helpful?

                    Yes
                    No
                    Give feedback about this article

                    Related Articles

                    • Resources and performance
                    • Math accessibility
                    • Debugging (what to do if it isn't working)

                    Java runtime options

                    Headless support Memory and large images

                    Making people’s STEM work more meaningful

                    MathType

                    • MathType for Office Tools
                    • MathType for Mac
                    • MathType for Microsoft 365
                    • MathType for Google Workspace
                    • MathType for LMS
                    • MathType for XML Editors
                    • Arabic notation
                    • Our products accessibility
                    • MathType is online

                    WirisQuizzes

                    Learning Lemur

                    Solutions for Education

                    • Blackboard Learn
                    • Brightspace by D2L
                    • Canvas
                    • Google Classroom
                    • Moodle
                    • Schoology

                    Solutions for Publishing Houses

                    Solutions for Technical Writers

                    Solutions for Chemistry

                    Integrations

                    • HTML Editors
                    • MathType in WordPress

                    Pricing

                    Company

                    Careers

                    Blog

                    Contact Us

                    Buy Now

                    Plugin Downloads

                    © Wiris 2025

                    • Cookie Settings
                    • Cookie Policy
                    • Terms of Use
                    • Privacy Policy / GDPR
                    • Student Data Privacy
                    • Compliance
                    • Powered by Helpjuice
                    Expand