Building v1.3 Aggregate with new Maps API (gwt-google-maps-v3-snapshot.jar)

ODK Developers,

We're having trouble building the new Aggregate v1.3. The trouble stems
from the following build error:

[INFO] Loading inherited module 'org.opendatakit.aggregate.AggregateUI'
[INFO] Loading inherited module 'com.google.gwt.maps.Maps'
[INFO] Loading inherited module 'com.google.gwt.jsio.JSIO'
[INFO] [ERROR] Unexpected error while processing XML
[INFO] java.lang.UnsupportedClassVersionError:
com/google/gwt/jsio/rebind/JSWrapperGenerator : Unsupported major.minor
version 51.0

This seems to stem from gwt-google-maps-v3-snapshot.jar, and the error
suggests that it was built using JDK 7 (1.7) rather than 6 (1.6). We always
build with JDK 6 because the target environment is JRE 6. Though in theory
we could use JDK 7 to build for JRE 6 (since the pom.xml specifies 1.6 as
the target), we figure it's safest to just build with JDK 6. In this case,
gwt-google-maps-v3-snapshot.jar seems to have maybe been built for a 1.7
target.

Rather than shift all build environments to JDK 7 -- and possibly all
runtime environments to JRE 7 -- we figured that we would just rebuild
gwt-google-maps-v3-snapshot.jar. And sure enough, we found instructions for
rebuilding in opendatakit.components/README.txt.

Unfortunately, those instructions reference a public repo (
http://code.google.com/p/gwt-google-maps-v3/) that no longer exists and,
apparently, was deprecated long ago. Alternative repos that do exist (e.g.,
https://code.google.com/p/gwt-maps3,
https://code.google.com/p/gwt-google-apis, or
https://github.com/branflake2267) appear to differ substantially. Thus, we
cannot pull the sources with which to rebuild the necessary jar.

I see two obvious solutions. One, somebody pushes the
old gwt-google-maps-v3 sources into the opendatakit.components repo so that
we can rebuild. And/or, two, somebody rebuilds the jar for Java 6. Or..?

Thanks very much,

Chris

Yes, it took quite some time to find a good, thin, Google Maps v3 library.
The others seemed to add a lot of excess boilerplate.

I've just added my Eclipse project files for 'gwt-google-maps-v3' to the
'Aggregate Components' project.

This lacks the change history of those files, but since the original
project has vanished, that seems irrelevant?

Mitch

··· On Fri, Apr 19, 2013 at 11:37 PM, Christopher Robert wrote:

ODK Developers,

We're having trouble building the new Aggregate v1.3. The trouble stems
from the following build error:

[INFO] Loading inherited module 'org.opendatakit.aggregate.AggregateUI'
[INFO] Loading inherited module 'com.google.gwt.maps.Maps'
[INFO] Loading inherited module 'com.google.gwt.jsio.JSIO'
[INFO] [ERROR] Unexpected error while processing XML
[INFO] java.lang.UnsupportedClassVersionError:
com/google/gwt/jsio/rebind/JSWrapperGenerator : Unsupported major.minor
version 51.0

This seems to stem from gwt-google-maps-v3-snapshot.jar, and the error
suggests that it was built using JDK 7 (1.7) rather than 6 (1.6). We always
build with JDK 6 because the target environment is JRE 6. Though in theory
we could use JDK 7 to build for JRE 6 (since the pom.xml specifies 1.6 as
the target), we figure it's safest to just build with JDK 6. In this case,
gwt-google-maps-v3-snapshot.jar seems to have maybe been built for a 1.7
target.

Rather than shift all build environments to JDK 7 -- and possibly all
runtime environments to JRE 7 -- we figured that we would just rebuild
gwt-google-maps-v3-snapshot.jar. And sure enough, we found instructions for
rebuilding in opendatakit.components/README.txt.

Unfortunately, those instructions reference a public repo (
http://code.google.com/p/gwt-google-maps-v3/) that no longer exists and,
apparently, was deprecated long ago. Alternative repos that do exist (e.g.,
https://code.google.com/p/gwt-maps3,
https://code.google.com/p/gwt-google-apis, or
https://github.com/branflake2267) appear to differ substantially. Thus,
we cannot pull the sources with which to rebuild the necessary jar.

I see two obvious solutions. One, somebody pushes the
old gwt-google-maps-v3 sources into the opendatakit.components repo so that
we can rebuild. And/or, two, somebody rebuilds the jar for Java 6. Or..?

Thanks very much,

Chris

--
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

Hi Mitch,

Thank you -- that was all I needed.

For what it's worth, I did need to change your Eclipse configuration. It
was set to use JDK 1.7 system libraries and build .class files with 1.7
compatibility. Once I changed to 1.6 libraries and compatibility, the
rebuilt .jar worked great. That then matched the Aggregate config (which is
1.6).

Thanks again,

Chris

··· On Mon, Apr 22, 2013 at 8:32 PM, Mitch Sundt wrote:

Yes, it took quite some time to find a good, thin, Google Maps v3 library.
The others seemed to add a lot of excess boilerplate.

I've just added my Eclipse project files for 'gwt-google-maps-v3' to the
'Aggregate Components' project.

This lacks the change history of those files, but since the original
project has vanished, that seems irrelevant?

Mitch

On Fri, Apr 19, 2013 at 11:37 PM, Christopher Robert < crobert@surveycto.com> wrote:

ODK Developers,

We're having trouble building the new Aggregate v1.3. The trouble stems
from the following build error:

[INFO] Loading inherited module 'org.opendatakit.aggregate.AggregateUI'
[INFO] Loading inherited module 'com.google.gwt.maps.Maps'
[INFO] Loading inherited module 'com.google.gwt.jsio.JSIO'
[INFO] [ERROR] Unexpected error while processing XML
[INFO] java.lang.UnsupportedClassVersionError:
com/google/gwt/jsio/rebind/JSWrapperGenerator : Unsupported major.minor
version 51.0

This seems to stem from gwt-google-maps-v3-snapshot.jar, and the error
suggests that it was built using JDK 7 (1.7) rather than 6 (1.6). We always
build with JDK 6 because the target environment is JRE 6. Though in theory
we could use JDK 7 to build for JRE 6 (since the pom.xml specifies 1.6 as
the target), we figure it's safest to just build with JDK 6. In this case,
gwt-google-maps-v3-snapshot.jar seems to have maybe been built for a 1.7
target.

Rather than shift all build environments to JDK 7 -- and possibly all
runtime environments to JRE 7 -- we figured that we would just rebuild
gwt-google-maps-v3-snapshot.jar. And sure enough, we found instructions for
rebuilding in opendatakit.components/README.txt.

Unfortunately, those instructions reference a public repo (
http://code.google.com/p/gwt-google-maps-v3/) that no longer exists and,
apparently, was deprecated long ago. Alternative repos that do exist (e.g.,
https://code.google.com/p/gwt-maps3,
https://code.google.com/p/gwt-google-apis, or
https://github.com/branflake2267) appear to differ substantially. Thus,
we cannot pull the sources with which to rebuild the necessary jar.

I see two obvious solutions. One, somebody pushes the
old gwt-google-maps-v3 sources into the opendatakit.components repo so that
we can rebuild. And/or, two, somebody rebuilds the jar for Java 6. Or..?

Thanks very much,

Chris

--
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

--
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.

Thanks. I'll look into revising the project to set a 1.6 JRE target.

··· On Mon, Apr 22, 2013 at 9:07 PM, Christopher Robert wrote:

Hi Mitch,

Thank you -- that was all I needed.

For what it's worth, I did need to change your Eclipse configuration. It
was set to use JDK 1.7 system libraries and build .class files with 1.7
compatibility. Once I changed to 1.6 libraries and compatibility, the
rebuilt .jar worked great. That then matched the Aggregate config (which is
1.6).

Thanks again,

Chris

On Mon, Apr 22, 2013 at 8:32 PM, Mitch Sundt mitchellsundt@gmail.comwrote:

Yes, it took quite some time to find a good, thin, Google Maps v3
library. The others seemed to add a lot of excess boilerplate.

I've just added my Eclipse project files for 'gwt-google-maps-v3' to the
'Aggregate Components' project.

This lacks the change history of those files, but since the original
project has vanished, that seems irrelevant?

Mitch

On Fri, Apr 19, 2013 at 11:37 PM, Christopher Robert < crobert@surveycto.com> wrote:

ODK Developers,

We're having trouble building the new Aggregate v1.3. The trouble stems
from the following build error:

[INFO] Loading inherited module 'org.opendatakit.aggregate.AggregateUI'
[INFO] Loading inherited module 'com.google.gwt.maps.Maps'
[INFO] Loading inherited module 'com.google.gwt.jsio.JSIO'
[INFO] [ERROR] Unexpected error while processing XML
[INFO] java.lang.UnsupportedClassVersionError:
com/google/gwt/jsio/rebind/JSWrapperGenerator : Unsupported major.minor
version 51.0

This seems to stem from gwt-google-maps-v3-snapshot.jar, and the error
suggests that it was built using JDK 7 (1.7) rather than 6 (1.6). We always
build with JDK 6 because the target environment is JRE 6. Though in theory
we could use JDK 7 to build for JRE 6 (since the pom.xml specifies 1.6 as
the target), we figure it's safest to just build with JDK 6. In this case,
gwt-google-maps-v3-snapshot.jar seems to have maybe been built for a 1.7
target.

Rather than shift all build environments to JDK 7 -- and possibly all
runtime environments to JRE 7 -- we figured that we would just rebuild
gwt-google-maps-v3-snapshot.jar. And sure enough, we found instructions for
rebuilding in opendatakit.components/README.txt.

Unfortunately, those instructions reference a public repo (
http://code.google.com/p/gwt-google-maps-v3/) that no longer exists
and, apparently, was deprecated long ago. Alternative repos that do exist
(e.g., https://code.google.com/p/gwt-maps3,
https://code.google.com/p/gwt-google-apis, or
https://github.com/branflake2267) appear to differ substantially. Thus,
we cannot pull the sources with which to rebuild the necessary jar.

I see two obvious solutions. One, somebody pushes the
old gwt-google-maps-v3 sources into the opendatakit.components repo so that
we can rebuild. And/or, two, somebody rebuilds the jar for Java 6. Or..?

Thanks very much,

Chris

--
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

--
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.

--
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