Java - API support for traceroute?

2019-07-12 20:03发布

问题:

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