I am a crazy Java beginner, FYI.
I want to compile a program (actually to answer an SO question) that uses the org.json package in these files:
http://json.org/java/
I created a basic Java application in NetBeans, but how do I get these to be class files that my main class recognizes, and that they recognize each other. Do I need to jar them somehow and put them in the project’s classpath? Can I just slap them in my src file along with the main class?
You can create a jar with them and add it to the classpath.
You can also put them in the src folder, but you need to honour the directory structure. This means that the files should be placed in a folder like this: