java-decompiler / jd-gui

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

JD-GUI fails to run on Mac Mini M1 with macOS 13.3.1 and Java version "20.0.1" 2023-04-18 #428

Open carlca opened 1 year ago

carlca commented 1 year ago

I've sorted out the permissions on the JD-GUI.app in System Settings > Privacy & Security. But I get this error...

Screenshot 2023-05-20 at 00 01 02

when I try to launch the app. Any idea what's up?

g1a55er commented 1 year ago

I eventually got it running on my M1 Mac, but there are a couple things wrong with the default launcher script. I'm not going to bother packaging up and submitting them as a proper change request, because this project seems dead, but I pushed a fork of what works on my machine.

You can find the change here https://github.com/g1a55er/jd-gui/commit/5e743011a932b287428dd6451e08637df2f3d9fc. If you just copy that new launcher script over top the old one via:

cp ./src/osx/resources/universalJavaApplicationStub.sh /Applications/JD-GUI.app/Contents/MacOS/universalJavaApplicationStub.sh 

Then you should be able to launch the app by clicking it in Launchpad.

sanigo commented 1 year ago

In Finder right-click jar file and Open with jd-gui, the jar will not be opened.

aelam commented 1 year ago

@g1a55er You can create a PR for this

gohonsen commented 1 year ago

@g1a55er Thanks, add JAVA_HOME setting to /Applications/JD-GUI.app/Contents/MacOS/universalJavaApplicationStub.sh works fine for me

Teloshav commented 1 year ago

Then you should be able to launch the app by clicking it in Launchpad.

Thank you!

zhangw commented 8 months ago

@g1a55er Thanks, add JAVA_HOME setting to /Applications/JD-GUI.app/Contents/MacOS/universalJavaApplicationStub.sh works fine for me

May should use jdk1.8 (set the jdk1.8 as the JAVA_HOME)