Lord Stiltskin Lord Stiltskin - 1 year ago 63
JSON Question

Java says package doesn't exist. But it's in classpath

First of all, Java noob. I'm trying to decode a JSON string. I got the package

and copied it to
C:\Program Files\Java\jre1.8.0_112\lib\ext
but java says it doesn't exist. I tried changing CLASSPATH to the same path as well. I'm not using any IDE

I even tried copying it to

Answer Source

try the following command:

javac -classpath ".;home/path/json-20160810.jar" yourJavaFile.java

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download