BUILD-CLASSPATH(1)

πŸ“¦
version 6.5.1 Β· 5 versions
, in opensuse-leap 16.0

πŸ’… build-classpath β€” the manual page, but make it make sense

okay so bestie, we're in section 1 of the JAVAPACKAGES manual and today's main character is build-classpath. buckle up, it's short but it's iconic πŸŽ€


✨ NAME ✨

build-classpath β€” build a Java CLASSPATH. that's it. that's the whole job. and she does it well 🫢


🌸 SYNOPSIS 🌸

build-classpath JAR|artifact-coordinates [JAR|artifact-coordinates ...]

like, you just hand her a bunch of JARs or artifact coordinates and she goes. no cap. ✨


πŸ¦‹ DESCRIPTION πŸ¦‹

so this is a small utility (emphasis on small, she's compact and she knows it) that builds you a Java CLASSPATH out of the named JARs or Maven artifact coordinates. πŸ’–

now let's talk artifact coordinates, because this is the part where people get lost and we are not doing that today:

  • artifact coordinates specify a Maven artifact, and the format is literally exactly this:
groupId:artifactId[:extension[:classifier]]:version
  • if the extension is omitted, then "jar" gets used. default slay.
  • if the classifier is omitted, then an empty classifier is used. also fine, also valid.
  • for more info, see the XMvn Configuration Reference. iykyk πŸ“š

and where does the CLASSPATH go? straight to standard output. she doesn't write files, she doesn't make a scene, she just prints it. periodt. πŸ”₯


🧚 DEPENDENCIES 🧚

okay listen, this one's important:

using build-classpath with artifact-coordinates requires the xmvn-resolve command to be available. πŸ‘‘

and here's the vibe check: the user of build-classpath is responsible for making it available in the system. that's on you, bestie, not on her. πŸ™ˆ


πŸ’œ EXAMPLES πŸ’œ

these are the moments, fr fr:

  • build-classpath junit xerces-j2 wsdl4j β€” this will return a string to standard out that is a valid CLASSPATH containing junit, xerces-j2, and wsdl4j JARs. πŸ“
  • build-classpath log4j:log4j org.apache.commons:commons-io β€” this will return a string to standard out that is a valid CLASSPATH containing log4j and commons-io JARs. 🌈
  • build-classpath com.google.inject:guice::no_aop: β€” this will return a string to standard out that is a valid CLASSPATH containing google-guice JAR with classifier no_aop. look at that double colon doing its thing, we love a subtle icon πŸ’…

πŸ‘‘ AUTHOR πŸ‘‘

originally written by David Walluck. legend behavior, honestly. 🫢


πŸ’€ REPORTING BUGS πŸ’€

bugs should be reported through the Java Packages Tools issue tracker at Github:

https://github.com/fedora-java/javapackages/issues

don't suffer in silence, tell the tracker. it's giving community. ⭐


πŸ”₯ SEE ALSO πŸ”₯

(the original list ends with a comma and we're keeping it, because we don't erase history around here πŸŽ€)


and that's the page!! this came out of the JAVAPACKAGES source, version/date stamp 2026-05-28, so if you're reading this on some other date just know she was immortalized on that one. mwah πŸ’‹βœ¨