My Oracle Support Banner

ERROR: "No X11 DISPLAY variable was set, but this program performed an operation which requires it." When Attempting to Run Any Java Database Utility (Doc ID 2467126.1)

Last updated on JUNE 20, 2024

Applies to:

Primavera P6 Enterprise Project Portfolio Management - Version 15.1.0.0 and later
Identity Manager - Version 12.2.1.4.0 to 12.2.1.4.0 [Release 12c]
Information in this document applies to any platform.

Symptoms

When attempting to run any database utility for the P6 database, the following error occurs:

ERROR

Error : java.lang.ExceptionInInitializerError
java.lang.ExceptionInInitializerError
  at com.primavera.database.tools.dbmt.gui.ActionApplicationRunner.start(ActionApplicationRunner.java:77)
  at com.primavera.database.tools.dbmt.Main.main(Main.java:91)
Caused by: 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:204)
  at java.awt.Window.(Window.java:536)
  at java.awt.Frame.(Frame.java:420)
  at javax.swing.JFrame.(JFrame.java:233)
  at com.primavera.database.tools.dbmt.gui.ApplicationUI.(ApplicationUI.java:60)
  at com.primavera.database.tools.dbmt.gui.ApplicationUI.(ApplicationUI.java:54)
  ... 2 more


STEPS

The issue can be reproduced at will with the following steps:
1. In a Linux Terminal, change directory to the database folder that contains the utilities
2. Run the validate.sh or any other database utilities
3. Error is displayed

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.