This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
JPCap requires a user to install c/c++/c# libraries to execute the Traceroute code.
However, The following "seems" to execute the Traceroute using a Java Applet (only Java) because it does not requires a user to download any libraries/ files to display the traceroute from their server to the user's machine.
1) Is it possible to implement Traceroute using (only) Java?
2) Is it possible to implement the Traceroute in Java as an Applet?
Am I missing something here?
Joined: Mar 22, 2005
I'm not sure what you mean by "the following" (did you mean to add a link?), but traceroute can't be implemented in Java w/o using native libraries, because Java does not support the low-level ICMP protocol used by traceroute.
The above links displays an applet, which performs the traceroute and displays the result on the web page. Since it did not prompt me to download and install any file to use it, I assume it is done in Java (not sure)
Andy -- if you look carefully at that applet, you'll see that by default it offers to run a traceroute from "This Server". You can also use the popup menu to choose "My Computer". If you run the traceroute from "This Server", then it runs from the web server, and of course you don't know what kind of code is located there. If you pick "My Computer", it does indeed ask you to download something first.
If you do want to go the applet route, note that it's possible to ship native libraries with an applet, as long as all involved files are digitally signed. You'd have to supply versions for all client OSes you want to support, though (Windows, OS X, Linux, etc.).