Col-E / Recaf-Launcher

A simple launcher for Recaf 4.X and above
https://recaf.coley.software/
53 stars 5 forks source link

mingw gets detected as java version #29

Open Lenni0451 opened 2 weeks ago

Lenni0451 commented 2 weeks ago

The launcher detects mingw64 as a valid java installation and displays it as Java 64. mingw is in the following path: C:\Users\User\AppData\Local\Programs\mingw64

grafik

Col-E commented 2 weeks ago
  1. That's hilarious
  2. What method of installing mingw did you go through?
  3. Can you do tree /F in the mingw directory?
    • I'm suspecting that it has symbolic references/shortcuts to an executable named java.exe - See here
    • If this symbolic reference exists, can you tell me where it points to?
Lenni0451 commented 2 weeks ago

I just downloaded mingw, unzipped it and put it into the PATH system variable. After looking at the code it seems like the code is not checking if the java executable actually exists. I was able to add another version which does not exist by creating a java128/bin folder and adding it to the PATH variable. The bin folder was completely empty. grafik grafik