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

mingw gets detected as java version #29

Open
Lenni0451 opened this issue Oct 28, 2024 · 2 comments
Open

mingw gets detected as java version #29

Lenni0451 opened this issue Oct 28, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@Lenni0451
Copy link

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

Col-E commented Oct 29, 2024

  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?

@Col-E Col-E added the bug Something isn't working label Oct 29, 2024
@Lenni0451
Copy link
Author

Lenni0451 commented Oct 29, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants