I have an issue , i need to use json for java and i try to import a it's library by this way :
import org.json.simple.JSONObject;
but it don't work , it says that the package org.json.simple does not exist .
any help please
(I use netbeans)
Using a class that is not in part of the standard JAva library requires a bit more than just importing it by way of an import statement. The most direct way to accomplish this is to download a jar file to the local environment and add the jar to your build path. Alternatively, you can use a tool like Maven to manage your dependencies, but this is a bit more involved.
SimpleJSON can be downloaded from [here}(https://code.google.com/p/json-simple/downloads/list). Adding it to your build path depends on the IDE you are using, but instructions should be readily available on the interwebs.
Noticed you stated you used Netbeans
org.json.doesn't belong to standard Java packages. You need to download it and add to project classpath.