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
JavaBot4mo 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
szatkus4mo ago
You need to edit JAVA_HOME ad PATH variables.
MerasTV
MerasTVOP4mo ago
already did
No description
MerasTV
MerasTVOP4mo ago
It's previous screenshot
nikcho-kouhai
nikcho-kouhai4mo ago
did you add your new java to PATH
MerasTV
MerasTVOP4mo ago
i added it to path yea im in the middle of game
nikcho-kouhai
nikcho-kouhai4mo ago
open up your cmd and type "where java" when you finish then
MerasTV
MerasTVOP4mo ago
No description
szatkus
szatkus4mo ago
I don't see PATH here.
nikcho-kouhai
nikcho-kouhai4mo ago
that's not the path I see in JAVA_HOME
MerasTV
MerasTVOP4mo ago
okay reconfigured it
MerasTV
MerasTVOP4mo ago
No description
nikcho-kouhai
nikcho-kouhai4mo ago
delete this other java.exe
szatkus
szatkus4mo ago
Looks like you have two locations in your PATH.
nikcho-kouhai
nikcho-kouhai4mo ago
or remove it from your path
szatkus
szatkus4mo ago
Remove the javapath thing from your PATH.
nikcho-kouhai
nikcho-kouhai4mo ago
yeah delete the entire folder that contains java.exe *
MerasTV
MerasTVOP4mo ago
okay, did it
nikcho-kouhai
nikcho-kouhai4mo ago
you should be fine now
szatkus
szatkus4mo ago
I mean, it should be enough to remove it from the PATH variable. Whatever works.
nikcho-kouhai
nikcho-kouhai4mo ago
generally yeah if you can find it
MerasTV
MerasTVOP4mo ago
yeah it works now thank you
JavaBot
JavaBot4mo 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
JavaBot4mo ago
Post Closed
This post has been closed by <@452148827034615809>.

Did you find this page helpful?