What version of Java is Quarkus compatible with?

Paul 87 Published: 11/20/2024

What version of Java is Quarkus compatible with?

I'm happy to help you with that!

Quarkus, a popular Java framework for building cloud-native applications, supports various versions of Java. As of now, Quarkus can run on any Java 11+ version. Yes, you read that correctly - any Java 11 and above!

To give you a better idea, let's take a step back and understand the evolution of Quarkus. Initially, Quarkus was built around Java 8 (LTS), which was the recommended JVM for building cloud-native applications at the time. With the release of Java 14 in September 2021, Oracle declared it as a Long-Term Support (LTS) version, making it an excellent choice for production-ready applications.

As part of this LTS announcement, Oracle also confirmed that Java 15+ would be compatible with Quarkus. In essence, any Java version from 11 to 17 (and beyond!) is supported by Quarkus. This means you can choose the most recent version of Java that suits your project's requirements and still leverage Quarkus' features.

Now, let's dive into some technical details!

When building a Quarkus application, you'll notice that it uses a "native" mode for improved performance and smaller binary sizes. This native mode relies on GraalVM (a high-performance, embeddable virtual machine) to compile your Java code into a native executable. To do this effectively, Quarkus requires Java 11 or later.

Here's a summary of what you can expect:

Java 11+ support: Any Java version from 11 to the latest LTS releases (currently Java 17) is compatible with Quarkus. GraalVM integration: The native mode in Quarkus relies on GraalVM, which requires at least Java 11 for optimal performance.

In conclusion, when it comes to choosing a compatible Java version for your Quarkus project, you can rest assured that any version from 11 to the latest LTS releases (Java 17 and above) is supported. This flexibility allows you to pick the perfect version based on your specific needs and project requirements.

Hope this answers your question!

Quarkus java 21 github

I'll respond in English only this time!

Quarkus is an open-source Java framework that enables you to build cloud-native applications with ease. It's designed for building reactive, scalable, and resilient systems. In 2021, Quarkus 2.x was released, which brought significant improvements and enhancements.

To get started with Quarkus on GitHub, you can follow these steps:

Clone the repository: You can clone the Quarkus repository by running the following command in your terminal: git clone https://github.com/quarkusio/quarkus.git Explore the codebase: Once cloned, navigate to the quarkus directory and explore the codebase. You'll see several subdirectories, including quarkus-core, quarkus-config, and more. Dive into the documentation: Quarkus has an extensive documentation set that covers various aspects of the framework. You can access the documentation by visiting the Quarkus GitHub page and clicking on "Documentation" in the top-right corner. Start building your app: To get started with building a Quarkus application, you'll want to create a new directory for your project and initialize it as a Maven project using the following command: mvn archetype:generate -DarchetypeGroupId=io.quarkus -DarchetypeArtifactId=quarkus-app-plain-java Configure and build: Once initialized, you can configure your Quarkus application by adding dependencies, configuring beans, and defining routes in your application.properties file. Then, run the following command to compile and package your app: mvn package

Some key features of Quarkus 2.x include:

Reactive programming: Quarkus supports reactive programming out of the box, allowing you to build scalable and resilient systems. Cloud-native: Quarkus is designed for cloud-native applications, making it easy to deploy your app to the cloud or on-premises. Java 17 support: Quarkus 2.x supports Java 17, providing access to the latest language features and improvements. Extensive extensions ecosystem: Quarkus has a vast ecosystem of extensions that enable you to add features such as WebSockets, GraphQL, and more.

In conclusion, Quarkus is an excellent choice for building cloud-native applications with Java. Its reactive programming capabilities, extensive documentation, and rich ecosystem make it a great framework for developers. To learn more, I encourage you to explore the Quarkus GitHub page and start building your own cloud-native application!