External jar is not imported into Eclipse Project
I want to parse JSON and for this I have downloaded the java-json.jar file from this URL. I added this to the build path
- Right click on the project
- Build Path -> Configure Build Path -> Add External Jars.
- Chose a jar and it is displayed in the "Linked Libraries"
But import org.json.JSONArray gives me an error. Also when I stop at org. this gives me some suggestions that don't include json.
What should I do to successfully import the json package?
+3
Nikhil Sahu
source
to share
1 answer
Build your project after including jar. If it doesn't work, check if the specific class you are looking for is present in the jar file or not.
+1
sudipta06
source
to share