The key to this is the line:

The class org.Interface.Adress could not be loaded

This implies either

(a) that there is no class with this name (are you sure it's spelt correctly? Package names are usually lower-case ("interface"), and the usual English spelling of "Address" is with double-d); or

(b) that the class is not on the classpath (did you run from the command line using -jar, which ignores the classpath? Does NetBeans require you to do something special to make classes eligible for loading?)

Michael Kay
Saxonica


On 01/07/2010 11:08, maha maalej wrote:
Hello again,
 
Thank you for replying my question.
 
I purchased for an evalution copy and licence for the Saxon9PE.
Then I used the -TJ option on the command line. This is what I get:

Saxon evaluation license expires in 29 days
Looking for method new in namespace java:org.Interface.Adress
Number of actual arguments = 0
Loading org.Interface.Adress
The class org.Interface.Adress could not be loaded
Trying net.sf.saxon.query.UnboundFunctionLibrary
Looking for function {java:org.Interface.Adress}ge
tAdress
Trying net.sf.saxon.functions.SystemFunctionLibrary
Trying com.saxonica.extfn.ExtraFunctionLibrary
Trying net.sf.saxon.functions.ConstructorFunctionLibrary
Trying net.sf.saxon.query.XQueryFunctionLibrary
Trying net.sf.saxon.query.ImportedFunctionLibrary
Trying net.sf.saxon.functions.IntegratedFunctionLibrary
Trying com.saxonica.config.JavaExtensionLibrary
Looking for method getAdress in namespace java:org.Interface.Adress
Number of actual arguments = 1
Loading org.Interface.Adress
The class org.Interface.Adress could not be loaded
Trying net.sf.saxon.query.UnboundFunctionLibrary
Error on line 103 of Transformer_XMI_XML.xquery:
  XPST0017: Cannot find a matching 0-argument function named
  {java:org.Interface.Adress}new()
Static error(s) in query
I'm using Saxon with Netbeans. I don't get any error but I don't get any display of result too.
 
 
I didn't understand where I'm getting error.
 
Thank you in advance for your help.
 
 
2010/6/30 saxon-help-request@lists.sourceforge.net

On 29/06/2010 10:45, maha maalej wrote:
> Hello
> Thank you for answering my question.
> I use now the SaxonPE as you told me in 1).
> I correct the namespace URI of the java class.
> However, I didn't understood how to invoke an instance-level method.
>
>     3. Because getAdress() is an instance-level method rather than a
>     static
>     method, you'll need to supply an argument which is the Adress
>     object on
>     which you want the method invoked.
>
> So, I did this:
> <adresse>
> {
> adr:getAdress(adr:new())
> }
> </adresse>
> Is that correct?
>

Yes, that's correct. If it's not working, try the -TJ option on the
command line to help debugging.

Michael Kay
Saxonica
-------------- next part --------------
An HTML attachment was scrubbed...


------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________ saxon-help mailing list archived at http://saxon.markmail.org/ saxon-help@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/saxon-help