fatihk
fatihk

Reputation: 7929

How to Make Eclipse Java Set Project Dependency to Solution Project Instead of Reference JAR

I have a java Eclipse solution. In this solution, there are 2 projects:

1 library project and 1 test project

The Problem: The exact library project classes also exist in a referenced jar file and test project tend to use the classes in the jar file instead of the library project in the same solution.

My pseduo-solution was to remove the library classes in the referenced jar file and the test project successuly used the library project directly. However, I suspect there may be a better solution.

Thanks in advance.

Upvotes: 2

Views: 62

Answers (1)

alok
alok

Reputation: 510

Following steps will fix this issue:

  1. Project's context menu
  2. Configure
  3. "Order & Export"
  4. Move things up-and-down as per your requirement.

Upvotes: 1

Related Questions