How to run Oracle SQL Developer on M1/M2

Braga J
Francium Tech
Published in
2 min readJan 10, 2022

--

!EDIT!: You no longer have to do the below steps. SQL Developer is natively available for Apple Silicon macs which can be downloaded from https://www.oracle.com/database/sqldeveloper/technologies/download/

Downloading and running SQL Developer on an ARM M1/M2 Mac with Apple Silicon is not straightforward, at least as of this writing. However, you can make it run like this.

  1. Download the SQL Developer from the official Oracle website: https://www.oracle.com/tools/downloads/sqldev-downloads.html
  2. Extract the app and move it into your Applications
  3. Install openjdk8 using brew brew install openjdk@8
  4. Export both APP_JAVA_HOME and JAVA_HOME.
    export JAVA_HOME=/usr/local/opt/openjdk@8
    export APP_JAVA_HOME=/usr/local/opt/openjdk@8
  5. Check whether your Java installation is successful by doingjava -version
    It should return something like below
    openjdk version “1.8.0_302”
    OpenJDK Runtime Environment (build 1.8.0_302-bre_2021_08_14_21_34-b00)
    OpenJDK 64-Bit Server VM (build 25.302-b00, mixed mode)
  6. Now finally run this command. arch -x86_64 /Applications/SQLDeveloper.app/Contents/MacOS/sqldeveloper.sh

You should see SQL Developer now launching without any problems!

Francium Tech is a technology company laser-focused on delivering top-quality software of scale at extreme speeds. The numbers and Size of the data excite us. If you have any requirements in building a large-scale application or want a free health check of your systems or architecture, feel free to shoot an email to contact@francium.tech, we will get in touch with you!

--

--