code578841441 code578841441 - 2 years ago 1059
Java Question

JSONObject cannot be resolved to a type

I cannot import JSONObject, I thought this was something that came with java and an external jar is not needed, why is it saying it cannot find it?

Answer Source

I thought this was something that came with java and an external jar is not needed

No - JsonObject is only in JavaEE. JSONObject isn't included in JavaSE, it needs an external library. However, if you use JavaEE, it is included.

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