Search Mailing List Archives
[protege-discussion] plugin and libraries
Tania Tudorache
tudorache at stanford.edu
Mon Jan 15 13:23:49 PST 2007
Julien,
If you add a jar to your plugin directory, your plugin should be able to
access the classes of the jar. When you run Protege with your plugin in
Eclipse, all the jars are added to the classpath. So, what you could try
to do is to add explicitly the saxon8.jar to the classpath when starting
Protege.
If you start Protege with the executable (for example, Protege.exe on
Windows platform) then the classpath is set from the Protege.lax file.
You can edit in the Protege.lax file the line:
lax.class.path=protege.jar:looks.jar:unicode_panel.jar:driver.jar:driver0.jar:driver1.jar:driver2.jar:lax.jar
Add at the end of this line your jar. You can use a relative path, like:
"plugins\myPlugin\saxon8.jar"
If you start Protege using the batch script (run_protege.bat or
run_protege.sh), you should adjust in it the JARS variable.
Tania
julien lejeune wrote:
> Hi,
>
> I am trying to develop a plugin but I have some problems to add a library
> that I need for it.
> In fact I use the library "saxon8.jar" and I added this JAR file in
> "protege_directory\plugins\myPlugin\saxon8.jar" (with myPlugin.jar)
> But I have this message :
> javax.xml.transform.TransformerFactoryConfigurationError: Provider
> net.sf.saxon.TransformerFactoryImpl could not be instantiated:
> java.lang.NullPointerException
>
> When I tested my plugin with my IDE (Eclipse) I didn't have problems so I
> think that my library is not well loaded in the application.
>
> Can somebody help me ?
>
> JLJ
> _______________________________________________
> protege-discussion mailing list
> protege-discussion at lists.stanford.edu
> https://mailman.stanford.edu/mailman/listinfo/protege-discussion
>
> Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03
>
>
More information about the protege-discussion
mailing list