The full pathname of a JDK installation for Oracle SQL Developer

后端 未结 10 1649
你的背包
你的背包 2021-02-02 11:00

I want to run Oracle SQL Devloper on Ubuntu with this command:

sh sqldeveloper/sqldeveloper.sh

Then I got this message:

10条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-02 12:00

    I've faced with similar issue. Tried published recommendations but unsuccessfully. Possible the reason I'm using sdkman to manage java versions, may be something with permissions because of Mac OS.

    For Mac user it is important try manage configuration:

    • try SetJavaHome {{path to your java}} in ~/.sqldeveloper/{{sql-dev-version}}/product.conf

    this step could help if you are using jdk installed by brew following default path.

    If you've installed openjdk with sdkman path to java will be like ~/.sdkman/candidates/java/{{java-version}} and this path needs to be mapped on default expectations with aliases.

    I did not have information about the default path, so it needs to find executable file:

    • start sqldeveloper (to make shown error message);
    • in terminal try ps ux | grep sql - it will help you to detect executable file location sqldeveloper.sh;
    • open the file with text editor:
      • remove or comment block that tries to get java from default location /usr/libexec/java_home;
      • find line with export JAVA_HOME=$TMP_PATH and replace path with your path to java home or simply remove line if JAVA_HOME was specified in OS settings.

提交回复
热议问题