The Artima Developer Community
Sponsored Link

Java Answers Forum
How can I knoy the machine name where the program is running?

2 replies on 1 page. Most recent reply: Feb 2, 2003 2:13 AM by asheesh misra

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
Juanjo Gandia

Posts: 1
Nickname: apliinter
Registered: Jan, 2003

How can I knoy the machine name where the program is running? Posted: Jan 29, 2003 5:15 AM
Reply to this message Reply
Advertisement
Thank you


Mikhail Guzman

Posts: 1
Nickname: alaert
Registered: Jan, 2003

Re: How can I knoy the machine name where the program is running? Posted: Jan 30, 2003 2:38 PM
Reply to this message Reply
InetAddress.getLocalHost().getHostName()

asheesh misra

Posts: 3
Nickname: asheeshji
Registered: Jan, 2003

Re: How can I knoy the machine name where the program is running? Posted: Feb 2, 2003 2:13 AM
Reply to this message Reply
System.out.println("The Machine Name Is : "+InetAddress.getLocalHost().getHostName());

Flat View: This topic has 2 replies on 1 page
Topic: List directory contents in menu Previous Topic   Next Topic Topic: Creating a Method

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use