Why does my Java Swing app throw an error?

Resolution

Heroku is a headless platform, and connect support GUI applications that use javax.swing.JFrame, java.awt.Window.