I'm trying to compile some Java code in Ubuntu 16.04. when i compile, the following error occurs.please tell me the steps to install json for java and set it as classpath so that i can compile without the -cp.
awd@awd-HP-ProBook-450-G3:~/Desktop/thin-mach-java /javajson$ javac -cp /usr/share/java/java-json.jar psp1.java
psp1.java:1: error: package org.json.simple does not exist
import org.json.simple.*;
^
psp1.java:5: error: cannot find symbol
JSONObject jsonObject =new JSONObject();
^
symbol: class JSONObject
location: class psp1
psp1.java:5: error: cannot find symbol
JSONObject jsonObject =new JSONObject();
^
symbol: class JSONObject
location: class psp1
3 errors