Reputation: 473
I'm using java 9 with jshell for testing java; so, many applets use java 8. Can I install java 8 and java 9 on my windows system?
Upvotes: 2
Views: 120
Reputation: 159086
You can only install one Java version that affects the Web Browser (JRE installation), but you can install as many JDK's as you want, just don't installed the JRE that comes with the JDK.
The Web Browser will use the lastest installed JRE that matches the browsers 32/64-bit mode.
Command-line programs, like javac
and java
, will use the JDK that is on the PATH. You can also fully qualify the path to the programs to override the PATH, e.g. C:\path\to\jdk1.8.0_101\bin\java.exe
.
IDE's can usually use any installed JDK.
As example, see this previous answer.
Upvotes: 4