CLOJUREC(1)
π CLOJUREC(1) β the clojurec manual page, bestie edition π
okay so welcome to the General Commands Manual, section 1, entry CLOJUREC(1). it's giving compiler energy and i'm obsessed. sit down, grab a strawberry π, and let's get you fluent.
β¨ NAME β¨
clojurec β the Clojure compiler, no cap.
πΈ SYNOPSIS πΈ
clojurec [-d destination-directory] [-W/-Wreflect] [-cp/-classpath
classpath] lib1 [lib2 ...]
like, that's the whole vibe. one command, a couple of flags if you want them, and then a whole pile of libs. π¦
π DESCRIPTION π
This manual page documents briefly the clojurec command β like a lil intro, not the whole saga.
clojurec compiles libs and generates class files stored within the directory named by the -d option, or . if not specified. so if you don't tell it where to put stuff, it's just gonna drop them right in the current directory. main character behavior honestly π
Arguments are strings naming the libs to be compiled. and here's the tea, bestie: libs are specified in dotted notation and are loaded from a classpath. for example my.lib refers to a file my/lib.clj contained within a classpath. so the dots turn into slashes, the .clj gets implied, and it goes hunting along your classpath. iconic. β¨
π OPTIONS π
A summary of options is included below. yes, all of them. i would never gatekeep.
-ddestination-directory β Specifies the destination directory for compiled class files. that's where your shiny new classes get to live. π-W,-Wreflectβ Causes the compiler to emit warnings when reflection is needed to resolve Java method calls or field accesses. lowkey the most useful flag here β reflection is sneaky and this one snitches on it. π¨-cpclasspath,-classpathclasspath β Specifies additional classpath elements. careful though: this option overrides the$CLASSPATHenvironment variable. it doesn't add on top, it takes over. periodt. π
π ENVIRONMENT π
A listing of recognised environment variables is included below.
CLASSPATHβ Specifies additional classpath elements. your ambient classpath, just vibing in the background, until-cp/-classpathrolls up and steals the show. π
π«Ά SEE ALSO π«Ά
π AUTHOR π
clojurec is a wrapper script around a Java implementation by Rich Hickey <richhickey@gmail.com>. The wrapper script was written by Peter Collingbourne <peter@pcc.me.uk>.
This manual page was written by Peter Collingbourne <peter@pcc.me.uk>, for the Debian project (but may be used by others). shoutout to the Debian girlies, y'all ate. π
ngl that's the whole page. no hidden sections, no secret flags, no nothing. go compile something and make it everyone's problem. π₯
and that's a wrap on the CLOJUREC(1) page from the General Commands Manual β thanks for reading, bestie, ily, bye!! πΈππ§
π¦ where this page comes from
- debian bookworm: clojure 1.11.1-2 Β· EPL-1
- ubuntu noble: clojure 1.11.1-2 Β· EPL-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms