machine name location through java properties

Status
Not open for further replies.

green_buddy

Wise, Aged Ars Veteran
126
Does anyone know how to locate the machine name through something similar to finding a Property in the System.Properties object. I would have thought it would have been something similar to:

code:<HR>
Code:
Properties props = System.getProperties();

String machineName = props.getProperty("machine.name");

But that's definitely not it. Any ideas? Is that something that's loaded by the vm when the vm starts up? I can't find anything like it in any of the System.Properties if I list them out. :(

You would think this would be something that the VM would provide through a call to System.getProperties() no? :confused:

-green
 
Status
Not open for further replies.