Skip to content
Advertisement

How can I import javax.json in eclipse

I have installed eclipse ide for EE developers and I am receiving an import error for

JavaScript

I have right clicked on project folder -> clicked properties -> clicked Java build path -> add library -> JRE System Library,

but the dependencies that show up are already imported. How can I import the javax.json package?

Advertisement

Answer

If using Maven, add this dependency to your pom.xml

JavaScript

For Gradle, add this to your build.gradle

JavaScript
Advertisement