Is there anyway I can get the output of traceroute in java. I know I could use exec but I want to know if there is any API can fetch the output for me not worrying about platform.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Can you try using the following API :
http://jakewharton.github.io/pingdom-java/apidocs/com/jakewharton/pingdom/entities/TraceRoute.html
GitHub link:
https://github.com/JakeWharton/
回答2:
If you don't want to do specifically in a language, i would recommend you to go to the command line and type tracert www.google.com
,it will give you the desired result