SQL Developer runs in Terminal with sudo sqldeveloper but not without sudo

6,113

Likely what happened is you ran sqldeveloper one time using sudo, which caused the configuration directory $HOME/.sqldeveloper to get owned by root. If so, you should be able to fix it by re-taking ownership of the directory, i.e.

sudo chown -R $USER:$USER ~/.sqldeveloper

or by simply deleting the directory

rm -rf ~/.sqldeveloper
Share:
6,113

Related videos on Youtube

user1786641
Author by

user1786641

Updated on September 18, 2022

Comments

  • user1786641
    user1786641 almost 2 years

    Can anyone help? Installed like here:

    How to install SQL Developer on Ubuntu 14.04?

    If I run:

    sudo sqldeveloper
    

    it starts and runs properly but if I run:

    sqldeveloper
    

    It wont start with any other error shown.

    Are there missing rights for Sqldeveloper or Java. Where and how do I set them.

    Any help appreciated, I am a Ubuntu noob.

    Where do I find error logs?

    Thank you...

    • steeldriver
      steeldriver over 9 years
      Do you have a (hidden) "$HOME/.sqldeveloper" directory? if so, what are its ownership and permissions?
    • user1786641
      user1786641 over 9 years
      yes it is hidden: drwxr-xr-x 3 root root 4096 Dez 29 15:00 .sqldeveloper
    • user1786641
      user1786641 over 9 years
      thank you sudo changemod 777 .sqldeveloper worked although do not really understand what this directory is for and why it is not set properly
    • steeldriver
      steeldriver over 9 years
      You should have changed the ownership not the permission bits - please see my answer below
  • kkyr
    kkyr over 6 years
    This should be chown, not chmod