Difference between revisions of "Using External JARs"
From AgileApps Support Wiki
imported>Aeric m (Text replace - 'Setup > ' to 'Settings > ') |
imported>Aeric |
||
Line 11: | Line 11: | ||
To use classes defined in those JARS: | To use classes defined in those JARS: | ||
:* In your Java | :* In your Java methods, import the classes contained in the JAR files.<br/>For example: | ||
::<syntaxhighlight lang="java" enclose="div"> | ::<syntaxhighlight lang="java" enclose="div"> | ||
import com.examples.utils.*; | import com.examples.utils.*; | ||
Line 17: | Line 17: | ||
{{TIP|Debugging can be done using Eclipse Remote debug}} | {{TIP|Debugging can be done using Eclipse Remote debug}} | ||
<noinclude> | <noinclude> | ||
[[Category:Development]] | [[Category:Development]] | ||
</noinclude> | </noinclude> |
Revision as of 19:50, 14 January 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
- 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 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>