Checking a license is found

To check that a valid license for Saxon-PE or Saxon-EE has been found and Saxon is running with full functionality, try running one of the following simple commands.

On Java (for example, for Saxon-EE 10.0):

java -cp saxon-ee-10.0.jar net.sf.saxon.Query -qs:"saxon:string-to-hexBinary('saxon', 'utf-8')"

Similarly, on .NET:

Query -qs:"saxon:string-to-hexBinary('saxon', 'utf-8')"

Saxon will revert to Saxon-HE functionality if it cannot find a valid license file. The above query uses a Saxon extension function which requires Saxon-PE or -EE, so it will produce the correct answer ("7361786F6E") if the license is found, but return an error message if the license is not found.

See Troubleshooting license key problems for advice if the license is not found.