Reputation: 117
According to link there should be a JSON support in the latest Java EE JDK 7u45. However, when I installed the JDK and attached the libraries to the project (I use IDEA v12), the package javax.json still doesn't seem to be available.
Should there be an additional library installed for oracle implementation of JSON? If it shouldn't what jar file from the JDK is responsible for JSON classes implementation?
Upvotes: 2
Views: 1356
Reputation: 21971
JSON
support has released with Java EE 7
, not Jdk 7u45
. javax.json
is the package of Java EE 7 libraries not Jdk library. To get support of JSON
you should put Java EE 7
libraries on your classpath. At present, Java EE 7 compatible server is Glassfish 4. So you should put Glassfish 4 libraries or use maven dependency
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-api</artifactId>
<version>7.0</version>
</dependency>
Upvotes: 4