It's all about the answers!

Ask a question

how to use external library in a plugin


Baris Erdemir (1812819) | asked Jan 04 '11, 12:34 p.m.
Hi,
Can you pelase explain how to use an external library in a plugin?
Thank you

4 answers



permanent link
Philippe Krief (561155) | answered Jan 04 '11, 7:02 p.m.
JAZZ DEVELOPER
Baris,

In my understanding, this an Eclipse/Java question and not an RTC question...

Do you need to share this library with another plugin? and/or do you only need to provide this library to the code stored in your plugin?

You can find lots of literature on the subject. For example:
- http://wiki.eclipse.org/Eclipse_Plug-in_Development_FAQ#I.27m_using_third_party_jar_files_and_my_plug-in_is_not_working...
- http://193.204.253.55/gargantini/didattica/eclipse/plugin_libs.html

Did I misunderstand something?

permanent link
Baris Erdemir (1812819) | answered Jan 05 '11, 8:19 a.m.
Hi Philippe,
yes you are right, I added my jar as referenced library. In my development environment, it is working now.
My question is, when I deploy the plugin to an rtc server, where should I place the jar?
Regards,

Did I misunderstand something?

permanent link
sam detweiler (12.5k6191201) | answered Feb 13 '11, 9:32 a.m.
Hi Philippe,
yes you are right, I added my jar as referenced library. In my development environment, it is working now.
My question is, when I deploy the plugin to an rtc server, where should I place the jar?
Regards,

Did I misunderstand something?


I put my dependent jars in the project webapps/lib directory
this was deployed the server like always..

Sam

permanent link
Baris Erdemir (1812819) | answered Mar 03 '11, 11:00 a.m.
Hi,
Yes, this was an Eclipse/Java question. I added lib to Manifest file and it has been deployed to server sucessfully.
Thanks,

Your answer


Register or to post your answer.