Use jfreechart in linux

Source: Internet
Author: User

Use jfreechart in linux

Use jfreechart to generate images. in windows, there is no problem. In linux, cocould not initialize class org. jfree. chart. JFreeChart

JFreeChart cannot be initialized by default in linux.

The Headless mode is a system configuration mode. In this mode, the system lacks a display device, keyboard, or mouse. Although the Headless mode is not what we are willing to see, in fact, we often need to work in this mode, especially for server-side program developers. Because servers (such as hosts that provide Web services) may lack the aforementioned devices, but they need to use the functions they provide to generate corresponding data, to the client (such as the host with the relevant display device, keyboard, and mouse in the browser ).


Solution

Add the following lines in catalina. sh under bin:

Export CATALINA_OPTS = "-Djava. awt. headless = true"
Simply add the beginning of the field.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.