You can have as many
Java installations as you like, as long as you remember to change the PATH every time you change JVM. I can't remember what you do in DOS/Windows, but it is something like writing
set PATH = C:\Program Files\java\jdk1.3.1_03\bin;%PATH%
You may have to put quote marks "" round that instruction because it contains whitespace.