Skip to Main Content

SQL Developer

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Sql Developer Launcher Not Working In Linux

AnnBOct 29 2013 — edited Nov 5 2013

Hello,

System Details:

Fedora 19

Sql Developer Version: Version 4.0.0.12

Java Version:  OpenJDK 1.7.0-40

I can launch Sql Developer from the command line successfully.

/opt/sqldeveloper/sqldeveloper.sh

But when I attempt to use the launcher icon, I receive a SIGSEGV error.  Here is the top of the hs_error.log file.

***

#

# A fatal error has been detected by the Java Runtime Environment:

#

#  SIGSEGV (0xb) at pc=0x000000317a062e00, pid=7680, tid=140636646749952

#

# JRE version: OpenJDK Runtime Environment (7.0_40-b60) (build 1.7.0_40-mockbuild_2013_10_02_16_56-b00)

# Java VM: OpenJDK 64-Bit Server VM (24.0-b56 mixed mode linux-amd64 compressed oops)

# Problematic frame:

# C  0x000000317a062e00

***

The ~/.sqldeveloper/jdk file contains the following:

/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.60-2.4.2.7.fc19.x86_64

***

And my /usr/share/applications/sqldeveloper.desktop file contains the following:

[Desktop Entry]

Encoding=UTF-8

Name=SQL Developer

Comment=Oracle SQL Developer

Icon=/opt/sqldeveloper/icon.png

Exec=/opt/sqldeveloper/sqldeveloper.sh

Terminal=true

Type=Application

Categories=GNOME;Oracle;

***

I'm just switching from Ubuntu to Fedora so this has not worked in the past.

Thank you for any help,

Ann

This post has been answered by su442626ra on Nov 5 2013
Jump to Answer

Comments

su442626ra
Answer
Marked as Answer by AnnB · Sep 27 2020
AnnB

The solution in https://forums.oracle.com/thread/2594033 worked.  I added the 2nd line below to /opt/sqldeveloper/sqldeveloper.sh.

#!/bin/bash

unset -v GNOME_DESKTOP_SESSION_ID

cd "`dirname $0`"/sqldeveloper/bin && bash sqldeveloper $*

***

Previously, I incorrectly updated ~/.bashrc to unset GNOME_DESKTOP_SESSION_ID.  That's why running Sql Developer from the command line worked, but not from the launcher.

Thanks su.

1 - 2
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Dec 3 2013
Added on Oct 29 2013
2 comments
7,482 views