Installing
JSON4J libraries
Use this stand-alone library for stand-alone
applications or Web applications that need to parse and handle JSON
text. Installation of this library is dependent on how the application
that uses it is packaged and works. Locate the JSON4J JAR
file mentioned in the following scenarios by referring to the overview section of the JSON4J
documentation.
JavaTM Platform, Enterprise Edition (Java EE) Web
application
Package the JSON4J.jar file in the WEB-INF/lib
directory of the Web application archive (WAR) file that contains
the servlets and JavaServer Pages (JSP) files that use the API.
IBM® WebSphere® Application Server, versions
6.0, 6.1, and 7.0 shared library
For IBM WebSphere Application
Server versions 6.0, 6.1, and 7.0, an alternate approach to deploying
the JAR file as part of your application is available. IBM WebSphere
Application Server versions 6.0, 6.1 and 7.0, provide a feature that
enables JAR files to be configured as shared libraries. A shared library
in this context is a JAR file that is visible to all applications in
a server or node and therefore can be shared between those applications.
To install JSON4J as a shared library in any of those environments,
refer to the Information Center section on shared libraries.
Eclipse plug-ins
Link the Eclipse Plug-in
that has a runtime and compilation dependency on the JSON4J API to
the com.ibm.json Eclipse plug-in.
Eclipse
projects (non-plug-in)
Link the Eclipse Project that has
a runtime and compilation dependency on the JSON4J APIs as an external
dependency on the Java archive (JAR) file that is provided in the
com.ibm.json Eclipse Plug-in.
Stand-alone
application
Include the JSON4J.jar file on the CLASSPATH
of the Java Virtual Machine (JVM) running the application that uses
the Application Programming Interface (API).