Hello everyone!
i've a problem whith a console application. I've selected "console application" and developed my application. I've compiled the application like JAR and testet on a XP machine in the console windows and all it's ok. I've copied the JAR file on a linux machine and i recive this messasge:
Exception in thread "main" 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:36
at javax.swing.SwingUtilities$SharedOwnerFrame.<init>(SwingUtilities.java:1727)
at javax.swing.SwingUtilities.getSharedOwnerFrame(SwingUtilities.java:1804)
at javax.swing.JDialog.<init>(JDialog.java:253)
at VBA.ExceptionDialog.<init>(ExceptionDialog.java:34)
at VBA.Interaction.MsgBox(Interaction.java:367)
at Module1.main(Module1.jsrc:140)
It appens on the line in which i do a executeQuery. Maybe for some reason there is some problem on the Select statement, but what sound really strange to me and afraid me it's that the application try to open a Dialog/Message box even if the application it's a console application. Teorically it shuold not do any graphical call.
In my code there aren't MSGBOX call, only java#lang#system.out.println().
I don't want to know why the executeQuery goes in troubles, but i want to know why a console application do a graphical call and how to avoid this.
Please give some help, i need it ASAP.
Thanks a lot
Mauro