Forum Stats

  • 3,769,698 Users
  • 2,253,010 Discussions
  • 7,875,155 Comments

Discussions

How I got SQL Developer working on a new MacBook Pro (MacOS Monterey - M1 Pro)

Niall
Niall Member Posts: 21 Blue Ribbon

I documented the steps that I took to get SQL Developer working on my new MacOS Monterey MacBook Pro M1. I hope that it's useful to some of you. All of what I did came from various posts here in this forum.

https://blog.longacre.ch/2021/11/how-i-got-sql-developer-working-on-new.html

thatJeffSmith-OraclePhilipp Salvisberg

Answers

  • Philipp Salvisberg
    Philipp Salvisberg Member Posts: 158 Silver Badge
    edited Nov 23, 2021 2:15PM

    I use GraalVM's JDK 11 on my MBP with macOS 12.0.1. The JDK is available only for Intel. However, it works well with rosetta2. This way I can use all features of SQLDev. And the JS based features are significantly faster.

    For that I set the following in my /Users/phs/.sqldeveloper/21.2.1/product.conf :

    SetJavaHome /Users/phs/Applications/graalvm-ce-java11-21.2.0/Contents/Home
    

    You find the current JDK here: https://github.com/graalvm/graalvm-ce-builds/releases?q=21.2.0&expanded=true

    Niall
  • Niall
    Niall Member Posts: 21 Blue Ribbon

    Very interesting. Thanks @Philipp Salvisberg .

    As you suggest, I've just tried GraalVM's JDK 11 and it seems to work well for me - even the JavaFX parts. The Welcome Page now works too :)

    I'll update my blog post to include this alternative.

    Note: I had to remove the quarantine attribute with the following command:

    sudo xattr -r -d com.apple.quarantine /Library/Java/JavaVirtualMachines/graalvm-ce-java11-21.2.0

    Philipp Salvisberg