From: Nathaniel G. A. <nat...@ya...> - 2003-10-17 15:13:03
|
yeah, if you are running jdk 1.4.x you can pass a property to the jvm to run headless. Also, you can give the jar at http://www.eteks.com/pja/en/ a try. Take a look at the user guide section: http://jcharts.sourceforge.net/userGuide/exportingImages.html --- Steven M Sombar <sms...@us...> wrote: > > > > > An answer to the question > > RE: exception Cannot connect to X11 window server > at ChartProperties cp = new ChartProperties() throws exception (Unix) > when jCharts run from cron (disconnected virtual machine). > > It is not unusual for chart image generation software to > require access to an XServer when run under Unix. This is > because of Java, specifically graphical objects (i.e. charts). > In Unix, Java's graphics libraries (the Java AWT) are > implemented on top of XWindows/Motif graphics libraries. > These XWindows/Motif graphics libraries require an XServer. > > The need to make charts on Unix machines that do > not have Xservers on them is common. Some machines > are headless (a machine without a monitor/mouse/keyboard attached) > Or you may be wanting to generate charts automatically, > using cron, without haveing to specifically be logged-in. > > A solution to this problem is to run a virtual X Server. > A virtual X server can run on a machine without any display > hardware. It can also peacefully co-exist with other XServers > that may be running on the same computer. > > One common XServer is Xvfb "a virtual frame buffer XServer" from > the X consortium. > > > Regards, > Steven M Sombar/Austin/IBM@IBMUS W5OHM > smsombar@us..... > Phone 512-838-3353 > > > > > ------------------------------------------------------- > This SF.net email sponsored by: Enterprise Linux Forum Conference & Expo > The Event For Linux Datacenter Solutions & Strategies in The Enterprise > Linux in the Boardroom; in the Front Office; & in the Server Room > http://www.enterpriselinuxforum.com > _______________________________________________ > jCharts-users mailing list > jCh...@li... > https://lists.sourceforge.net/lists/listinfo/jcharts-users __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com |