Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Computer name using java
02-28-2008, 07:06 PM
Post: #1
Computer name using java
How can I get the computer name using java?
Find all posts by this user
Quote this message in a reply
02-28-2008, 07:07 PM
Post: #2
RE: Computer name using java
Probably System.getProperties may help you.

Try System.getProperties("property name");
Find all posts by this user
Quote this message in a reply
02-28-2008, 07:11 PM
Post: #3
RE: Computer name using java
You can use java.net.InetAddress class for getting the computer name.

[java]
String computerName = InetAddress.getLocalHost().getHostName();
[/java]
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: