Search code examples
javaintellij-ideajavafx

Intellij “Parsing Java” notification, slow to build JavaFX project after MacOS Sonoma Upgrade


Recently I upgraded MacOS from Monterey to Sonora. One of issues after upgrading is slowness in the build process to launch JavaFX window in debug “Run” mode. Anytime I make a change to the code, even putting a newline, and “Run” the code, I receive a “Parsing Java” notification. This can take up to 10 - 20 seconds.

Prior to the upgrade, I never saw a “Parsing Java” notification and the JavaFX window opened within 2 seconds.

NOTE: I have been developing JavaFX on IntelliJ for several year, and never experienced this type of issue. It was only after I upgraded my MacOS to Sonoma that this happened. I use an M1 Mac with 32GB Memory, never any issue until upgrade to Sonoma.

INTELLIJ IntelliJ IDEA 2024.1 (Community Edition) Build #IC-241.14494.240, built on March 28, 2024 Runtime version: 17.0.10+8-b1207.12 aarch64

MAVEN Version 3.9.6

JAVA Java 1.8.0_4028 Azul Zulu OpenJDK (JDK FX) for Mac ARM 64-bit (OpenJFX is included by Zulu)

enter image description here


Solution

  • Almost 2 months later, I finally found the issue and solved the problem. I noticed everytime I would launch the Javafx program (after an edit), an mdns network query was sent to determine my own laptop's IPv6 address. Using a series of commands such as 'sudo networksetup -setv6automatic Wi-Fi' I enabled the IPv6, found the address, and added it to /etc/hosts.
    ff90::2b37:3015:1402:8ab3 My-MacBook-Pro-2.local

    Now the launch happens less than a second everytime (even when I shut off wifi and the mdns is sent over loopback).