the simplest Java http pinger:
URLConnection hcon = new URL("http://www.google.com").openConnection(); hcon.connect(); hcon.getInputStream().read();