java-decompiler / jd-gui

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

[macOS] #456

Open tsilcher opened 1 month ago

tsilcher commented 1 month ago

I get this error when launching JD-GUI on macOS Sonoma:

ERROR launching 'JD-GUI'

No suitable Java version found on your system! This program requires Java 1.8+ Make sure you install the required Java version.

I have this version of Java installed:

java -version                             
openjdk version "21.0.3" 2024-04-16
OpenJDK Runtime Environment Homebrew (build 21.0.3)
OpenJDK 64-Bit Server VM Homebrew (build 21.0.3, mixed mode, sharing)
Screenshot 2024-07-13 at 17 30 05

Is there a workaround or fix for this?

Louis0704 commented 1 month ago

I've encountered the same problem... and finding the solution.

Louis0704 commented 1 month ago

I just tried this to modify .sh script, changing the Java version requirement from 1.8+ to 1.8. And it works to run on my Mac. https://github.com/java-decompiler/jd-gui/issues/427#issuecomment-1837762740