This project is dedicated to demonstrating hackish examples of interacting with Google Earth from a Java application. See http://www.austinjug.org/presentations/GoogleEarthHacks.pdf for a brief presentation. I'd recommend using NASA's World Wind (http://builds.worldwind.arc.nasa.gov/download.asp) for a proper Java integration, but if your project requires Google Earth here you go.