Getting an error running uploadAggregateToAppEngine.hta

Hello,
I believe that I have followed all of the instructions correctly for
installing Aggregate on App Engine. When I run
uploadAggregateToAppEngine.hta it says "---END-SCRIPT-SUCCESS--- at the
end, but there appear to be errors. I have Java 7 installed. The upload
progress says "found java in PATH... C:\Windows\System32\java.exe" but I
don't have Java installed in that location. Below is the text of the output
when I attempted the upload. Any help would be greatly appreciated.
Steve

Looking for java...
found java in PATH... C:\Windows\System32\java.exe
Exception in thread "main" java.lang.ExceptionInInitializerError
at
com.google.appengine.tools.util.Logging.initializeLogging(Logging.java:35)
at com.google.appengine.tools.admin.AppCfg.main(AppCfg.java:116)
Caused by: java.lang.IllegalArgumentException: URI has an authority
component
at java.io.File.(Unknown Source)
at com.google.appengine.tools.info.SdkInfo.findSdkRoot(SdkInfo.java:108)
at com.google.appengine.tools.info.SdkInfo.init(SdkInfo.java:235)
at com.google.appengine.tools.info.SdkInfo.getSdkRoot(SdkInfo.java:190)
at com.google.appengine.tools.info.SdkImplInfo.(SdkImplInfo.java:19)
... 2 more
---- WEBSITE COMPLETE - BEGIN BACKEND ----
Exception in thread "main" java.lang.ExceptionInInitializerError
at
com.google.appengine.tools.util.Logging.initializeLogging(Logging.java:35)
at com.google.appengine.tools.admin.AppCfg.main(AppCfg.java:116)
Caused by: java.lang.IllegalArgumentException: URI has an authority
component
at java.io.File.(Unknown Source)
at com.google.appengine.tools.info.SdkInfo.findSdkRoot(SdkInfo.java:108)
at com.google.appengine.tools.info.SdkInfo.init(SdkInfo.java:235)
at com.google.appengine.tools.info.SdkInfo.getSdkRoot(SdkInfo.java:190)
at com.google.appengine.tools.info.SdkImplInfo.(SdkImplInfo.java:19)
... 2 more
*---END-SCRIPT-SUCCESS--- *

Thanks for reporting this. I created ticket
http://code.google.com/p/opendatakit/issues/detail?id=945 to track the
issue with the installer not detecting this problem.

The issue is caused by whatever installer you used to install java 7 on
your system. You should run that installer with Admin rights to allow it
to replace the java.exe in your C:\windows\system32 directory.

If you just download and explode a zip of Java 7, and update the PATH to
include that directory, you need to do the appropriate replacement or
update of the files in System32 (java.exe, javaw.exe, javaws.exe, and
perhaps others). Best to use one of the MSI installers with Admin rights
to get it done correctly.

··· On Wed, Dec 4, 2013 at 2:29 PM, Steven Hansen wrote:

Hello,
I believe that I have followed all of the instructions correctly for
installing Aggregate on App Engine. When I run
uploadAggregateToAppEngine.hta it says "---END-SCRIPT-SUCCESS--- at the
end, but there appear to be errors. I have Java 7 installed. The upload
progress says "found java in PATH... C:\Windows\System32\java.exe" but I
don't have Java installed in that location. Below is the text of the output
when I attempted the upload. Any help would be greatly appreciated.
Steve

Looking for java...
found java in PATH... C:\Windows\System32\java.exe
Exception in thread "main" java.lang.ExceptionInInitializerError
at
com.google.appengine.tools.util.Logging.initializeLogging(Logging.java:35)
at com.google.appengine.tools.admin.AppCfg.main(AppCfg.java:116)
Caused by: java.lang.IllegalArgumentException: URI has an authority
component
at java.io.File.(Unknown Source)
at com.google.appengine.tools.info.SdkInfo.findSdkRoot(SdkInfo.java:108)
at com.google.appengine.tools.info.SdkInfo.init(SdkInfo.java:235)
at com.google.appengine.tools.info.SdkInfo.getSdkRoot(SdkInfo.java:190)
at com.google.appengine.tools.info.SdkImplInfo.(SdkImplInfo.java:19)
... 2 more
---- WEBSITE COMPLETE - BEGIN BACKEND ----
Exception in thread "main" java.lang.ExceptionInInitializerError
at
com.google.appengine.tools.util.Logging.initializeLogging(Logging.java:35)
at com.google.appengine.tools.admin.AppCfg.main(AppCfg.java:116)
Caused by: java.lang.IllegalArgumentException: URI has an authority
component
at java.io.File.(Unknown Source)
at com.google.appengine.tools.info.SdkInfo.findSdkRoot(SdkInfo.java:108)
at com.google.appengine.tools.info.SdkInfo.init(SdkInfo.java:235)
at com.google.appengine.tools.info.SdkInfo.getSdkRoot(SdkInfo.java:190)
at com.google.appengine.tools.info.SdkImplInfo.(SdkImplInfo.java:19)
... 2 more
*---END-SCRIPT-SUCCESS--- *

--
You received this message because you are subscribed to the Google Groups
"ODK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com

Mitch,
Thanks for the reply. I uninstalled java, changed my PATH variable back to
what it was previously, and installed java from here:

I downloaded jre-7-windows-i586.exe

I kept the default location as is:
C:\Program Files (x86)\Java\jre7

java.exe, javaw.exe, javaws.exe went to this location:
C:\Program Files (x86)\Java\jre7\bin

I decided to run uploadAggregateToAppEngine and it worked!

I think it's worth noting that after reading your note I first attempted to
reinstall java using jre-7-windows-x64.exe from the same location (

)
This installation put java.exe, javaw.exe, javaws.exe
into C:\Windows\System32.

When I ran uploadAggregateToAppEngine, it gave me an error saying it
couldn't find the variable JAVA_HOME. I created JAVA_HOME and tried various
directory combinations without success. (I unfortunately did not save the
exact error message.)
I was about to message you with my new problem, and I decided to uninstall
the 64 bit version and install the 32 bit version as I explained above. (I
deleted the JAVA_HOME variable before installing the 32 bit version.)

Thanks again for your help.
Steve

··· On Wednesday, December 4, 2013 3:02:58 PM UTC-8, Mitch wrote: > > Thanks for reporting this. I created ticket > http://code.google.com/p/opendatakit/issues/detail?id=945 to track the > issue with the installer not detecting this problem. > > The issue is caused by whatever installer you used to install java 7 on > your system. You should run that installer with Admin rights to allow it > to replace the java.exe in your C:\windows\system32 directory. > > If you just download and explode a zip of Java 7, and update the PATH to > include that directory, you need to do the appropriate replacement or > update of the files in System32 (java.exe, javaw.exe, javaws.exe, and > perhaps others). Best to use one of the MSI installers with Admin rights > to get it done correctly. > > > > On Wed, Dec 4, 2013 at 2:29 PM, Steven Hansen wrote: > >> Hello, >> I believe that I have followed all of the instructions correctly for >> installing Aggregate on App Engine. When I run >> uploadAggregateToAppEngine.hta it says "---END-SCRIPT-SUCCESS--- at the >> end, but there appear to be errors. I have Java 7 installed. The upload >> progress says "found java in PATH... C:\Windows\System32\java.exe" but I >> don't have Java installed in that location. Below is the text of the output >> when I attempted the upload. Any help would be greatly appreciated. >> Steve >> >> >> Looking for java... >> found java in PATH... C:\Windows\System32\java.exe >> Exception in thread "main" java.lang.ExceptionInInitializerError >> at >> com.google.appengine.tools.util.Logging.initializeLogging(Logging.java:35) >> at com.google.appengine.tools.admin.AppCfg.main(AppCfg.java:116) >> Caused by: java.lang.IllegalArgumentException: URI has an authority >> component >> at java.io.File.(Unknown Source) >> at com.google.appengine.tools.info.SdkInfo.findSdkRoot(SdkInfo.java:108) >> at com.google.appengine.tools.info.SdkInfo.init(SdkInfo.java:235) >> at com.google.appengine.tools.info.SdkInfo.getSdkRoot(SdkInfo.java:190) >> at com.google.appengine.tools.info.SdkImplInfo.(SdkImplInfo.java:19) >> ... 2 more >> ---- WEBSITE COMPLETE - BEGIN BACKEND ---- >> Exception in thread "main" java.lang.ExceptionInInitializerError >> at >> com.google.appengine.tools.util.Logging.initializeLogging(Logging.java:35) >> at com.google.appengine.tools.admin.AppCfg.main(AppCfg.java:116) >> Caused by: java.lang.IllegalArgumentException: URI has an authority >> component >> at java.io.File.(Unknown Source) >> at com.google.appengine.tools.info.SdkInfo.findSdkRoot(SdkInfo.java:108) >> at com.google.appengine.tools.info.SdkInfo.init(SdkInfo.java:235) >> at com.google.appengine.tools.info.SdkInfo.getSdkRoot(SdkInfo.java:190) >> at com.google.appengine.tools.info.SdkImplInfo.(SdkImplInfo.java:19) >> ... 2 more >> *---END-SCRIPT-SUCCESS--- * >> >> -- >> > > > > -- > Mitch Sundt > Software Engineer > University of Washington > mitche...@gmail.com >