How do I get SAXON to use a saxon-license.lic that's not co-located with saxon9ee.jar?

View: New views
4 Messages — Rating Filter:   Alert me  

How do I get SAXON to use a saxon-license.lic that's not co-located with saxon9ee.jar?

by Roger Costello :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi Michael,

In the saxon documentation it say:

   This file, called saxon-license.lic, should be
   placed in the same directory where the file
   saxon9pe.jar or saxon9ee.jar is found. It is
   no longer necessary for the directory containing
   the license file to be on the classpath.

For reasons I won't explain, I don't want saxon-license.lic in the same directory as saxon9ee.jar.

How do I use a saxon-license.lic that's not co-located with saxon9ee.jar?

/Roger
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
saxon-help@...
https://lists.sourceforge.net/lists/listinfo/saxon-help 

Re: How do I get SAXON to use a saxon-license.lic that's not co-located with saxon9ee.jar?

by Norman Walsh :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

"Costello, Roger L." <costello@...> writes:
> How do I use a saxon-license.lic that's not co-located with saxon9ee.jar?

My experience suggests that Saxon still looks on the classpath if it's
not in the same directory as the jar. My experience being that I never
actually read the text you quoted :-)

                                        Be seeing you,
                                          norm

--
Norman Walsh <ndw@...> | Where it is permissible both to die and
http://nwalsh.com/            | not to die, it is an abuse of valour to
                              | die.-- Mencius


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
saxon-help@...
https://lists.sourceforge.net/lists/listinfo/saxon-help 

attachment0 (191 bytes) Download Attachment

Re: How do I get SAXON to use a saxon-license.lic that's not co-located with saxon9ee.jar?

by Roger Costello :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi Norm,

> My experience suggests that Saxon still looks on the classpath if it's
> not in the same directory as the jar.

Originally I had my classpath pointing to the saxon-license.lic (which was in a different directory from saxon9ee.jar). But I got an error: "saxon-license.lic not found." It was then that I read the documentation and saw the text I quoted.

You were successful in running saxon, where saxon-license.lic is in a directory separate from the directory containing saxon9ee.jar?

/Roger

> -----Original Message-----
> From: Norman Walsh [mailto:ndw@...]
> Sent: Sunday, November 08, 2009 4:56 PM
> To: Mailing list for the SAXON XSLT and XQuery processor
> Subject: Re: [saxon] How do I get SAXON to use a
> saxon-license.lic that's not co-located with saxon9ee.jar?
>
> "Costello, Roger L." <costello@...> writes:
> > How do I use a saxon-license.lic that's not co-located with
> saxon9ee.jar?
>
> My experience suggests that Saxon still looks on the classpath if it's
> not in the same directory as the jar. My experience being that I never
> actually read the text you quoted :-)
>
>                                         Be seeing you,
>                                           norm
>
> --
> Norman Walsh <ndw@...> | Where it is permissible both
> to die and
> http://nwalsh.com/            | not to die, it is an abuse of
> valour to
>                               | die.-- Mencius
>
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
saxon-help@...
https://lists.sourceforge.net/lists/listinfo/saxon-help 

Re: How do I get SAXON to use a saxon-license.lic that's not co-located with saxon9ee.jar?

by Michael Kay :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> In the saxon documentation it say:
>
>    This file, called saxon-license.lic, should be
>    placed in the same directory where the file
>    saxon9pe.jar or saxon9ee.jar is found. It is
>    no longer necessary for the directory containing
>    the license file to be on the classpath.
>

In fact with Saxon 9.2 the search path for the license file has been unified
across the Java and .NET platforms.

The search looks in the following locations, in order:

1. The directory from which the Saxon JAR file (on Java) or the application
.EXE file (on .NET) was loaded.

2. The directory %SAXON_HOME%/bin, if the SAXON_HOME environment variable
exists

3. The directory %SAXON_HOME%, if the SAXON_HOME environment variable exists

4. All directories (or JAR files) on the classpath.

I will update the documentation to make this clearer.

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay 


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
saxon-help@...
https://lists.sourceforge.net/lists/listinfo/saxon-help