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.
Can you try using the following API :
http://jakewharton.github.io/pingdom-java/apidocs/com/jakewharton/pingdom/entities/TraceRoute.html
GitHub link: