• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to run several JVMs on my local PC?  RSS feed

 
Hai Lin
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I know one application can running on several JVMs. For example, I installed JVM on my local PC C:\j2sdk1.4.2, but this is only one JVM. How do I install other JVMs in my local PC? And how I can run one application in severl JVMs?

Thanks a lot!

Hai
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 37496
546
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai,
You just download the jvms from sun's site and double click to install. You can set the default one in the control panel if you are using windows.

To pick which jvm you want the application to use in a given run, just navigate to the directory for that jvm.
 
Hai Lin
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jeanna,
Thanks for your prompt answer.
But I still don't understand what do you mean "You can set the default one in the control panel if you are using windows". Yes, I am using windows XP. And in my C drive I already have one JVM called c:\j2sdk1.4.

Could you give me a little more elaboration?

Thanks.

Hai
 
saravanan balu
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai,
Have u tried installing another JVM, may be from Microsoft and tried running your application??if yes, what happen?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you talking about running several instances of (a single version of) the JVM at the same time or having several versions (ie 1.3, 1.4, 1.5) of the Java runtime (JVM plus libraries) installed on one computer??
Bill
 
Abhishek Dhama
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by William Brogden:
Are you talking about running several instances of (a single version of) the JVM at the same time or having several versions (ie 1.3, 1.4, 1.5) of the Java runtime (JVM plus libraries) installed on one computer??
Bill


Hi all,
We would like to switch between different versions of Java SDK, to be specific we have got Java 1.5 installed on our m/c's but we would like to switch to Java 1.4 or 1.3. We tried playing around with path and JAVA_HOME but that doesnt work for Java 1.5. Java 1.5 has become default JRE irrespective of JDK pointed by path variable.
Any work-around/comments?

thanks in advance

/abhishek
 
Stefan Wagner
Ranch Hand
Posts: 1923
Linux Postgres Database Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could set the JAVA_HOME to C:\JAVA, and rename

C:\Java to C:\JDK1.5
and
C:\J2SDK1.4 to Java

and vice versa.

On Linux it's much easier, because you may use symbolic links for this task.

Another idea is the use of batch-Files:
java13.bat:
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!