Products | Versions |
---|---|
TIBCO Runtime Agent (TRA) | - |
Not Applicable | - |
Resolution:
The command line utility buildear and validateproject requires an X11 Server. It will fail when the server is not running or when the DISPLAY environment variable is not set properly.
Here is a non-exhaustive list of possible error messages.
- Example 1.
Exception in thread "main" java.lang.NoClassDefFoundError: sun/awt/X11GraphicsEnvironment
- Example 2.
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 sun.awt.X11GraphicsEnvironment.access$000(X11GraphicsEnvironment.java:53)
- Example 3.
java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
at java.awt.Font.initializeFont(Font.java:308)
at java.awt.Font.<init>(Font.java:344)
- Example 4.
java.awt.HeadlessException
at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:159)
at java.awt.Window.<init>(Window.java:317)
at java.awt.Frame.<init>(Frame.java:419)
at java.awt.Frame.<init>(Frame.java:384)
at javax.swing.JFrame.<init>(JFrame.java:150)
Workaround
----------
In UNIX environments where an X Server Manager is not configured, some of our customers have been allowed to use a virtual X11 server called XVFB (aka X Virtual FrameBuffer ). Once installed and configured, users should be able to make full usage of the buildear tool.
As a courtesy, we have provided a simple guideline for installing and configuring XVFB on HP-UX, Linux and Solaris. Please see the attached PDF document.