SQLDeveloper 4 on Fedora 20

UPDATE: The launch script modification is no longer required for Oracle SQL Developer 4.0.3 (4.0.3.16.84) on Fedora 21. See comment.

There is issue with SQLDeveloper 4 launch script on Fedora 20 Gnome 3 Shell.

Just install sqldeveloper in usual way, either tar or rpm. Then modify sqldeveloper.sh as follow;

Otherwise the following error will throw if you manually lunch from terminal.

The original answer comes from this thread.

  • msx

    Hello, any idea on how to run latest SQLDeveloper on F21!?

    • victorskl

      The launch script modification is no longer required for Oracle SQL Developer 4.0.3 (4.0.3.16.84) on Fedora 21. Here is quick installation on F21.

      – open Firefox and download sqldeveloper-4.0.3.16.84-1.noarch.rpm
      – open Terminal, go to download location and follow these steps:

      Or official installation note.

      • msx

        Problem was that it was complaining about not findind the JDK 😛
        Nonetheless and to my greatest awe I found that the correct path when SQLDeveloper asks the very first time it is open is:
        /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.40-21.b25.fc21.x86_64/j

        Cheers.

        • victorskl

          I see. Yes, it needs to point the desired JRE location.

          I usually have different version of JDKs installed at particular location. Then I set JAVA_HOME env variable in ~/.bash_profile to point the default JDK version that I want.

          But openjdk work too!