SQL Developer
SetJavaHome /path/jdk
SetJavaHome /Library/Java/JavaVirtualMachines/jdk-11.0.9.jdk/Contents/Homecd /Applications/SQLDeveloper.app/Contents/resources/sqldeveloper
zsh sqldeveloper.sh
From the terminal it opened up for me.
Open the following folder
SQLDeveloper.app/Contents/Resources/sqldeveloper/sqldeveloper/bin
Double click sqldeveloper unix executable file.
Open the following folder
SQLDeveloper.app/Contents/Resources/sqldeveloper/sqldeveloper/bin
Double click sqldeveloper unix executable file.
Code Block SetJavaHome /Library/Java/JavaVirtualMachines/jdk1.8.0_261.jdk/Contents/Home
in your product.conf file:
Code Block /Users/<username>/.sqldeveloper/product.conf
You can find your java home path, by
Code Block ls -ls /Library/Java/JavaVirtualMachines/
Officially supported java 8,11, but also works fine with 14
) Launch terminal app
) run the following command to list your Java Versions: /usr/libexec/java_home -V
) From the output, the one that is causing the issue is:
) To remove, type in the following command: sudo rm -rf "/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/"
)This workflow worked for me. I am running sql developer 20.4 on Mac OS Big Sur
Just follow the steps below:
Right click on SQL Developer in the dock and choose Options | Show in Finder
Right click on SQLDeveloper.app and choose "Show Package Contents"
Double click on Contents and then MacOS
Go to Oracle's site and download JDK 1.8 JRE
Unzip it and copy the directory into the MacOS directory
Open sqldeveloper.sh in any text editor. I commented out everything in the file and pasted in the following:
export JAVA_HOME=/Applications/SQLDeveloper.app/Contents/MacOS/jre1.8.0_251.jre/Contents/Home
/Applications/SQLDeveloper.app/Contents/Resources/sqldeveloper/sqldeveloper/bin/sqldeveloper
so now sqldeveloper.sh looks like this:
#!/bin/bash
TMP_PATH=/usr/libexec/java_home -F -v 1.8
if [ -z "$TMP_PATH" ] ; then
TMP_PATH=/usr/libexec/java_home -F -v 9
#TMP_PATH='/Applications/SQLDeveloper.app/Contents/MacOS/jre-9.0.4.jre/Contents/Home'
if [ -z "$TMP_PATH" ] ; then
osascript -e 'tell app "System Events" to display dialog "SQL Developer requires a minimum of Java 8. \nJava 8 can be downloaded from:\n ...
exit 1
fi
fi
# export JAVA_HOME=$TMP_PATH
# if [[ -f $HOME/.sqldeveloper/19.1.0/env.sh ]];
then
source "$HOME/.sqldeveloper/19.1.0/env.sh" >> /dev/null
elif [[ -f $HOME/.sqldeveloper/env.sh ]];
then
source "$HOME/.sqldeveloper/env.sh" >> /dev/null
fi
#
here="${0%/*}"
cd "${here}"
cd ../Resources/sqldeveloper/sqldeveloper/bin
bash ./sqldeveloper >>/dev/null
export PATH=/Applications/SQLDeveloper.app/Contents/MacOS/jre1.8.0_251.jre/Contents/Home/bin:$PATH
export JAVA_HOME=/Applications/SQLDeveloper.app/Contents/MacOS/jre1.8.0_251.jre/Contents/Home
/Applications/SQLDeveloper.app/Contents/Resources/sqldeveloper/sqldeveloper/bin/sqldeveloper
7. Save sqldeveloper.sh
Now run it and you should get the splash screen.
) Launch terminal app
) run the following command to list your Java Versions: /usr/libexec/java_home -V
) From the output, the one that is causing the issue is:
"Oracle Corporation" - "Java" /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home"; You'll need to remove this
) To remove, type in the following command: sudo rm -rf "/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/"
)This workflow worked for me. I am running sql developer 20.4 on Mac OS Big Sur
zsh sqldeveloper.sh" this works for me, It has been mentioned in Oracle docs also.
Reading all the options at the end this was the one that worked
Launch terminal app
run the following command to list your Java Versions: /usr/libexec/java_home -V
From the output, the one that is causing the issue is: "Oracle Corporation" - "Java" /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home"; You'll need to remove this
To remove, type in the following command: sudo rm -rf "/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/"
just open terminal app and run below command
sudo rm -rf "/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/"
now open sql developer app for sure this will work!!!
- If you have a previous versions, first you delete the same and follow these steps. On Monterey(latest version) it is working for me even I had same problem.
- Download, https://www.oracle.com/tools/downloads/sqldev-downloads.html SQL Developer from this link
- Download Java 8 or 11 required for this version.
- link for java 8 *) https://www.oracle.com/java/technologies/downloads/#java8
- link for java 11 *) https://www.oracle.com/java/technologies/downloads/#java11