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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T09:06:50+00:00 2026-05-16T09:06:50+00:00

So, I have the following setup in Eclipse (Java): I have a project (lets

  • 0

So, I have the following setup in Eclipse (Java):

  1. I have a project (lets call this “project 1”) which provides an interface (which is package private)
  2. I have another project (“project 2”) which contains a package from project 1… Classes in this package extend the package private interfaces in “project 1” and provide a nice public interface.
  3. Now, I have “project 3” which references “project 2”. Project 3 then uses the public object provided in project 2.

Upon calling the constructor from project 2 in project 3, I get the following:

“the type {—} cannot be resolved. it is indirectly referenced from required .class files”

If I add a reference to project 1 from project 3, all is well. Is there a way to NOT have to reference project 3 in this way though? It really doesn’t make sense to reference it.

I’m using Eclipse (Helios) with the most recent JDK etc…

  • 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-16T09:06:51+00:00Added an answer on May 16, 2026 at 9:06 am

    This is a “transitive dependency”. You need on your classpath all classes that are required by any class you use. So you need to have the classes from project 1 in the classpath somehow – you can package them as a .jar, for example. Or you can go to Build Path > Order and Export of Project 2, and mark Project 1 as exported.

    An important thing here is that the project dependencies are a mere development “goodie” – when you execute the program standalone (or deploy it to container), the Eclipse project dependencies are gone. So you must ensure your dependencies are met.

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

Sidebar

Related Questions

I have the following setup: eclipse a standard Java project (A) an eclipse plugin
I have the following setup: I have an eclipse project which uses generated sourced
Following the advice in this link, Eclipse, classpath and subversion , I have setup
I have this following setup, a textarea named with some data in it that
I have a JSF/RichFaces setup with an index.jsp which a4j:include s another piece of
It is the following situation: I currently have multiple Java projects in Eclipse. All
I have a multimodule maven setup for my project, made of 5 modules, which
I have following methods of my class Test : (Selenium RC, JUnit, Java, Eclipse)
I have following setup, but when I put 1024 and replace all 512 with
I have following models setup in my Django application class School(models.Model): name = models.TextField()

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.