在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,问题解决,成功运行。

转载于:https://my.oschina.net/lgscofield/blog/404483

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值