I am trying to initialize a new Java VirtualMachine object. This will be used to open and run a project inside of my existing Netbeans project. I am getting stuck at trying to initialize the Virtual Machine though. Here is what I have:
Connection c;
VirtualMachineManager vmm=Bootstrap.virtualMachineManager();
try {
vmm.createVirtualMachine(c);
} catch (IOException ex) {
Logger.getLogger(MyProg.class.getName()).log(Level.SEVERE, null, ex);
}
I don't know how to initialize the "Connection c" variable, and I can't fine any examples online.
Aucun commentaire:
Enregistrer un commentaire