Difference between revisions of "Using External JARs"

From AgileApps Support Wiki
imported>Aeric
imported>Aeric
m (Text replace - 'Settings > ' to 'File:GearIcon.png > Setup > ')
Line 5: Line 5:
# Configure the platform
# Configure the platform
## Login as admin
## Login as admin
## '''Settings > Service Provider Settings > Service Configuration'''
## '''[[File:GearIcon.png]] > Setup > Service Provider [[File:GearIcon.png]] > Setup > 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 02:07, 30 January 2013

Service Providers can configure the platform to make additional JAR files available to developers.

To configure additional JARs:

  1. Copy the jar into ../tomcat/lib
  2. Configure the platform
    1. Login as admin
    2. GearIcon.png > Setup > Service Provider GearIcon.png > Setup > Service Configuration
    3. provide the name of the jar in Libraries supported in Java Code text field and Save.
    Learn more: Service_Provider_Settings#Develop_Configuration
  3. Restart tomcat.

To use classes defined in those JARS:

  • In your Java methods, import the classes contained in the JAR files.
    For example:
import com.examples.utils.*;

Thumbsup.gif

Tip: Debugging can be done using Eclipse Remote debug