Resolve NoClassDefFoundError: Could not initialize class sun.awt.X11.XToolkit Errror
In case you are running into “NoClassDefFoundError: Could not initialize class sun.awt.X11.XToolkit” error, try the following tip to resolve.