Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3390782
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T03:43:51+00:00 2026-05-18T03:43:51+00:00

I am just starting out learning Java, GAE etc. I have started a project

  • 0

I am just starting out learning Java, GAE etc.

I have started a project with the GAE in the Eclipse IDE. I am creating a website AND a RESTful web service using GAE, Jersey, JAXB etc This includes several code files in the src directory of the project which handle the HTTP requests, persist data to the data store etc. I also have several files in the war directory html files, jsp etc which are any web UI I have.

I want to start a second project for a second website but I don’t want to have to recreate or copy the existing java code in the new project I want to be able to reuse the codeline from the first project and as I maintain that code it is updated in all projects.

In .net development this is simple because everything compiles up into a set of assemblies (dll files) that I can reuse in many projects. As soon as I make changes and compile up the reused code all the projects referencing those assemblies automatically have the new version.

How can I achieve similar code reuse in GAE development?

  • 1 1 Answer
  • 2 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T03:43:51+00:00Added an answer on May 18, 2026 at 3:43 am

    Are you using Eclipse? In that case, you could do (on your project) new->folder and then select advanced options, check link to folder in the file system. Link this to your source (sub)folder in another project.

    This way, you can even edit this shared code in both projects, and when you compile one of these projects, the compiled classes will be in your war package (of that particular project).

    Note: I actually took the ‘common’ code and put it into a seperate project.

    [Edit: subsequently designate this folder as a ‘source folder’ via project->build path->source]

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm just starting out with learning Java, and have run into a problem. When
I'm just starting out learning python with GEdit plus various plugins as my IDE.
I am just starting out learning Clojure and Emacs. I have got Clojure Box
I'm just starting out learning ASP.NET MVC. I'm working on a project created with
I am just starting out learning JavaScript and I have just reach the DOM
I'm just starting out learning OpenCL. I'm trying to get a feel for what
I'm just starting out in learning Ruby and I've written a program that generates
Just starting out with subversion, have set up repos for 3 current projects and
I'm just starting out in Java, and only ever used PHP before - finding
I am just starting out learning to build interfaces, but the book I am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.