在ubuntu下安装ItelliJ

http://wiki.jetbrains.net/intellij/Installing_and_running_IntelliJ_IDEA_on_Ubuntu#Running_IntelliJ_IDEA

遇到的问题:

Exception in thread "main" java.awt.HeadlessException: Unable to detect graphics environment
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
    at com.intellij.idea.Main.main(Main.java:62)
解决办法:

 

If you're on the main display, then

export DISPLAY=:0.0

or if you're using csh or tcsh

setenv DISPLAY :0.0
原文地址:https://www.cnblogs.com/gaodong/p/3463152.html