Oxygen selection plugin Classnotfoundexception

Having trouble installing Oxygen? Got a bug to report? Post it all here.
adam.elkins
Posts: 2
Joined: Fri Jul 05, 2013 11:16 pm

Oxygen selection plugin Classnotfoundexception

Post by adam.elkins »

I have been working on implementing a selection plugin and have run into a problem. Oxygen is reporting a Classnotfoundexception when it starts, stating it can't find the class my plugin is pointing to. I have two classes. I have one class that extends ro.sync.exml.plugin.Plugin. The other class implements ro.sync.exml.plugin.selection.SelectionPluginExtension. I compiled those classes into a jar and placed it in my [oxygen install tree]/plugins/MyPlugin/lib folder. I also created a plugins.xml and added it to the [oxygen install tree]/plugins/MyPlugin/ folder. Is there anything wrong with what I'm doing or are there any common pitfalls which might cause this error?
alex_jitianu
Posts: 1016
Joined: Wed Nov 16, 2005 11:11 am

Re: Oxygen selection plugin Classnotfoundexception

Post by alex_jitianu »

Hello,

The first thing you should check is if your plugin.xml file has a runtime entry to your jar, something like this:

Code: Select all

<runtime>
<library name="lib/caplines.jar"/>
</runtime>
If this entry exists then you should check if the jar really contains those classes. To do that you could just open the jar as an zip archive and see if those classes are indeed in it.

If none of the above situations is the culprit then you could zip the whole plugin directory and send it to us on support@oxygenxml.com so that we can investigate it a bit more.

Best regards,
Alex
adam.elkins
Posts: 2
Joined: Fri Jul 05, 2013 11:16 pm

Re: Oxygen selection plugin Classnotfoundexception

Post by adam.elkins »

The compiled classes are in the jar and the runtime entry does point to that jar. I will have to send it to support.
Post Reply