$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 14.04.1 LTS Release: 14.04 Codename: trusty $ uname -a Linux hamster 3.13.0-43-generic #72-Ubuntu SMP Mon Dec 8 1
$ wget http://download-cf.jetbrains.com/webide/PhpStorm-8.0.2.tar.gz $ tar -zxf PhpStorm-8.0.2.tar.gz $ ls -lh total 124M drwxrwxr-x 7 ag ag 4.0K Dec 19 16:56 PhpStorm-139.732 -rw-rw-r-- 1 ag ag 124M Dec 10 16:50 PhpStorm-8.0.2.tar.gz
$ sudo apt-get purge openjdk* $ sudo apt-get install software-properties-common $ sudo add-apt-repository ppa:webupd8team/java $ sudo apt-get update $ sudo apt-get install oracle-java8-installer
$ java -version java version "1.8.0_25" Java(TM) SE Runtime Environment (build 1.8.0_25-b17) Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode) $ cd PhpStorm-139.732/bin/ $ ./phpstorm.sh Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=350m; support was removed in 8.0 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:63)
>"C:\Program Files (x86)\Xming\Xming.exe" :0 -clipboard -multiwindow
$ echo $DISPLAY localhost:10.0
$ cd ~/PhpStorm-139.732/bin/ $ ./phpstorm.sh Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=350m; support was removed in 8.0 Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class java.awt.Toolkit at java.awt.Component.<clinit>(Component.java:593) at com.intellij.idea.Main.showMessage(Main.java:221) at com.intellij.idea.Main.showMessage(Main.java:208) at com.intellij.idea.Main.main(Main.java:81)
$ sudo apt-get install xorg $ sudo startx &
$ ./phpstorm.sh Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=350m; support was removed in 8.0 PuTTY X11 proxy: wrong authorisation protocol attemptedException in thread "main" java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment at java.lang.Class.forName0(Native Method) ...
$ xauth list hamster/unix:10 MIT-MAGIC-COOKIE-1 668c9a37a292b40b3e243ebad33b5955 $ xauth add hamster/unix:10 MIT-MAGIC-COOKIE-1 668c9a37a292b40b3e243ebad33b5955
$ cd ~/PhpStorm-139.732/bin/ $ ./phpstorm.sh
Source: https://habr.com/ru/post/246357/
All Articles