XQuery and Java can be combined as follows:
* A First, a JAR file package must be created, (as described above).
* The XQuery wrapper module must be named identically to the Java main class.
* The URL of the {{Code|import module}} statement in the wrapper module must start with the {{Code|java:}} prefix.