java - How can i invoke two instances of two different versions of jvm or same version of jvm in a single dos prompt? -


if had installed 2 versions of java(jdk 7 & jdk 8) how can invoke these 2 instance of jvm in single dos prompt simultaneously? if single version installed how can invoke 2 or more instance of same jvm simultaneously in ram?

you have 1 default version in path, can specify version need explicitly. e.g.

on windows laptop have 4 versions installed , can run 1 want.

c:\>"c:\program files\java\jdk1.7.0_60\bin\java" -version java version "1.7.0_60" java(tm) se runtime environment (build 1.7.0_60-b19) java hotspot(tm) 64-bit server vm (build 24.60-b09, mixed mode)  c:\>"c:\program files\java\jdk1.8.0_05\bin\java" -version java version "1.8.0_05" java(tm) se runtime environment (build 1.8.0_05-b13) java hotspot(tm) 64-bit server vm (build 25.5-b02, mixed mode)  c:\>"c:\program files\java\jdk1.8.0_25\bin\java" -version java version "1.8.0_25" java(tm) se runtime environment (build 1.8.0_25-b18) java hotspot(tm) 64-bit server vm (build 25.25-b02, mixed mode)  c:\>"c:\program files\java\jdk1.8.0_45\bin\java" -version java version "1.8.0_45" java(tm) se runtime environment (build 1.8.0_45-b15) java hotspot(tm) 64-bit server vm (build 25.45-b02, mixed mode) 

the number of versions can have limited disk space.


Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

Nuget pack csproj using nuspec -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -