Results 1 to 2 of 2

Thread: Passing XML info to GE from Java

  1. #1
    Junior Member
    Join Date
    Nov 2005
    Posts
    2

    Default Passing XML info to GE from Java

    I'm trying to create a tool that uses a joystick to control GE. My plan is to feed the joystick data into a java program via serial and pass this data as XML information to GE. Is is possible to tell GE to take commands from a Java app? Or should I try something other than Java?

    Any ideas would be very helpful.

    thanks,
    Matt

  2. #2
    Junior Member
    Join Date
    Aug 2005
    Posts
    20

    Default

    You can pass xml data to GE by way of opening kml/kmz files or using a network link, but you can't "control" GE that way, so it's probably not what you want. There's another thread in this forum about controlling GE, Using COM interfaces to drive Google Earth. I didn't try it so I can't say how well it works. You can't use COM directly from Java, but there are libraries for that, for example JACOB. Java isn't really the best language for this kind of "low level" programming, but it should be possible.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •