r/JavaProgramming • u/Cute-Difficulty5883 • 3d ago
Problems with updating java
so basically a few nights ago i decided it was long time to update java and it kept saying something like “the files needed to run the installation couldn’t load” or something like that so i give up fast foreward to today i get the notification im like fuck it ill try to update it again and THIS time its saying “you have an unfinished installation”, but a few nights ago it told me it couldnt start. help?
5
Upvotes
1
u/koffiegorilla 2d ago
In mac and kinux sdkman provides a great way to manage multiple jdk installs.
You may find jwmv useful. You uninstall existing Java and then use jwmv
2
u/LetUsSpeakFreely 2d ago
The Java "installers" have always been flaky. Here the thing, you don't "install" Java. Here's all you need to do (assuming it's a Windows system, but other systems aren't much different):
download the binary
decompress the binary wherever you want it.
edit your system environment variables and create a new one called JAVA_HOME. The value should be the full path of the folder you just extracted.
edit the PATH and add %JAVA_HOME%\bin to the list.
restart and command Windows, terminals, or IDEs. Java is ready to go.