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):

java -cp saxon9ee.jar net.sf.saxon.Query -qs:"Q{http://saxon.sf.net/}evaluate('1+2')"

Similarly, on .NET:

Query -qs:"Q{http://saxon.sf.net/}evaluate('1+2')"

Saxon will revert to Saxon-HE functionality if it can not find a valid license file. The above query uses a Saxon extension function which requires Saxon-PE or Saxon-EE, so it will produce the correct answer, 3, 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.