-3

I'm doing some tests with Java EE and an Angular frontend.

I have almost everything ready to go, but I'm creating the backend, and needed the library json-simple, which simplifies the JSON parsing. I downloaded it, and imported the zip directly into my directory:

enter image description here

Ok, after this, I copy-pasted some code from an example webpage and tried importing the required sources:

import org.json.simple.JSONObject;

import org.json.simple.parser.JSONParser;

import org.json.simple.parser.ParseException;

Somehow, NetBeans can't find them. It just can't find the package "org", am I doing something wrong when importing these files? I tried importing only a folder with the sources, but it doesn't work either.

Community
  • 1
  • 1
Zerok
  • 1,323
  • 1
  • 24
  • 56

1 Answers1

1

Use this jar

http://www.java2s.com/Code/JarDownload/json-simple/json-simple-1.1.jar.zip

extract the zip and import the jar to your project. Set the classpath as below

How to setup classpath in Netbeans?

Community
  • 1
  • 1
ranafeb14
  • 437
  • 1
  • 7
  • 12