I have 16 Java files and I am trying to generate JAR files for the Hadoop ecosystem using the below command:
javac -classpath /usr/local/hadoop/hadoop-core-1.0.3.jar:/usr/local/hadoop/lib/commons-cli-1.2.jar JsonV.java
JsonV.java is the class which has main function and this Java file calls other Java files. I am getting this below error, can anybody help me resolve this please?
JsonV.java:37: error: cannot find symbol
JSONObject obj = new JSONObject(tuple[i]);
^
symbol: class JSONObject
location: class Map
JsonV.java:37: error: cannot find symbol
JSONObject obj = new JSONObject(tuple[i]);
^
symbol: class JSONObject
location: class Map
JsonV.java:43: error: cannot find symbol
}catch(JSONException e){
^
symbol: class JSONException
location: class Map
JsonV.java:58: error: cannot find symbol
}catch(JSONException e){
^
symbol: class JSONException
location: class Reduce