sqldeveloper无法启动

sqldeveloper无法启动

启动时sql开发者它会在没有任何警告的情况下崩溃。它只显示一个窗口几分之一秒。通过调试:

$ bash -vx /opt/sqldeveloper/sqldeveloper/bin/sqldeveloper

它给出了这个痕迹:

+ exitCode=1
+ ProductCanRestart
+ '[' X = X ']'
+ return 1
+ CanRestart=1
+ '[' 1 = 0 ']'
+ '[' 1 = 245 ']'
+ '[' 1 -gt 0 ']'
${JAVA} -version 2>&1
++ /usr/lib/jvm/java-7-openjdk-amd64/bin/java -Xbootclasspath/a:/usr/lib/jvm/java-7-openjdk-amd64/lib/tools.jar:/usr/lib/jvm/java-7-openjdk-amd64/lib/dt.jar -version
+ s='java version "1.7.0_75"
OpenJDK Runtime Environment (IcedTea 2.5.4) (7u75-2.5.4-1~trusty1)
OpenJDK 64-Bit Server VM (build 24.75-b04, mixed mode)'
expr "$s" : 'java version \"1\.[0-3]'
++ expr 'java version "1.7.0_75"
OpenJDK Runtime Environment (IcedTea 2.5.4) (7u75-2.5.4-1~trusty1)
OpenJDK 64-Bit Server VM (build 24.75-b04, mixed mode)' : 'java version \"1\.[0-3]'
+ '[' 0 -gt 0 ']'
expr "$s" : 'java version \"1\.[0-7].*\"'
++ expr 'java version "1.7.0_75"
OpenJDK Runtime Environment (IcedTea 2.5.4) (7u75-2.5.4-1~trusty1)
OpenJDK 64-Bit Server VM (build 24.75-b04, mixed mode)' : 'java version \"1\.[0-7].*\"'
+ '[' 23 -le 0 ']'
+ return 1

令人上瘾的信息:

$ grep -i jvm ~/.sqldeveloper/4.0.0/product.conf
SetJavaHome /usr/lib/jvm/java-7-openjdk-amd64

$ uname -a
Linux yakrif 3.13.0-27-generic #50-Ubuntu SMP Thu May 15 18:06:16 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

答案1

看起来我遇到了一个问题,我需要修改sql_developer/sqldeveloper/sqldeveloper.sh并添加以下行作为第 2 行:

unset GNOME_DESKTOP_SESSION_ID

不幸的是,我不记得在哪里找到它的参考资料,否则我在这里提到过。

相关内容