Parser Setup: How to specify where my class files are?

Having trouble installing Oxygen? Got a bug to report? Post it all here.
Ondrej Rohlik

Parser Setup: How to specify where my class files are?

Post by Ondrej Rohlik »

Hello everyone!

After searching the resources around here I decided to ask for a help with problem I can't solve:

I have a static method written in Java to do some string manipulation and use it in my xsl script as follows.

<xsl:script language="java" implements-prefix="WeaveComment" src="java:ifa.xweaver.WeaveComment"/>

<xsl:value-of select="WeaveComment:addAtEnd( $comment, $additionalComments, $defaultIndentation )"/>

Up to now I have used the command line saxon parser. Now I have moved my project to Oxygen as I'm keen on the debuger. BUT I get the following error/exception when debugging (the correct code on correct data -- this I checked using command line parser):

SystemID: null
Description: F java.lang.NoSuchMethodException: For extension function, could not find method org.apache.xml.utils.NodeVector.addAtEnd([ExpressionContext,] #RTREEFRAG, #RTREEFRAG).

When working with saxon (xsl is run from Ant) I have xweaver.jar file that contain the class files in the lib subdiretory of Ant. Where in Oxygen 4.0 should I copy my jar file or where to set some additional classpath in order to avoid the error?

Thanks in advance for your help
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post by george »

Hi Ondrej,

If you are running the standalone version and you are not on Mac then you can just drop the jars inside the oXygen lib directory and start oXygen. On Mac you should place the jars inside the oxygen.app application in Contents/Resources/Java.

If you are running the Eclipse plugin you can edit the plugin.xml and add references your jars there in the runtime section.

Best Regards,
George
Post Reply