Wherever. What you need to do is check the CLASSPATH variable and make sure that it contains the directory with your library.
Here is the first:
$ echo $CLASSPATH
and you will see your path to the class as it is.
Now you need to find the jar file containing org.json; refer to the documentation, but it might just be like json.jar . On most LINUX systems, you can simply run
$ locate json.jar
And you will get the path name for jarfile. Make sure this path is part of your CLASSPATH and you will be in a fat city.
Oh, and Getting Started Tutorials at Sun Oracle are the easiest place to start.
Actually, looking at the files, they cannot be packaged as a jar file. In this case, you want to put them in your sources, starting from some top directory ( src in this example.)
/src /org/json/ ... put the json files here ... put your files here
and when you compile, they will all be included, which will solve all the dependencies.
Again, a place to look for the first steps is a tutorial.
source share