I need to see if anybody has come across a similar issue.
I am attempting to execute a KML file using Google Earth Desktop and Java. The
operating system being used is Ubuntu 12.xx.
Problem
I am able to build a KML file and execute it using a Google Earth instance. The
data displays fine on the first run. If
I need to execute another KML, a second Google Earth instance will load up
displaying the new KML data. The first instance would still display the initial
KML file. This situation keeps repeating for each KML file sent to Google
Earth.
What I am trying to use
I am using Java's Runtime class to execute the KML file on Google Earth.
Runtime.getRuntime().exec(new String[] {...
------------------
Piping Approach
I created a test KML file containing random placemarks and tried various piping
approaches to send the data to Google Earth, but was unsuccessful. I used the
same piping approaches by sending the contents of the KML file to GEdit, and
the text displayed in the editor correctly.
Piping Attempt Results
Google Earth loads up...
1. A message would mention that the KML file could not be read. I confirmed
that the KML file was created correctly by right clicking on the file and
opening it with Google Earth directly. The KML displayed right.
2. Would experience the same issue as the Java Runtime problem previously
mentioned.
------------------
Research To Resolve Issue
I noticed that Ubuntu tends to lock the Google Earth instance when it is being
used. I removed the lock and still experienced the same problem. Also, I tried
the same approaches as an admin, but Google Earth kept opening another instance
for each KML used.
------------------
Goal
I need to be able to send 'x' amount of KML files to Google Earth using the
same instance.
------------------
Just in case fyi…
The Google Earth plugin is not available for Ubuntu. :-(
------------------
Any assistance would be greatly appreciated.
If you have any questions, please let me know.
Thanks in advance.
mleteff