virtual machine within another virtual machine

Hello can anyone help plsssss

I want to know if i can launch another VM from the one i am in (from within my running code)

and if i can set it to have a certain host name and adress so that when a java app running on that VM call getlocalhost it returns the values set by me

can this be done pls help

[326 byte] By [antzya] at [2007-10-3 10:11:30]
# 1

> Hello can anyone help plsssss

> I want to know if i can launch another VM from the

> one i am in (from within my running code)

You can use Runtime.exec() to run any other process. That would include another VM.

> and if i can set it to have a certain host name and

> adress so that when a java app running on that VM

> call getlocalhost it returns the values set by me

That is controlled by the OS and often by external boxes.

If and only if you can change that using a command line command then you could encapsulate that command(s) in a single process and then run them. I doubt that is going to help you do whatever you think you want to do though.

jschella at 2007-7-15 5:31:33 > top of Java-index,Java HotSpot Virtual Machine,Specifications...