![]() ![]() You might suggest to simply remove the Oracle Java path that was prepended to your Windows PATH by the installer. Why not just remove the Oracle Java path entry and not worry about your JAVA_HOME placement in the Path? ![]() If I suffixed it to the end of the Windows PATH variable then Java 8 was always being picked up (Windows searches the directories left-to-right in the PATH variable). Since the installer prepended the Oracle Java path to the front of the Windows PATH variable, I needed to create my own custom JAVA_HOME environment variable pointing to the directory of Java 7 then prepend %JAVA_HOME%\bin to my Windows PATH variable so that it was the first search directory. Set JAVA_HOME as first entry to Path Variable However, to support multiple versions you must update your Windows PATH. For example, versions 7 and 8, both the 32-bit and 64-bit editions. If you’re like me, you have different tools that have specific Java version requirements so you install multiple versions of Java. ![]() You can readily use the commands java or javac from the command prompt. I noticed starting with version 8 that the Java installer now prepends to the Windows PATH variable C:\ProgramData\Oracle\Java\javapath.įor most casual users and developers that will only have Java 8 installed and not other versions then this should be fine.
0 Comments
Leave a Reply. |