linux下處理圖片時需加上參數“-Djava.awt.headless=tru
linux下,如果拋出Exception in thread "main" Java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.解決辦法是運行時加上-Djava.awt.headless=true
想了解更多?現在就開始免費體驗