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

Problem finding other installed versions of java. #83

Open
kolan2222 opened this issue Nov 14, 2023 · 1 comment
Open

Problem finding other installed versions of java. #83

kolan2222 opened this issue Nov 14, 2023 · 1 comment

Comments

@kolan2222
Copy link

I am using IBM Semeru JDK 11.0.20.1 x64 installed via msi package. The paths in the environment variables are correct.
Yes, I know that it is possible to manually specify the path to java, but I decided to suggest this fix. I think it is appropriate.
You may have to scan the paths in the registry. (guessing)
And output the list of installed java from oracle versions not only for JRE but also for JDK from any developer(vendor).
изображение

@xdeadstokex
Copy link

greeting, I have done some extensive testing and I found out that, the default paths are hard-coded into the .exe file, the paths are these lines:
image
image
it basically point to C:\Program Files\Java\foldername\bin\javaw.exe (foldername is replaced with whatever name the jdk folder is)
so to fix this, for instance, the jdk folder name is "jdk8", you have to move it to C:\Program Files\Java\ or
you can create a .bat file like this: (I recommend to do the way above)

set ProgramFiles=%~dp0
set ProgramW6432=%~dp0
yourpath\VLauncher_1.1.19_Windows.exe

image

create your own new folder, put your new .bat there, create 2 new folder: Java and yourpath.
put the .exe file into yourpath folder and the jdk8 folder into Java Folder.

proof it is working: (I randomly named my jdk folder gswg)
image

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

No branches or pull requests

2 participants