Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update MainClass in Info.plist (OSX) #440

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sonique6784
Copy link

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)

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
Copy link

rgov commented Feb 5, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants