BUILD-CLASSPATH(1)
π 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
extensionis omitted, then"jar"gets used. default slay. - if the
classifieris 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 classifierno_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 πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: javapackages-tools 6.5.1-160000.2.1 Β· BSD-3-Clause
- opensuse-leap 16.0: javapackages-tools 6.5.1-160000.2.1 Β· BSD-3-Clause
- opensuse-leap 16.0: javapackages-tools 6.5.1-160000.2.1 Β· BSD-3-Clause
- opensuse-leap 16.0: javapackages-tools 6.5.1-160000.2.1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms