Results 1 to 2 of 2
- 07-16-2009, 01:32 PM #1
Member
- Join Date
- Jul 2009
- Posts
- 1
- Rep Power
- 0
Do not want to set DISPLAY and run X11 window server
I have a batch programme which will load the Spreadsheet into database..
When the DISPLAY is set and X11 window server is running, there is no issue in reading the spreadsheet and loading into database without lauching UI.
But if the display is not set, then there is an issue... Any ideas over this ?? Why does a batch programme requires DISPLAY and X11 window server to be set when there is no need of UI to launch....
Code pasted below :
24 public class Spreadsheet extends com.f1j.swing.JBook
25 {
26 private int failedSheetNum = 0;
27
28 public Spreadsheet()
29 {
30 super();
31 setup();
32 }
Exception is thrown at line 30 :
Exception in thread "main" Logging starts at 15/7/2009 10:52:16
Loading the XML...
This might take a few seconds.Please wait...
Loading the Mapping template...
Loading the input data file...
This might take a few seconds.Please wait...
java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at <Unloaded Method>
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName0(Compiled Code)
at java.lang.Class.forName(Compiled Code)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvir onment(GraphicsEnvironment.java:56)
at <Unloaded Method>
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName0(Compiled Code)
at java.lang.Class.forName(Compiled Code)
at java.awt.Toolkit$2.run(Toolkit.java:492)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:48 5)
at java.awt.SystemColor.updateSystemColors(SystemColo r.java:339)
at <Unloaded Method>
at java.awt.Insets.initIDs(Compiled Code)
at com.f1j.swing.JBook.<init>(DashoA8533)
at com.f1j.swing.JBook.<init>(DashoA8533)
at gdm.ssl.Spreadsheet.<init>(Spreadsheet.java:30)
- 07-26-2009, 05:02 AM #2
Similar Threads
-
change url in parent window from child window
By rakesh_n_mehta in forum JavaServer Pages (JSP) and JSTLReplies: 1Last Post: 07-09-2009, 12:17 PM -
how can i move one frame window to another window
By santhosh_el in forum AWT / SwingReplies: 8Last Post: 06-10-2009, 03:36 PM -
How to connect to Window based file server from a Java Application
By anupbkk in forum Advanced JavaReplies: 2Last Post: 04-06-2009, 05:52 PM -
i want to display decimal values in frame window
By santhosh_el in forum AWT / SwingReplies: 4Last Post: 03-16-2009, 09:07 AM -
how to display chat window in both source and destination machine
By bu.pradeep in forum NetworkingReplies: 1Last Post: 08-08-2008, 03:20 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks