help with JDK installation

I had jdk 23 and jdk 17 version and i needed jdk 17 version but i couldn't get system to switch to jdk 17 so i just deleted jdk 23 folder. But now when i try java -version ir jus gives me a blank line and i don't know what to do. I tried changing enviorments. I tried restarting and reinstalling. Nothing seemed to work. Maybe you have some suggestions?
24 Replies
JavaBot
JavaBot4w ago
This post has been reserved for your question.
Hey @MerasTV! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
szatkus
szatkus4w ago
You need to edit JAVA_HOME ad PATH variables.
MerasTV
MerasTVOP4w ago
already did
No description
MerasTV
MerasTVOP4w ago
It's previous screenshot
nikcho-kouhai
nikcho-kouhai4w ago
did you add your new java to PATH
MerasTV
MerasTVOP4w ago
i added it to path yea im in the middle of game
nikcho-kouhai
nikcho-kouhai4w ago
open up your cmd and type "where java" when you finish then
MerasTV
MerasTVOP4w ago
No description
szatkus
szatkus4w ago
I don't see PATH here.
nikcho-kouhai
nikcho-kouhai4w ago
that's not the path I see in JAVA_HOME
MerasTV
MerasTVOP4w ago
okay reconfigured it
MerasTV
MerasTVOP4w ago
No description
nikcho-kouhai
nikcho-kouhai4w ago
delete this other java.exe
szatkus
szatkus4w ago
Looks like you have two locations in your PATH.
nikcho-kouhai
nikcho-kouhai4w ago
or remove it from your path
szatkus
szatkus4w ago
Remove the javapath thing from your PATH.
nikcho-kouhai
nikcho-kouhai4w ago
yeah delete the entire folder that contains java.exe *
MerasTV
MerasTVOP4w ago
okay, did it
nikcho-kouhai
nikcho-kouhai4w ago
you should be fine now
szatkus
szatkus4w ago
I mean, it should be enough to remove it from the PATH variable. Whatever works.
nikcho-kouhai
nikcho-kouhai4w ago
generally yeah if you can find it
MerasTV
MerasTVOP4w ago
yeah it works now thank you
JavaBot
JavaBot4w ago
If you are finished with your post, please close it. If you are not, please ignore this message. Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.
JavaBot
JavaBot4w ago
Post Closed
This post has been closed by <@452148827034615809>.
Want results from more Discord servers?
Add your server