79284551

Date: 2024-12-16 11:48:32
Score: 2
Natty:
Report link

i was facing the same issue and here is what i have done and this works fine with me i have installed both java version 8 and 17 and in system variable i added one variable JAVA_HOME with value pointing to the java i want to use let's say java 8 like this enter image description here and in the path i have removed any older java bin paths there and added new one with value

%JAVA_HOME%\bin

like this enter image description here

but make sure to make it the first entry in path also when you want to change the java version you will just need to change the path for the JAVA_HOME variable i can recommend you also to create executable bat file to change the JAVA_HOME path if you do this a lot

Reasons:
  • RegEx Blacklisted phrase (1): i want
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Ali Alzantot