Oxygen doesn't recognize my jar files

Oxygen general issues.
mightymaxi
Posts: 1
Joined: Tue Oct 12, 2021 11:13 pm

Oxygen doesn't recognize my jar files

Post 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
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

Re: Oxygen doesn't recognize my jar files

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply