JH_BUILD(1)
π jh_build β the Javahelper girlies' build tool π
okay so bestie, welcome to jh_build(1), part of the Javahelper family β¨. If you've ever stared at a Java source tree with no upstream build system (or one that's giving absolutely nothing useful π), this is your girl. She compiles java sources when there's no (useful) upstream build system to do it for you. periodt.
β¨ SYNOPSIS β¨
jh_build [debhelper options]
jh_build [debhelper options] jarfile source [... source]
like yes, two whole moods. one with just debhelper options, one where you hand her a jarfile and some sources π«Ά
πΈ DESCRIPTION πΈ
nothing here, bestie. the DESCRIPTION section is literally empty. the manpage said "no thoughts, head empty." iconic of her honestly π
π FILES π
debian/javabuildβ okay so this is the whole itinerary π. it's a file listing each build to perform. one build per line, and every line looks like this:
jarfile source [... source]
where jarfile is the name of the jar file to be built π« and source is a source file or a directory containing source files π so each line is basically "build this jar, from these things". no cap.
π OPTIONS π
--main=main-classβ sets theMain-Classattribute in the manifest of the jar file(s) she generates, to main-class. the result?java -jar generated-jar-fileruns that class. main character energy fr fr π--java-home=homeβ use home asJAVA_HOME. and yes, this lowkey overrides theJAVA_HOMEenvironment variable π she said "my rules now".-J,--javadoc,--no-javadocβ whether or not to build javadoc for the jar files π§ by default she does generate javadoc along with the jar files. so--no-javadocis the "actually, not today" option π--javacopts=optionsβ passes options tojavacwhen she's invokingjavacπ₯ the options value is a space-separate list of options, and bestie please remember to quote the argument so the shell doesn't go interpreting your value ππ--javadoc-opts=optionsβ same deal but forjavadoc, when she's invokingjavadocπ the options value is a space-separate list of options β again, quote the argument so the shell stays out of it, ngl.--cleanβ if you pass this,jh_buildwill clean up after itself π§Ήβ¨. it's whatjh_clean(1)calls, and honestly, usingjh_clean(1)is recommended over callingjh_buildwith--cleandirectly. so like, yes she can do it herself, but let the dedicated girl handle it, iykyk π
π ENVIRONMENT π
JAVA_HOMEβ if it's set (and--java-homeis omitted), it determines the location of the java home for finding thejavac(1)compiler, thejavadoc(1)compiler, and thejar(1)utility π οΈ- if the environment variable is unset and
--java-homeis omitted, then the default java home is/usr/lib/jvm/default-javaβ
- if the environment variable is unset and
CLASSPATHβ if set, this is the classpath used during compilation of the source code π¦JH_JAR_EXTRAβ a space separated list of extra files or directories to include in the generated jar file(s) π- can be omitted if no extra files need to be included π
π EXAMPLE π
jh_build foo.jar src/java/main
this will generate foo.jar from compiling all the java files in src/java/main and generate a javadoc from it. slay!! π₯
π SEE ALSO π
this program is a part of javahelper and uses debhelper as backend π«Ά there are also tutorials in /usr/share/doc/javahelper if you want the whole reading list π
and that's the tea, bestie β this was jh_build(1) from Javahelper, version 0.82, dated 2026-05-17 π go compile something gorgeous. mwah πβ¨
π¦ where this page comes from
- ubuntu stonking: javahelper 0.82 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms