This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Java in General and the fly likes Computer Name Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Computer Name" Watch "Computer Name" New topic
Author

Computer Name

Gabriel Cane
Ranch Hand

Joined: Mar 27, 2001
Posts: 39
How would I find the machine name using the Java API?
I just tried printing out System.getProperties, and there doesn't appear to be anything relating to the actual name of the machine, only the user.name property is remotely close to what I'm looking for.
Presently, I'm developing on Win2000, but we will be deploying on RedHat Linux 6.2.
Thanks.


Sun Certified Programmer for the Java 2 Platform
James Swan
Ranch Hand

Joined: Jun 26, 2001
Posts: 403
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Computer Name
 
Similar Threads
How to get Machine name
testCode runs GREAT on Local comp, fails on network comp. using mySQL
Ear Hosting
Help needed understanding Ejb and Jndi
iPad