java-decompiler / jd-gui

A standalone Java Decompiler GUI
GNU General Public License v3.0
13.72k stars 2.36k forks source link

Update MainClass in Info.plist (OSX) #440

Open sonique6784 opened 4 months ago

sonique6784 commented 4 months ago

According the the MANIFEST itself, the main class is: org.jd.gui.App

Manifest-Version: 1.0
JD-Core-Version: 1.1.3
JD-GUI-Version: 1.6.6
Main-Class: org.jd.gui.App
SplashScreen-Image: org/jd/gui/images/jd_icon_128.png

Launching with org.jd.gui.OsxApp triggers an exception.

Exception in thread "main" java.lang.IllegalAccessError: class org.jd.gui.OsxApp (in unnamed module @0x43556938) cannot access class com.apple.eawt.Application (in module java.desktop) because module java.desktop does not export com.apple.eawt to unnamed module @0x43556938
    at org.jd.gui.OsxApp.main(Unknown Source)
rgov commented 4 months ago

I'm not sure this is correct. The OsxApp class does exist. I was able to run JD-GUI on Sonoma without making the change.

What is the output of /usr/libexec/java_home -V? I am using temurin installed through Homebrew.