Page 1 of 1

Oxygen doesn't recognize my jar files

Posted: Wed Oct 13, 2021 12:10 am
by mightymaxi
I've been scouring the NET all day and haven't found a solution to my problem. I have an XSLT file created by another person. When I try to transform the XML file with that XSLT I get 45 errors all saying they could not load my Java class. Is there somewhere I need to put the jar files to be recognized or maybe a function to assocate the jar file with the style sheet?

Code: Select all

Error: "Cannot find a 1-argument function named Q{java:com.ptc.arbortext.windchill.rules.markup.extensions.Extensions}new(). Cannot load Java class java:com.ptc.arbortext.windchill.rules.markup.extensions.Extensions. For diagnostics on calls to Java methods, use the -TJ command line option or set the Configuration property FeatureKeys.TRACE_EXTERNAL_FUNCTIONS"
Is there some way to import/point to the jar files so Oxygen can recognize it? Or maybe copy the files into a certain folder?

Thank you,
Max

Re: Oxygen doesn't recognize my jar files

Posted: Wed Oct 13, 2021 7:30 am
by Radu
Hi Max,

If you use the "Configure Transformation Scenarios" toolbar button and edit the transformation scenario you have created, in the dialog there is an "Extensions" button which can be pressed and you can add JAR library references there:
https://www.oxygenxml.com/doc/versions/ ... hing2.html

As XSLT processor you should avoid using Saxon Home Edition which does not have support for Java extensions, so instead use Saxon 6 (if it's an XSLT 1.0) or Saxon 9 PE.

Regards,
Radu