Skip to content

Jars in Eclipse Plugins

In the past 2 days I’ve been trying to update the Bugzilla plugin before Fedora Core 5 test 3. I’ve been trying to make it play nice with the Red Hat bugzilla through the XMLRPC interface instead of html-scraping. The functionality was already there but I discovered that Eclipse couldn’t find the jar file that contained the Java xmlrpc library , which was located in /usr/share/java. I decided to stick the jar in the plugin and be done with it. Boy was I wrong. It took me a whole day of head-banging on Monday to *not* get it working. Seems like a pretty simple issue, getting a plugin to recognize a jar *inside the plugin*. But apparently getting a jar file onto the runtime classpath is a fundamentally difficult problem. Yesterday morning after talking to some eclipse people on IRC I got a link to this life saving post, that lists 6 steps to ultimate happiness. Half an hour of checking, testing, rebuilding and more testing and I was done.
Granted I should have gone and asked a bit earlier (how about a day?) but the fact that I was tweaking the same settings for a whole day and managed to not stumble on the correct set is also telling.

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*