To edit the PATH environment variable in Windows 10:
How To Install JDK on Windows Step 0: Un-Install Older Version(s) of JDK/JRE
Clean up the JDK and the installation package (removed JavaFX, JavaEE, CORBA modules, deprecated Nashorn JavaScript engine).
J2SE 5.0 (JDK 5) (September 2004): Officially called 5.0 instead of 1.5.J2SE 1.4 (JDK 1.4) (February 2002): Introduced assert statement, non-blocking IO ( nio), logging API, image IO, Java webstart, regular expression (regex) support.Also introduced Collection Framework and JIT compiler. Included JFC (Java Foundation Classes - Swing, Accessibility API, Java 2D, Pluggable Look & Feel, and Drag & Drop). Also released J2EE (Java 2 Enterprise Edition) and J2ME (Java 2 Micro Edition). J2SE 1.2 (JDK 1.2) (December 1998): Re-branded as 'Java 2' and renamed JDK to J2SE (Java 2 Standard Edition).JDK 1.1 (February 1997): Introduced AWT event model, inner class, JavaBean, JDBC, and RMI.JDK 1.0 (January 1996): Originally called Oak (named after the oak tree outside James Gosling's office).JDK Alpha and Beta (1995): Sun Microsystem announced Java in September 23, 1995.