1

I'm trying to use Java Language Support tools. So I've created a project and could run it but I also need to reference the external library. So there is a jar file which I tried to add through: References -> Add Reference...

The code is listed below. This way the project can't be built.

package pkg;
import org.apache.lucene.search.similarities.BM25Similarity;

public class MySimilarity extends BM25Similarity {
}

Any help on adding the library to the project is appreciated.

AOY
  • 355
  • 3
  • 22

1 Answers1

-3

To add jar use below steps :

right click on project -> build path ->configure build path -> click on add external jar -> select jar from your machine -> click ok

JavaLearner
  • 215
  • 3
  • 8