# Problems with setting ODK Aggregate as a Java project

**URL:** <https://forum.getodk.org/t/problems-with-setting-odk-aggregate-as-a-java-project/4567>\
**Category:** Development\
**Created:** [July 27, 2015, 1:49pm UTC](https://forum.getodk.org/t/problems-with-setting-odk-aggregate-as-a-java-project/4567 "2015-07-27T13:49:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anna\_Walach](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/a/82dd89/32.png) [@Anna\_Walach](https://forum.getodk.org/u/Anna_Walach)\
**Post date:** [July 27, 2015, 1:49pm UTC](https://forum.getodk.org/t/problems-with-setting-odk-aggregate-as-a-java-project/4567/1 "2015-07-27T13:49:58Z")

</div>

Hi guys,  
I downloaded from your repo version 1.4.7 of the Aggregate app. I've more  
or less successfully set up the project and it is now happily running.

1. _A bug._  
First thing is, in the build/build.xml, line 22, the SDK is trying to  
download from the link that is not longer valid:

> [https://storage.googleapis.com/appengine-sdks/featured/appengine-java-sdk-1.9.18.zip](https://storage.googleapis.com/appengine-sdks/featured/appengine-java-sdk-1.9.18.zip)

The link for 1.9.18 now is "deprecated" so the proper link is:

> [https://storage.googleapis.com/appengine-sdks/deprecated/appengine-java-sdk-1.9.18.zip](https://storage.googleapis.com/appengine-sdks/deprecated/appengine-java-sdk-1.9.18.zip)

or the one pointing to newer version.  
2. _A problem._  
I am using Aggregate with PostgreSQL and Tomcat. It is running on tomcat  
now (although not launched from inside eclipse because of dependency  
problems,  
just by coping postgres war to /webapps) and I can upload form, submissions  
etc.

But, when I try to add new functionalities somewhere in the  
/src/org/aggregate(...),  
Eclipse tells me, that the aggregate parent project in not a Java project  
(just a maven one).  
It means that I'm basically using my Eclipse as a notepad, because classes  
are not connected to each other and "aggregate is not a proper compilation  
unit."

I tried to follow the description from Configure.txt step by step. Did I  
missed something or is this expected behaviour?  
How can I make this project behave like a Java project?

Best Regards,  
Anna

---

<div class="post-metadata">

**Author:** ![Mitch\_S](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/m/3ec8ea/32.png) [@Mitch\_S](https://forum.getodk.org/u/Mitch_S)\
**Post date:** [July 27, 2015, 6:53pm UTC](https://forum.getodk.org/t/problems-with-setting-odk-aggregate-as-a-java-project/4567/2 "2015-07-27T18:53:35Z")

</div>

The CONFIGURE.txt describes the steps for setting up an eclipse GAE project  
that is debuggable and/or a Maven build of the tools.

Definitely get the Eclipse AppEngine dev environment working before  
advancing to MySQL or PostgreSQL.

Note that the Maven build environment uses a different set of projects than  
the Eclipse development workspace does.  
The only thing that overlaps is the AppEngine configuration project, but  
even that uses an Ant script for Eclipse that isn't used for the Maven  
builds.

For MySQL or PostgreSQL development environment, see the the SETUP.txt in  
the eclipse-aggregate-mysql folder (the MySQL dev environment project).  
It describes the steps I use for setting up a MySQL project within Eclipse.

In the distant past, the GWT tools did not work smoothly outside of an  
AppEngine development environment, so I have generally done all the code  
changes in the AppEngine environment and only set up the MySQL or  
PostgreSQL environments when debugging quirks specific to those  
environments (e.g., background publishers).

Otherwise, I would run the maven builds and just confirm operations of the  
tools on those other systems, rather than do my development against them.

> **···**
>
> On Mon, Jul 27, 2015 at 6:49 AM, Anna Wałach wrote:
> 
> > Hi guys,  
> > I downloaded from your repo version 1.4.7 of the Aggregate app. I've more  
> > or less successfully set up the project and it is now happily running.
> > 
> > 1. _A bug._  
> > First thing is, in the build/build.xml, line 22, the SDK is trying to  
> > download from the link that is not longer valid:
> > 
> > > [https://storage.googleapis.com/appengine-sdks/featured/appengine-java-sdk-1.9.18.zip](https://storage.googleapis.com/appengine-sdks/featured/appengine-java-sdk-1.9.18.zip)
> > 
> > The link for 1.9.18 now is "deprecated" so the proper link is:
> > 
> > > [https://storage.googleapis.com/appengine-sdks/deprecated/appengine-java-sdk-1.9.18.zip](https://storage.googleapis.com/appengine-sdks/deprecated/appengine-java-sdk-1.9.18.zip)
> > 
> > or the one pointing to newer version.  
> > 2. _A problem._  
> > I am using Aggregate with PostgreSQL and Tomcat. It is running on tomcat  
> > now (although not launched from inside eclipse because of dependency  
> > problems,  
> > just by coping postgres war to /webapps) and I can upload form,  
> > submissions etc.
> > 
> > But, when I try to add new functionalities somewhere in the  
> > /src/org/aggregate(...),  
> > Eclipse tells me, that the aggregate parent project in not a Java project  
> > (just a maven one).  
> > It means that I'm basically using my Eclipse as a notepad, because classes  
> > are not connected to each other and "aggregate is not a proper compilation  
> > unit."
> > 
> > I tried to follow the description from Configure.txt step by step. Did I  
> > missed something or is this expected behaviour?  
> > How can I make this project behave like a Java project?
> > 
> > Best Regards,  
> > Anna
> > 
> > --  
> > 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](mailto:opendatakit-developers+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> Mitch Sundt  
> Software Engineer  
> University of Washington  
> [mitchellsundt@gmail.com](mailto:mitchellsundt@gmail.com)

---

<div class="post-metadata">

**Author:** ![Francisco\_J\_Lacueva](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/f/3d9bf3/32.png) [@Francisco\_J\_Lacueva](https://forum.getodk.org/u/Francisco_J_Lacueva)\
**Post date:** [April 12, 2016, 11:10am UTC](https://forum.getodk.org/t/problems-with-setting-odk-aggregate-as-a-java-project/4567/3 "2016-04-12T11:10:43Z")

</div>

Hi all,  
The correction provided by Anna does not work now. I tried to download the  
current version (1.9.34) of the appengine. Do you know if it is compatible  
with the ODK aggregate?

It is available  
at [https://storage.googleapis.com/appengine-sdks/featured/appengine-java-sdk-1.9.34.zip](https://storage.googleapis.com/appengine-sdks/featured/appengine-java-sdk-1.9.34.zip)

Best regards

> **···**
>
> El lunes, 27 de julio de 2015, 15:49:58 (UTC+2), Anna Wałach escribió: \> \> Hi guys, \> I downloaded from your repo version 1.4.7 of the Aggregate app. I've more \> or less successfully set up the project and it is now happily running. \> 1. \*A bug.\* \> First thing is, in the build/build.xml, line 22, the SDK is trying to \> download from the link that is not longer valid: \> \>\> \>\> https://storage.googleapis.com/appengine-sdks/featured/appengine-java-sdk-1.9.18.zip \>\> \> The link for 1.9.18 now is "deprecated" so the proper link is: \> \>\> \>\> https://storage.googleapis.com/appengine-sdks/deprecated/appengine-java-sdk-1.9.18.zip \> \> or the one pointing to newer version. \> 2. \*A problem.\* \> I am using Aggregate with PostgreSQL and Tomcat. It is running on tomcat \> now (although not launched from inside eclipse because of dependency \> problems, \> just by coping postgres war to /webapps) and I can upload form, \> submissions etc. \> \> But, when I try to add new functionalities somewhere in the \> /src/org/aggregate(...), \> Eclipse tells me, that the aggregate parent project in not a Java project \> (just a maven one). \> It means that I'm basically using my Eclipse as a notepad, because classes \> are not connected to each other and "aggregate is not a proper compilation \> unit." \> \> I tried to follow the description from Configure.txt step by step. Did I \> missed something or is this expected behaviour? \> How can I make this project behave like a Java project? \> \> Best Regards, \> Anna \>

---

<div class="post-metadata">

**Author:** ![Mitch\_S](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/m/3ec8ea/32.png) [@Mitch\_S](https://forum.getodk.org/u/Mitch_S)\
**Post date:** [April 16, 2016, 2:40am UTC](https://forum.getodk.org/t/problems-with-setting-odk-aggregate-as-a-java-project/4567/4 "2016-04-16T02:40:41Z")

</div>

_Massive_ changes have been made to the ODK Aggregate project for the  
v1.4.8 release.

See the CONFIGURE.TXT for how to set up the completely-reworked development  
and build environments.

> **···**
>
> On Tue, Apr 12, 2016 at 4:10 AM, Francisco J. Lacueva \< francisco.jose.lacueva@gmail.com\> wrote:
> 
> > Hi all,  
> > The correction provided by Anna does not work now. I tried to download  
> > the current version (1.9.34) of the appengine. Do you know if it is  
> > compatible with the ODK aggregate?
> > 
> > It is available at  
> > [https://storage.googleapis.com/appengine-sdks/featured/appengine-java-sdk-1.9.34.zip](https://storage.googleapis.com/appengine-sdks/featured/appengine-java-sdk-1.9.34.zip)
> > 
> > Best regards
> > 
> > El lunes, 27 de julio de 2015, 15:49:58 (UTC+2), Anna Wałach escribió:
> > 
> > > Hi guys,  
> > > I downloaded from your repo version 1.4.7 of the Aggregate app. I've more  
> > > or less successfully set up the project and it is now happily running.
> > > 
> > > 1. _A bug._  
> > > First thing is, in the build/build.xml, line 22, the SDK is trying to  
> > > download from the link that is not longer valid:
> > > 
> > > > [https://storage.googleapis.com/appengine-sdks/featured/appengine-java-sdk-1.9.18.zip](https://storage.googleapis.com/appengine-sdks/featured/appengine-java-sdk-1.9.18.zip)
> > > 
> > > The link for 1.9.18 now is "deprecated" so the proper link is:
> > > 
> > > > [https://storage.googleapis.com/appengine-sdks/deprecated/appengine-java-sdk-1.9.18.zip](https://storage.googleapis.com/appengine-sdks/deprecated/appengine-java-sdk-1.9.18.zip)
> > > 
> > > or the one pointing to newer version.  
> > > 2. _A problem._  
> > > I am using Aggregate with PostgreSQL and Tomcat. It is running on tomcat  
> > > now (although not launched from inside eclipse because of dependency  
> > > problems,  
> > > just by coping postgres war to /webapps) and I can upload form,  
> > > submissions etc.
> > > 
> > > But, when I try to add new functionalities somewhere in the  
> > > /src/org/aggregate(...),  
> > > Eclipse tells me, that the aggregate parent project in not a Java project  
> > > (just a maven one).  
> > > It means that I'm basically using my Eclipse as a notepad, because  
> > > classes are not connected to each other and "aggregate is not a proper  
> > > compilation unit."
> > > 
> > > I tried to follow the description from Configure.txt step by step. Did I  
> > > missed something or is this expected behaviour?  
> > > How can I make this project behave like a Java project?
> > > 
> > > Best Regards,  
> > > Anna
> > 
> > --  
> > 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](mailto:opendatakit-developers+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> Mitch Sundt  
> Software Engineer  
> University of Washington  
> [mitchellsundt@gmail.com](mailto:mitchellsundt@gmail.com)
