Search code examples
javajava-ee-7tomcat8

Package javax.json not available on Java EE 7 Project


I am working on a Java EE project in which I use Tomcat 8 as the server container. I read that Tomcat 8 uses Java EE 7 container which has Java JSON Processing API for JSON Processing. Attempts to take advantage this Java EE 7 feature keep failing as I cannot not import Files from javax.json packages. Netbeans reports that package javax.json.* package does not exist show in the picture below. I will appreciate your help, please!

enter image description here


Solution

  • I have to download and add to my lib; javax.json-1.0.4.jar which gives me the Json Processing capability that I needed.