I have been using 3rd party libraries to process JSON, but I hear Java has one, and I'd rather use that instead. I made a test class that did nothing but import the package and print hello world, but I got the following error.
JsonTest.java:1: error: package javax.json does not exist
import javax.json.*;
^
1 error
I updated my jdk to the latest version (jdk-8u281 as of Feb 28, 2021) and tried again, but it didn't work. Then after some research, I found out that JSON capabilities ONLY exist in Java EE, not Java SE.
After figuring that out, I went to this link HERE to download the Java EE version, but then I didn't know what to do. I extracted the zip file as instructed, and ended up with a folder called /glassfish5. I didn't know what to do with it, so I just tossed it into the /Java directory containing my other jdks.
I looked up guides and youtube videos, but they all seem to stop after you unzip the file. Some show you how to start the database/domain/whatever, but none really tell you how to get the ability to use Java EE (and thus, the JSON functionality contained within it).
And what's even more confusing is that, according to the website, I definitely downloaded Java EE, but why is it giving me a folder called /glassfish5? Is glassfish5 the new Java EE? How do I move forward from here?