Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6957975
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T15:04:49+00:00 2026-05-27T15:04:49+00:00

I am trying to migrate a java application which consist of some graph charts

  • 0

I am trying to migrate a java application which consist of some graph charts from Windows to Linux but I am getting following the exception:

    java.awt.HeadlessException:
    No X11 DISPLAY variable was set, but this program performed an operation which requires it.
    at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:159)
    at java.awt.Window.<init>(Window.java:432)
    at java.awt.Frame.<init>(Frame.java:403)
    at java.awt.Frame.<init>(Frame.java:368)
    at javachart.servlet.Bean.makeURLImage(Unknown Source)
    at javachart.applet.ParameterParser.makeURLImage(Unknown Source)
    at javachart.applet.ParameterParser.populateGc(Unknown Source)
    at javachart.applet.ParameterParser.getDatasetPropertiesFromParameters(Unknown Source)
    at javachart.applet.ParameterParser.getDatasetParameters(Unknown Source)
    at javachart.applet.ParameterParser.getDataset(Unknown Source)
    at javachart.applet.ParameterParser.getDatasets(Unknown Source)
    at javachart.applet.ParameterParser.getOptions(Unknown Source)
    at javachart.servlet.Bean.getOptions(Unknown Source)
    at javachart.servlet.labelLineApp.init(Unknown Source)
    at javachart.servlet.Bean.buildChart(Unknown Source)
    at javachart.servlet.Bean.generate(Unknown Source)
    at javachart.servlet.Bean.getFileName(Unknown Source)
    at org.apache.jsp.www.SaveHtml.chartByHotelSNS_jsp._jspService(chartByHotelSNS_jsp.java:676)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:322)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
    at java.lang.Thread.run(Thread.java:662)

I also tried with setting the Display environment variable through Putty but that also didn’t work.
Can anyone tell me where exactly the problem is?
Is it in the application or linux side?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T15:04:50+00:00Added an answer on May 27, 2026 at 3:04 pm

    You need to somehow set System.setProperty(“java.awt.headless”, “true”);

    Tell the server team to start whatever Java they are starting with an additional command line parameter

    java -Djava.awt.headless=true
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to migrate an application from OC4J to Weblogic, but I can
I am trying to migrate my java application from JBoss 5.1 to JBoss 7.0.
I am trying to migrate a Java application built by Ant to Maven2. Among
I'm trying to migrate a website from Windows 2000 to Win2k3 using the IIS
I'm trying to migrate an existing application from IIS with ServletExec to tomcat. I
trying to migrate my existing asp.net website which is using mysql to Windows Azure
I am trying to migrate my business application which is running on JBoss 5.1
I've a litle big problem with java heap memory I'm trying to migrate from
I am trying to migrate some code from using ElementTree to using lxml.etree and
I'm trying to migrate from Delphi 2007 to Embarcadero RAD Studio XE. I'm getting

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.