Running headless JVM in tomcat 5.5

Posted on 2012-09-19
Last Modified: 2012-09-24
Hi Experts,

I am working on a Struts web app that runs in linux box(test site) and I run windows and I am trying to match test env here.

The JVM is running headless for the tomcat server in linux server because we needed to set it for the JClass PDF generation. Because of this I need to find a way to get JFreeChart to generate the chart without JFrame. (I have an article about creating charts on headless systems.)
I want to test in my dev(windows) first before I check in my code. How do I run tomcat with headless jvm?

Question by:dkim18
    LVL 12

    Expert Comment

    by:Sharon Seth
    LVL 12

    Expert Comment

    by:Sharon Seth
    The same arg that is used on your linux server should work on your windows desktop

    Author Comment

    where should I add it? I tried in Tomcat5.5\conf\, but didn't work. (I run tomcat inside of eclipse.
    LVL 86

    Accepted Solution

    Find CATALINA_OPTS and after the last entry, do

    export CATALINA_OPTS="${CATALINA_OPTS} -Djava.awt.headless=true"

    Open in new window

    LVL 86

    Expert Comment


    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
    The purpose of this article is to demonstrate how we can use conditional statements using Python.
    Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
    This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now