Page 1 of 1
Oxygen selection plugin Classnotfoundexception
Posted: Sat Jul 06, 2013 1:05 am
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?
Re: Oxygen selection plugin Classnotfoundexception
Posted: Mon Jul 08, 2013 11:49 am
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
Re: Oxygen selection plugin Classnotfoundexception
Posted: Tue Jul 09, 2013 8:56 pm
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.