Link to home
Start Free TrialLog in
Avatar of johnchan2000
johnchan2000

asked on

Java + Google Earth

Experts,
   Is there a way for me to send data (.kml?) from my Java application to google earth (running on my desktop)?
Basically, what I would like to do is be able to periodically update GE display with coordinates that I received from my Java app.

Any help is greatly appreciated.

john
Avatar of Mayank S
Mayank S
Flag of India image

johnchan2000,
> asically, what I would like to do is be able to periodically update GE
> display with coordinates that I received from my Java app.

If you create the proper KLM file I cannot see why you wouldn't be able to send it to the google earth client you are running. Have a look at the following links:

http://earth.google.com/kml/kml_tut.html
http://earth.google.com/kml/
Avatar of RoyalNepal
RoyalNepal

Avatar of johnchan2000

ASKER

How do I send the KLM file from my Java app to google earth (desktop)?  Is there an SDK or API for Google Earth?  No pun intended, but   I spent quite some hours "googling" this thing and nothing came up.  Most of the examples and samples are for JSP, servlets, PHP and what not.  What I need is the ability to incorporate GE into my Java app and continuously feed it with data (KLM files).

Any pointers?

Regards,
john
ASKER CERTIFIED SOLUTION
Avatar of RoyalNepal
RoyalNepal

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
So what was the answer?
The answer is that it can't be done - invoking GE from a java app and feeding it data (as responded by RoyalNepal).  I was looking for a possible solution for a standalone application.  The fact that RoyalNepal pointed out that it can't be done is a good enough answer for me.

Regards,
john
Actually I haven't been online on EE much recently, so I've not followed up on many questions including this one.

>> Most of the examples and samples are for JSP, servlets, PHP and what not

Meaning you're able to get some response in JSPs, etc? If yes, you can get the same using sockets/ streams in J2SE as well and display it in something like a JEditorPane or an Applet maybe.
mayankeagle ,

>Meaning you're able to get some response in JSPs, etc? If yes, you can get the same using sockets/ streams in J2SE as well and display it in something like a JEditorPane or an Applet maybe.

That won't work for what I need to do.  In order to include JSP, servlets, PHP, etc. into the equation then one must include some sort of a web/app server.  I am looking for a solution that is strictly for the standalone environment.

Regards,
john
Yes, what I'm saying is that if the same can be displayed in a JEditorPane or some other component why not use it? Or is the case that its not possible to use it?
You cannot do it. I tried to do the same thing...but did not work..

If you are looking for standalone environment...and find how to do it...please let me know...

Regards,
Praj