Answer the question
In order to leave comments, you need to log in
How to update the JDK correctly?
How to update the JDK correctly?
Search in toaster returned 0 results. Google gave out not very relevant links. In general, an independent search did not work out. You have to seek help from the gurus who do this, like clicking seeds.
So, I went to the Oracle website and saw that there was a new build of the JDK. Downloaded it and installed it. Now I have two JDKs - old and new, with their own folders. Rewrote the values of the JAVA_HOME and Path variables (indicated the name of the new folder). Checked in a shell, specifies already the new version. Reassigned NetBeans IDE to new build as default platform.
And the question arose: now this chain of actions needs to be done every time the assembly is updated? Or is it not necessary to write a new assembly to a new folder, but can it be installed into an old one? And how critical is it to stick to the JDK folder name in the style - jdk1.8.0_65 ? Maybe you can call it, for example, JavaCool and put new assemblies on top of the old ones and not bother with rewriting the values of variables, etc. anymore?
OS Windows XP.
Answer the question
In order to leave comments, you need to log in
Depends on your environment. In general, the universal answer would be something like this. Use as a path to the JDK not a real path, but a sim link. For example /opt/java/jdk.
This will be a sim link that looks at /opt/java/jdk1.8_0_65. This symlink and register in JAVA_HOME and PATH. Now, when a new version of jdk is released, relatively speaking 1.9_0_33, you will not need to rewrite the JAVA_HOME and PATH values. Just put the new jdk next to the old one and change the /opt/java/jdk link to point to the new jdk.
It seems like she herself is updated through her agent. Sometimes you just need to confirm the update...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question