![]() |
|
|||||||
| Google Earth Hacks Home | Google Earth Files | Register | FAQ | Members List | Social Groups | Search | Today's Posts | Mark Forums Read |
| Using Google Earth Questions about how to use it, strange quirks you've found, etc. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Aug 2005
Posts: 3
|
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? |
|
|
|
|
|
#2 |
|
Junior Member
Join Date: Aug 2005
Posts: 16
|
can u display your batch-file?
|
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Aug 2005
Posts: 3
|
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" |
|
|
|
|
|
#4 |
|
Junior Member
Join Date: Aug 2005
Posts: 3
|
Fixed it..... Thanks anyway.
|
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Oct 2005
Posts: 14
|
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? |
|
|
|
|
|
#6 |
|
Licensed to Ban
Join Date: Jul 2005
Location: Sydney, Oz
Posts: 1,244
|
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. |
|
|
|
|
|
#7 |
|
Junior Member
Join Date: Oct 2005
Posts: 14
|
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? |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|