~/talk

Share Your Java CLI Apps with Ease

TalkinFrenchat Devoxx France 2024 · 2024-04-17..04-19· [java]
links:none on file
slides:none on file

Shows how to share small Java CLI programs as editable source plus libraries instead of full Gradle projects by using the Java single-file launcher (Java 11) together with Java 22 JEP 458 to fetch dependent classes. Packs a shell wrapper and a ZIP bundle produced by a Makefile or Gradle task to deliver a script-like runnable bundle; demonstrates with a ~240-line SQL test-data generator and notes the downside that the JVM recompiles on each run with no hot cache.

AI-written summary · about

  1. 0:00Introduction
  2. 1:01Fast CLI Java apps need
  3. 2:23Java scripting with JDK
  4. 3:29Shibang problems in Java
  5. 5:13Java 11+ solution
  6. 6:39Data generation example
  7. 7:40Sharing and packaging apps
  8. 8:43Makefile or Gradle usage
  9. 10:06Java 22 limits and changes
  10. 11:30Compile on each run
  11. 12:14Classic alternatives
  12. 12:44Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.