在CentOS7下安装了sqldeveloper,无法启动的解决办法

    问题描述:

    在CentOS7下安装了sqldeveloper,无法启动的解决办法

    sudo执行正常启动

    错误信息:

    [lincoln@lgscofield sqldeveloper]$ ./sqldeveloper.sh 
    
     Oracle SQL Developer
     Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
    
    
     LOAD TIME : 613#
    # A fatal error has been detected by the Java Runtime Environment:
    #
    #  SIGSEGV (0xb) at pc=0x00007f8d49ed7fd0, pid=1078, tid=140245850285824
    #
    # JRE version: Java(TM) SE Runtime Environment (7.0_79-b15) (build 1.7.0_79-b15)
    # Java VM: Java HotSpot(TM) 64-Bit Server VM (24.79-b02 mixed mode linux-amd64 compressed oops)
    # Problematic frame:
    # C  0x00007f8d49ed7fd0
    #
    # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
    #
    # An error report file with more information is saved as:
    # /tmp/hs_err_pid1078.log
    [thread 140245868443392 also had an error]#
    # If you would like to submit a bug report, please visit:
    #   http://bugreport.java.com/bugreport/crash.jsp
    #
    /opt/sqldeveloper/sqldeveloper/bin/../../ide/bin/launcher.sh: line 1193:  1078 Aborted                 (core dumped) ${JAVA} "${APP_VM_OPTS[@]}" ${APP_ENV_VARS} -classpath ${APP_CLASSPATH} ${APP_MAIN_CLASS} "${APP_APP_OPTS[@]}"
    
      
       
       
       
       

    解决方案:

    参考:http://blog.allanglesit.com/2014/07/sql-developer-crash-on-fedora-20

    进入{sqldeveloper_home}/sqldeveloper/bin/目录,编辑该目录下的sqldeveloper文件,添加如下两行:

    unset GNOME_DESKTOP_SESSION_ID 
    unset DBUS_SESSION_BUS_ADDRESS

    再次运行./sqldeveloper.sh,问题解决,成功运行。

你可能感兴趣的:(无法启动的解决办法)