• Post Reply Bookmark Topic Watch Topic
  • New Topic

can many jvm versions be installed on a single system  RSS feed

 
siddhu Math
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Folks

i just have a query where in i want to install all the jvm versions on a single system, is it possible if yes then how can i.


Thanks in advance
 
Campbell Ritchie
Marshal
Posts: 56529
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you can have several JVMs, yes.

You probably can't get them all, because some of the older versions have been withdrawn. Go to the usual download sites and download them all. You will have to change the PATH for each terminal/shell/command line you use, so as to gain access to different JVMs.
 
Balasubramanian Chandrasekaran
Ranch Hand
Posts: 215
Firefox Browser Linux VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by siddhu Math:
hi Folks

i just have a query where in i want to install all the jvm versions on a single system, is it possible if yes then how can i.


Thanks in advance


Why you want to do this one.If you want to build your class to some specific version then you can use javac -target<version> option.
That one itself will do your job.
 
siddhu Math
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it is not the matter for me to compile the java file with a specific version what matters me is can i do it efficiently as if like an ideal condition with a single jvm installed.
 
Rob Spoor
Sheriff
Posts: 21133
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can have as many JVMs installed as you like; I myself have a 1.4.2 JVM that was part of the 1.4.2 JDK and a 1.6.0 JVM that was part of the 1.6.0 JDK.

What you do have to remember is, that only one (I think it's the last installed one) JVM will be used by default. If you want to use another, you cannot just use "java" and "javaw" but have to include the full path.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!