How to Quickly Switch Between JDKs Without Tools

You can quickly switch between JDKs with two aliases (tested on MacOS):

alias j8='export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_201.jdk/Contents/Home;javaPATH' alias javaPATH='export PATH=$JAVA_HOME/bin:$PATH'

 

You can switch to Java 8 by running j8 in your terminal. (Quickly switching to Java 8 is especially useful for code archealogists and historians. 😀)

How OpenRewrite Happened--airhacks.fm podcast

Subscribe to airhacks.fm podcast via: spotify| iTunes| RSS

bld vs. Apache Maven--Or Pure Java vs. XML

A MicroProfile / Jakarta EE Apache Maven pom.xml is 31 lines of code or less.

A Maven configuration for a simple Java SE project is twice as long.

In this screencast I'm comparing Apache Maven to bld ("bld: The Hypersonic Java Build Tool"):

Also checkout the airhacks.fm podcast: "No Dependencies--Or How Rife 2 and Bld Happened"

bld: The Hypersonic Java Build Tool

Java 22 introduced the JEP 458 "Launch Multi-File Source Code Programs". This allows you to create CLI applications and automation scripts in no time.

bld is a pure Java build tool that uses Java as the configuration:

Also checkout the airhacks.fm podcast episode: "No Dependencies--Or How Rife 2 and Bld Happened" with Geert Bevin, the creator of bld.

Spring / Summer 2024 Conferences, Events and Workshops

  1. MIXER learning festival: Productivity, Fun, Security & Cost-savings with Serverless Java
    workshop MIXER learning festival Organica building in Ostrava 16 Apr 2024
  2. Meetup: Building Serverless Java Apps with Serverless Generative AI on AWS
    conference session Meetup Organica building in Ostrava 16 Apr 2024
  3. Digital Crafts Day: Cloud Native Explained--Or What Is Exactly To Do?
    keynote Digital Crafts Day weiden 19 Apr 2024
  4. JAX Conference: EJB Developer? Dann aber auch Enterprise-Serverless-Java-AWS-Lambda-Experte
    conference session JAX Conference Mainz 24 Apr 2024
  5. JAX Conference: YAML-less, Config-less, Boilerplate-less, Serverless Enterprise Java #slideless
    conference session JAX Conference Mainz 24 Apr 2024
  6. JCON Europe: Serverless Java #slideless
    conference session JCON Europe cologne 14th Mai 2024
  7. geecon: Containerless, Bloatless, YAML-less, Serverless Java #slideless
    conference session geecon krakow 16 Mai 2024
  8. University of Regensburg: Java Bootstrap
    JUG event University of Regensburg regensburg 19 June 2024
  9. online: Persistence Patterns for Serverless Java on AWS[online event]
    airhacks.live workshop 11 July 2024
  10. online: Serverless Generative AI with Java on AWS[online event]
    airhacks.live workshop 25th July 2024
emprop="url">https://airhacks.live ttendanceMode" content="OnlineEventAttendanceMode"> online: Serverless Generative AI with Java on AWS[online event]
airhacks.live workshop 25th July 2024

Java 22, System Tests, Applets, 500 Java Shorts--Questions for 121st airhacks.tv

Questions and topics for the 2024.4 / 121st edition of airhacks.tv with the following topics:

  1. > 500 Java Shorts: youtube.com/bienadam/shorts
  2. How to System Test Jakarta EE / MicroProfile applications?
  3. Applets, WASM, and PWAs
  4. How far you can get without big frameworks
  5. ...only Java 22 can do that

Any questions left? Ask now: https://gist.github.com/AdamBien/c5193c88f02250bba0b2995b567228c7 and get the answers at the next airhacks.tv. Some questions are also answered with a short video: 60 seconds or less with Java

Ask questions during the show via twitter mentioning me: https://twitter.com/AdamBien (@AdamBien),using the hashtag: #airhacks or built-in chat at: airhacks.tv. You can join the Q&A session live each first Monday of month, 8 P.M at airhacks.tv

Underscore, Pattern Matching, Java LTS And When Previews Are Stable--airhacks.fm podcast

Subscribe to airhacks.fm podcast via: spotify| iTunes| RSS

The #289 airhacks.fm episode with Nicolai Parlog (@nipafx) about:
underscores, deconstruction, pattern matching, and minimalistic build tools
is available for

Integrating AI with Java: Quarkus and Langchain4j--airhacks.fm podcast

Subscribe to airhacks.fm podcast via: spotify| iTunes| RSS

How Linkblog Happened--airhacks.fm podcast

Subscribe to airhacks.fm podcast via: spotify| iTunes| RSS

The #287 airhacks.fm episode with Erik C. Thauvin (@ethauvin) about:
building "what you needed" with Java and the road to linkblog
is available for

A Better JNI: Project Panama--airhacks.fm podcast

Subscribe to airhacks.fm podcast via: spotify| iTunes| RSS

The #286 airhacks.fm episode with Paul Sandoz (@paulsandoz) about:
the differences between Project Panama and JNI, Java's GPU optimizations and Code Reflection
is available for

...the last 150 posts
...the last 10 comments
License