Lin Hong's TECH Blog! 刀不磨要生锈,人不学习要落后 - Thinking ahead

Oracle MacOS SqlDevelper Tips

2021-07-19

Oracle MacOS SqlDevelper Tips

Error in Install SQLDeveloper in MacOS

mac SQL Developer supports Java SE 8 and 11 .  Java SE can be downloaded from:

Fix Steps

Step tips:

mymac ~ % /usr/libexec/java_home -V
Matching Java Virtual Machines (1):
    16.0.1 (x86_64) "Oracle Corporation" - "Java SE 16.0.1" /Library/Java/JavaVirtualMachines/jdk-16.0.1.jdk/Contents/Home
/Library/Java/JavaVirtualMachines/jdk-16.0.1.jdk/Contents/Home
mymac ~ %

mymac ~ % /usr/libexec/java_home -F -v 16.0.1
/Library/Java/JavaVirtualMachines/jdk-16.0.1.jdk/Contents/Home
mymac-mac ~ %

mymac-mac ~ % cd /Applications/SQLDeveloper.app/Contents/MacOS/
mymac-mac MacOS % cp sqldeveloper.sh sqldeveloper.sh.init
mymac-mac MacOS % vi sqldeveloper.sh
mymac-mac MacOS % diff sqldeveloper.sh sqldeveloper.sh.init
19,20c19
<     #APP_JAVA_HOME=`/usr/libexec/java_home -F -v 1.8.0`
<     APP_JAVA_HOME=`/usr/libexec/java_home -F -v 16.0.1`
---
>     APP_JAVA_HOME=`/usr/libexec/java_home -F -v 1.8.0`
mymac-mac MacOS %

Reference

Java SE Development Kit 16 Downloads

SQL Developer 21.2 Downloads Version 21.2.0.187.1842 - July 14, 2021

https://www.talkapex.com/2020/11/sqldeveloper-in-macos-big-sur/

List your Java Versions

/usr/libexec/java_home -V

Remove the Applet Plugin

sudo rm -rf "/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/"

Have a good work&life! 2021/07 via LinHong


Similar Posts

Comments