Difference between revisions of "Using External JARs"
From AgileApps Support Wiki
imported>Aeric |
imported>Aeric |
||
Line 5: | Line 5: | ||
# Configure the platform | # Configure the platform | ||
## Login as admin | ## Login as admin | ||
## '''[[File:GearIcon.png]] > ISV-Setup > Service Provider > Service Configuration''' | ## '''[[File:GearIcon.png]] > {{TBD|ISV-Setup}} > Service Provider > Service Configuration''' | ||
## provide the name of the jar in Libraries supported in Java Code text field and Save. | ## provide the name of the jar in Libraries supported in Java Code text field and Save. | ||
#: ''Learn more: [[Service_Provider_Settings#Develop_Configuration]] | #: ''Learn more: [[Service_Provider_Settings#Develop_Configuration]] |
Revision as of 00:12, 15 May 2013
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
- > __TBD: ISV-Setup__ > Service Provider > 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 methods, import the classes contained in the JAR files.
For example:
- <syntaxhighlight lang="java" enclose="div">
- In your Java methods, import the classes contained in the JAR files.
import com.examples.utils.*; </syntaxhighlight>