Google Earth Hacks Forums  

Go Back   Google Earth Hacks Forums > Google Earth > Using Google Earth

Using Google Earth Questions about how to use it, strange quirks you've found, etc.

Reply
 
Thread Tools Display Modes
Old 08-12-2005, 02:20 PM   #1
opperhaus
Junior Member
 
Join Date: Aug 2005
Posts: 3
Default Spawning Google Earth from Java

I'm trying to spawn GE from a Java app that generates a kml file with custom annotations. The kml file is good as I can do a File->Open and see the Placemarks, etc. When doing a Runtime.exec of a Windows batch file that starts GE, GE opens and gives me an "Error opening file: Unsupported Protocol " popup.
Running th batch file from a command prompt work just fine.

Any ideas?
opperhaus is offline   Reply With Quote
Old 08-12-2005, 02:23 PM   #2
dan
Junior Member
 
Join Date: Aug 2005
Posts: 16
Smile correct working path?

can u display your batch-file?
dan is offline   Reply With Quote
Old 08-12-2005, 02:26 PM   #3
opperhaus
Junior Member
 
Join Date: Aug 2005
Posts: 3
Default

File contents below... Works fine from the command line...

@echo off

start "GoogleEarth" "c:\Program Files\Google\Google Earth Plus\GoogleEarth.exe" "c:\Documents and Settings\User\Projects\project\data\data.kml"
opperhaus is offline   Reply With Quote
Old 08-12-2005, 03:12 PM   #4
opperhaus
Junior Member
 
Join Date: Aug 2005
Posts: 3
Default

Fixed it..... Thanks anyway.
opperhaus is offline   Reply With Quote
Old 10-24-2005, 02:38 PM   #5
ehrens
Junior Member
 
Join Date: Oct 2005
Posts: 14
Default Spawning Goolgle Earth From Java

I tried to launch GE from the command line with

start "GoogleEarth" "c:\Program Files\Google\Google Earth Plus\GoogleEarth.exe" "c:\Documents and Settings\User\Projects\project\data\data.kml"

as specified in the previous post, but I get an error that states....

Fetch of data.kml failed. Unsupported Protocol.


Does anybody know what that means?
ehrens is offline   Reply With Quote
Old 10-24-2005, 02:54 PM   #6
araT
Licensed to Ban
 
araT's Avatar
 
Join Date: Jul 2005
Location: Sydney, Oz
Posts: 1,244
Default

ehrens; Its because you dont have a .kml file at c:\Documents and Settings\User\Projects\project\data\data.kml I presume that is where opperhaus has his generator dropping the .kml file

T.
araT is offline   Reply With Quote
Old 10-24-2005, 03:06 PM   #7
ehrens
Junior Member
 
Join Date: Oct 2005
Posts: 14
Default

Actually, you're right, but that's not the problem. I posted the wrong path to the file....mine is actually just at d:/GoogleEarth/test.kml. And so, my command is updated as such...


start "GoogleEarth" "C:\Documents and Settings\axe130\Application Data\Google\Google Earth\GoogleEarth.exe" "d:\GoogleEarth\test.kml"


Any other ideas?
ehrens is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:02 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.