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

  • Home
  • SEARCH
  • 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
  • 0 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

Just starting out in asp.net. Have just created a login.aspx page in my site
I am just starting out with DI & unit testing and have hit a
So I am just starting out developing PHP web applications and have finished setting
I am fairly proficient in PHP, but just starting out in ASP.Net and JSP/Java
I'm just starting out learning python (for webapp usage) but I'm confused as to
I'm just starting out learning ASP.NET. From what I understand, ASP.NET differs from old
I am just starting out in XNA and have a question about rotation. When
I am just starting out with Silverlight (2 RC0) and can’t seem to get
I'm just starting out playing around with Linq Expressions and I've hit a wall.
I'm just starting out with the whole ajax thing and I need some help.

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.