It's all about the answers!

Ask a question

How to call java classes in custom precondition plugin

Sudeshna Mitra (2332831) | asked Aug 01 '12, 8:58 a.m.
I want to call java classes in custom precondition plug in when any workitem save, and the java classes depends on third party jars .

How can I call java classes in custom precondition plugin ?

One answer

permanent link
David Olsen (5237) | answered Aug 01 '12, 4:34 p.m.
Put the third-party jars inside your plugin.  If you do that, your code will always know where to find them.

Sudeshna Mitra commented Aug 03 '12, 1:34 a.m. | edited Aug 03 '12, 1:34 a.m.

Hi, Thanks for Response.

But my problem is when I add java class and third party jars then plugin not load in RTC eclipse precondition list.

Ralph Schoon commented Aug 03 '12, 2:09 a.m.

Did you look at the plugin.xml e.g. include them in the build tab (to distribute them with the generated plugin jar) and manifest and include the jars to make sure the plugin knows how to call them? It is probably such a problem. I also would suggest to test with Jetty first and look at the console/server logs there must be more information.

Your answer

Register or to post your answer.