Considerations and limitations for WebSphere Application Server Liberty Profile
When using Debug on server to test your application, a display issue might occur on the terminal window. You might receive the following error message:
ERROR HPS5018 An unexpected exception has occurred.
Frame unable to display: java.awt.HeadlessException.
If this error occurs in the console, you can fix this problem by following these steps.
- In the ZIETrans Projects view, open the Servers tab.
- Right-click on the WebSphere Application Server Liberty Profile server listed and click on New > Server Environment File > jvm.options.
- Add the value to the file:
-Djava.awt.headless=false
- Save and close the jvm.options file.
- Restart the server to activate the changes.