Ubuntu 12.04 中的 PhpStorm 问题

Ubuntu 12.04 中的 PhpStorm 问题

我无法启动PhpStorm 5在 Ubuntu 12.04 上,它显示以下错误堆栈:我刚刚安装了 Ubuntu,所以它是一个新副本,登录时只更改了 ubuntu 2d,安装了来自 Oracle 的 Java,所以它肯定可用。有人能帮忙吗,非常感谢。提前致谢。

vadim@vadim-MS-7309:~$ '/home/vadim/PhpStorm-121.390/bin/phpstorm.sh'
java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at com.intellij.ide.plugins.PluginManager$2.run(PluginManager.java:182)
    at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.UnsatisfiedLinkError: /home/vadim/jdk1.7.0_09/jre/lib/i386/xawt/libmawt.so: libXtst.so.6: cannot open shared object file: No such file or directory
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1939)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1864)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1825)
    at java.lang.Runtime.load0(Runtime.java:792)
    at java.lang.System.load(System.java:1059)
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1939)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1864)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1846)
    at java.lang.Runtime.loadLibrary0(Runtime.java:845)
    at java.lang.System.loadLibrary(System.java:1084)
    at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:67)
    at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:47)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.awt.Toolkit.loadLibraries(Toolkit.java:1648)
    at java.awt.Toolkit.<clinit>(Toolkit.java:1670)
    at com.intellij.ui.AppUIUtil.updateFrameClass(AppUIUtil.java:81)
    at com.intellij.idea.MainImpl.start(MainImpl.java:46)
    ... 6 more
ERROR: Error while accessing com.intellij.idea.MainImpl.start with arguments: []
java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at com.intellij.ide.plugins.PluginManager$2.run(PluginManager.java:182)
    at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.UnsatisfiedLinkError: /home/vadim/jdk1.7.0_09/jre/lib/i386/xawt/libmawt.so: libXtst.so.6: cannot open shared object file: No such file or directory
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1939)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1864)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1825)
    at java.lang.Runtime.load0(Runtime.java:792)
    at java.lang.System.load(System.java:1059)
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1939)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1864)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1846)
    at java.lang.Runtime.loadLibrary0(Runtime.java:845)
    at java.lang.System.loadLibrary(System.java:1084)
    at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:67)
    at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:47)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.awt.Toolkit.loadLibraries(Toolkit.java:1648)
    at java.awt.Toolkit.<clinit>(Toolkit.java:1670)
    at com.intellij.ui.AppUIUtil.updateFrameClass(AppUIUtil.java:81)
    at com.intellij.idea.MainImpl.start(MainImpl.java:46)
    ... 6 more
ERROR: Error while accessing com.intellij.idea.MainImpl.start with arguments: []
java.lang.AssertionError: Error while accessing com.intellij.idea.MainImpl.start with arguments: []
    at com.intellij.openapi.diagnostic.DefaultLogger.error(DefaultLogger.java:50)
    at com.intellij.openapi.diagnostic.Logger.error(Logger.java:65)
    at com.intellij.ide.plugins.PluginManager$2.run(PluginManager.java:186)
    at java.lang.Thread.run(Thread.java:722)

Exception: java.lang.AssertionError thrown from the UncaughtExceptionHandler in thread "Idea Main Thread"

编辑:问题是操作系统应该与 PhpStorm 相同,我有 64 个操作系统和 32 个 PhpStorm。问题解决了,谢谢。

答案1

请参见他在 Jetbrain 的 youTrack 中的讨论。Ubuntu 和 Java 版本应均为 32 位或 64 位。如果它们不同,则会出现上述错误。因此请确保使用相同的版本。

相关内容