===Preparations===
# Download a BaseX distribution with libraries included (ZIP, EXE, WAR, DMG): one of the complete [http://basex.org/downloadBaseX distributions] (ZIP, EXE)
# Start oXygen and go to ''Options'' → ''Preferences'' → ''Data Sources''.
# Start a [[Startup#BaseX Server|BaseX Server]] instance
===Data Source===
# Add a new Data Source with the ''New'' button.
# Enter "BaseX" as name and choose ''XQuery API for Java (XQJ)'' as type.
# Add the following three JAR files above with the ''Add'' Button: <code>basex{{Mono|xqj-api-1.0.jar</code>}}, <code>basex{{Mono|xqj2-api0.0.1.jar</code>, }} and <code>{{Mono|basex-xqj-api0.9.2.jar</code>. The JAR files might include }} (the version namesof the JAR file may differ).
# Now press ''OK'', and your Data Source is ready for use.