Issues while adding jar files to eclipse

227 Views Asked by At

I'm trying to add some external jar files from the Apache Lucene library to Eclipse but every time i add them to the Classpath it keeps saying i need to attach sources. However i have seen multiple tutorials where they've never say anything about adding source files. They just point at the binaries. I have tried adding them as classpath or as a user library but Eclipse refuses to add them as they are. I'm using Apache Lucene 8.8.1 and Eclipse 2021-03. What do i do wrong and i can't add them?

UPDATE: I'm sending some screenshots for better clarification of what i am doing

photo1 after i make a new project and name it i select next and i choose the Libraries tab

photo2

In the Libraries tab i choose the Classpath and then i select the Add External jars option and i select some jar files from the Lucene folder i downloaded

and when I'm trying to select some .class file from some package i keep encountering this message

photo3

0

There are 0 best solutions below