Jeff Hooker wrote:
>
> I've created small .jar file that offers my users some calculation features
> that they use while authoring their XML documents. It does not act directly
> upon the XMLmind content, but it is something that they do exclusively while
> using XMLmind. Is there an easy way of allowing them to launch it directly
> from within XMLmind? Ideally, I'd like to package it as an addon or as a part
> of an addon.
>
All .jar files found in an add-on directory are automatically added to
the CLASSPATH of XMLmind XML Editor, therefore just invoke your code as
you would do it normally.
Example: your addon contains an XXE command and also foo.jar, which is
not related to XXE. Foo.jar contains class Foo, with method bar().
Your command can simply do this:
Foo foo = new Foo();
foo.bar();
or even this:
Foo.main(new String[] {"a", "b", "c"});
in the later case, just make sure that your code does not invoke
System.exit.