I want to run sqldeveloper on Ubuntu Gnome 14.04.

I created some symbolic link and tried to call from one script file another.

And it fail with message:

/usr/local/bin/sqldeveloper: line 2: cd: /usr/local/bin/sqldeveloper/bin: Not a directory

Here is my spteps:

Linking over an in-path launcher for Oracle SQL Developer:

sudo ln -s /opt/sqldeveloper/sqldeveloper.sh /usr/local/bin/sqldeveloper

Edit /usr/local/bin/sqldeveloper.sh replace it's content to:

sh sqldeveloper_launcher.sh

Content of sqldeveloper_launcher.sh:

cd /opt/sqldeveloper/sqldeveloper/bin
./sqldeveloper "$@"

Run SQL Developer is next:


But if I put content of sqldeveloper_launcher.sh into sqldeveloper.sh it works (it means that it really running sqldeveloper, but it fails at runtime with error can't run sqldeveloper on Ubuntu).

How to solve this trouble?

  • 1
    I'm little bit confused, anyway, sqldeveloper_laucher.sh is bash script and you invoke it with sh, you should use bash instead or .. After this, the error you got seems due to some broken link, try namei -mo /opt/sqldeveloper/sqldeveloper/bin and finally I guess that step: Edit /usr/local/bin/sqldeveloper.sh replace it's content to: really was Edit /usr/local/bin/sqldeveloper replace it's content to: isn't it?
    – Lety
    Sep 1, 2014 at 23:55

1 Answer 1

    cd /opt/sqldeveloper/sqldeveloper/bin
    ./sqldeveloper "$@"      

This will fix your problem

  • 4
    Could you add a little context/explanation why that works? Nov 2, 2014 at 3:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.