无法在 Ubuntu 上运行 sqldeveloper

cat*_*h23 3 sqldeveloper software-installation 14.04

我尝试sqldeveloper通过以下方式安装:

\n\n
Download SQL Developer from Oracle website (I chose Other Platforms download).\n\nExtract file to /opt:\n\nsudo unzip sqldeveloper-*-no-jre.zip -d /opt/\nsudo chmod +x /opt/sqldeveloper/sqldeveloper.sh\nLinking over an in-path launcher for Oracle SQL Developer:\n\nsudo ln -s /opt/sqldeveloper/sqldeveloper.sh /usr/local/bin/sqldeveloper\nEdit /usr/local/bin/sqldeveloper.sh replace it\'s content to:\n\n#!/bin/bash\ncd /opt/sqldeveloper/sqldeveloper/bin\n./sqldeveloper "$@"\nRun SQL Developer:\n\nsqldeveloper\n
Run Code Online (Sandbox Code Playgroud)\n\n

但它显示了下一个输出:

\n\n
nazar@lelyak-desktop:/opt/sqldeveloper\xe2\x9f\xab ./sqldeveloper.sh \n\n Oracle SQL Developer\n Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.    \n\n LOAD TIME : 401#\n# A fatal error has been detected by the Java Runtime Environment:\n#\n#  SIGSEGV (0xb) at pc=0x00007f3b2dcacbe0, pid=20351, tid=139892273444608\n#\n# JRE version: Java(TM) SE Runtime Environment (7.0_65-b17) (build 1.7.0_65-b17)\n# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.65-b04 mixed mode linux-amd64 compressed oops)\n# Problematic frame:\n# C  0x00007f3b2dcacbe0\n#\n# Core dump written. Default location: /opt/sqldeveloper/sqldeveloper/bin/core or core.20351\n#\n# An error report file with more information is saved as:\n# /tmp/hs_err_pid20351.log\n#\n# If you would like to submit a bug report, please visit:\n#   http://bugreport.sun.com/bugreport/crash.jsp\n#\n/opt/sqldeveloper/sqldeveloper/bin/../../ide/bin/launcher.sh: line 1193: 20351 Aborted                 (core dumped) ${JAVA} "${APP_VM_OPTS[@]}" ${APP_ENV_VARS} -classpath ${APP_CLASSPATH} ${APP_MAIN_CLASS} "${APP_APP_OPTS[@]}"\n134 nazar@lelyak-desktop:/opt/sqldeveloper\xe2\x9f\xab java -version\njava version "1.7.0_65"\nJava(TM) SE Runtime Environment (build 1.7.0_65-b17)\nJava HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)\n
Run Code Online (Sandbox Code Playgroud)\n\n

这是/tmp/hs_err_pid20351.log的内容

\n\n

如何解决这个烦恼呢?

\n

小智 5

也受到影响,但在这里找到了解决方案。

解决方案很简单,在启动 sh sqldeveloper.sh 之前取消设置环境变量GNOME_DESKTOP_SESSION_ID,或者您可以创建另一个 launcher.sh,如下所示:
unset GNOME_DESKTOP_SESSION_ID sh sqldeveloper.sh