With JDK-8196218, all UI applications on Linux (Ubuntu 16.04 LTS ) fail with the images build:
eg swingset2 :
build/linux-x86_64-normal-server-release/images/jdk/bin/java -jar ~/SwingSet2.jar
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException: native ops missing
at java.desktop/sun.java2d.xr.XRSurfaceData.freeXSDOPicture(Native Method)
at java.desktop/sun.java2d.xr.XRSurfaceData$XRWindowSurfaceData.invalidate(XRSurfaceData.java:583)
at java.desktop/sun.awt.X11.XWindow.doValidateSurface(XWindow.java:1400)
at java.desktop/sun.awt.X11.XWindow.validateSurface(XWindow.java:1389)
at java.desktop/sun.awt.X11.XWindow.reshape(XWindow.java:1335)
at java.desktop/sun.awt.X11.XContentWindow.reshape(XContentWindow.java:45)
at java.desktop/sun.awt.X11.XWindow.reshape(XWindow.java:1316)