Exception in thread "main" java.lang.InternalError: Can not connect to X11 window server using 'localhost: 11.0'. As the value of the DISPLAY variable at sun.awt.X11GraphicsEnvironment.initDisplay (Native Method) at sun.awt .X11GraphicsEnvironment.
I made a verification code picture automatic generator, normal on Windows; I have reported above Linux.
The reason is that the Windows kernel integrates the GUI, and X Server is started on Linux
Solution: 1. Start X Server
2. Add -Djava.awt.Headless = true on Java running parameters
Problem solve, everyone can see my verification picture: http://www.youkone.com/authimage.ww