I have this java project and I’m not using an IDE.
What do I need to do to have JSONObject available in my program?
What do I need to import?
My goal is parse a JSON response.
edit
I know what libs I need, I just dont know where to place their files or how to call them correctly.
That depends on which JSONObject you need.
The one from json.org is packaged under
org.json. Add this at the beginning of your files:and place
JSONObject.java(if you have the file) inyour_project_dir/org/json/. If you have ajarfile, then the directory structure is already correct within the file and you only need to point the compiler to thejar.Do you want the one from GWT? Try:
Then, if you have the source code, it belongs to the
com/google/gwt/json/clientdirectory.Then there is a jsonLib:
…