Google Earth now runs from the browser and has a Java API. http://googlesystem.blogspot.com/2008/05/google-earth-browser-plugin.html