• Post Reply Bookmark Topic Watch Topic
  • New Topic

Need urgent

 
Ajit Amitav Das
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI
guys,i can't find any reason why java networking classes don't have ping method,and wht may be the reason behind it,plz ans this it's urgent.

If anyone wil be kind enough to answer this then i wil be thankful to him.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java does not have have an API for ICMP protocol access, which is needed for ping, traceroute and the like. Your options are either to integrate native functionality via JNI, or to interface with an existing ping as an external process via Runtime.exec.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!