Using External JARs
From AgileApps Support Wiki
Revision as of 00:54, 5 March 2011 by imported>Aeric (Text replace - 'Setup > ' to 'Settings > ')
Service Providers can configure the platform to make additional JAR files available to developers.
To configure additional JARs:
- Copy the jar into ../tomcat/lib
- Configure the platform
- Login as admin
- Settings > Service Provider Settings > Service Configuration
- provide the name of the jar in Libraries supported in Java Code text field and Save.
- Learn more: Service_Provider_Settings#Develop_Configuration
- Restart tomcat.
To use classes defined in those JARS:
- In your Java code (class methods and data policies), import the classes contained in the JAR files.
For example:
- <syntaxhighlight lang="java" enclose="div">
- In your Java code (class methods and data policies), import the classes contained in the JAR files.
import com.examples.utils.*; </syntaxhighlight>