Yes, you should be fine once you build a jar and include it in a directory where your GAE app can actually see it.
On Dec 18, 4:48 pm, Chang Luo <chang....@gmail.com> wrote: > I am working on on a product on GAE, GWT and Android. It contains a > server component on GAE and 2 clients on GWT and Android. > > I wonder what is the best practice to setup the projects in order to > reuse as much code as possible. I google around but couldn't find any > useful resource. > > E.g. I have some entity java classes which is used by both projects. > These objects needed to be persisted in GAE. I created a project > called "core" and a class called "Parent". Then I referenced the > "core" project in "GAE" project. The GAE project compiled fine and it > runs. But when the code hit core.Parent it throws an exception > java.lang.ClassNotFoundException: core.Parent. I tried to add the > core project's bin directory in the classpath but it gives out the > same exception. > > Is there an example out there to reference an external project from > GAE project? Do I need to build a jar and put it under WEB-INF/lib? > > Thanks a lot! -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.