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 3334452
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T23:54:24+00:00 2026-05-17T23:54:24+00:00

I have two projects in a workspace, one is a fancy application that is

  • 0

I have two projects in a workspace, one is a fancy application that is configured by xml (project 1), the other contains some code specific to a task (project 2) and utilizes some classes and implements interfaces from the fancy app.

Project 1 contains the main method and is configured by an xml file to load a class from project 2 using reflection, so it needs to be launched from the context of project 2.

Project 2 references project 1 in the build path, and thus shows no errors and compiles, however when selected from the run configurations dialog, it does not show the class with a main method from project 1 as an option.

My work around for now is to generate a jar from project 1 and reference that from project 2, which then causes the class to show up. This works, but I hate having to export the project to jar every time a change occurs in project 1. I also hate having the EXACT same Class show up in open type twice, once from the jar, once from the project.

Is there something on top of adding the project to the build path I have to do to get this working?

Thanks

  • 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-17T23:54:25+00:00Added an answer on May 17, 2026 at 11:54 pm

    You can launch your application from project 1, just need to edit its Launch Configuration and add a project 2 at the Classpath tab.

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

Sidebar

Related Questions

I want to be able to have two projects, one that contains production code
I have a small workspace with 3 projects. One main (Swing) application, two other
I have several projects open in an Eclipse workspace. Like so: com.harbl.project.one com.harbl.project.two com.harbl.project.three
I have two projects.One project is build in MVC asp.net and the other project
I have a workspace that has two projects in it. The first project was
We have two projects that are both class libraries. Project 1 is a VS
I have so many projects in workspace. for every one or two weeks i
I have two same web projects(Java) with different name in my workspace. One is
I have two projects: a profiler and a basic application (with JUnit tests) The
I have two projects in my Solution. One implements my business logic and has

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.