News

Microsoft Releases OpenJDK 21 Build for Java Jockeys

Microsoft today announced its "Microsoft Build of OpenJDK 21," taking advantage of new features and functionality in Java 21.

In its "About the Microsoft Build of OpenJDK" guidance, the company says: "The Microsoft Build of OpenJDK is a no-cost distribution of OpenJDK that's open source and available for free for anyone to deploy anywhere. It includes Long-Term Support (LTS) binaries for Java 11 and Java 17 on x64 server and desktop environments on macOS, Linux, and Windows, AArch64/ARM64 on Linux and Windows, binaries for macOS on Apple Silicon (AArch64/M1), and musl libc compiled binaries for Alpine Linux on x64."

Microsoft, crowing that "We use more Java than one can imagine," previously ramped up its open source Java efforts back in 2021 with binaries for Java 11, continuing the effort last year with an offering based on Java 17.

[Click on image for larger view.] Java Development with Microsoft (source: Microsoft).

Now, the Java 21-based binaries are available for download.

"The release of Java 21, which includes both Language and Virtual Machine specifications changes, contains a series of features that sets Java 21 apart from many previous releases," Microsoft said today. "Similarly to how Java 5 changed Java development with the introduction of Generics, and Java 8 with the introduction of Lambdas, the Java community expects the 21st release to significantly and positively impact the Java ecosystem, and we are thrilled to be part of this era of Modern Java Development."

[Click on image for larger view.] JDK 21 (source: Microsoft).

One highlight of the release is simplified learning for beginners, thanks to the preview of unnamed classes and instance main methods. "The pathway for novices to start their Java journey becomes smoother," the company said. "This change paves the way for a seamless transition from basic to advanced Java programming, ensuring learners have a gradual and intuitive experience. This opens opportunities for integrating simplified coding experience of serverless functions in services like Azure Functions."

Although Microsoft didn't call out any single ground-breaking new features equivalent to Generics or Lambdas, it provided a list of "features in Java 21 we are excited about" concerning APIs, language features and HotSpot JVM capabilities delivered through the OpenJDK reference implementation, with links to related JDK Enhancement Proposals (JEP) for more information:

The company also highlighted other Java moves, including the new release 0.2.9 of the Semantic Kernel for Java, , part of its open source SDK that lets developers easily combine AI services like OpenAI, Azure OpenAI and Hugging Face with conventional programming languages like C# and Python. It's a key component of the company's advanced generative AI tooling.

On Tuesday, Microsoft introduced Build Server for Gradle. "The Build Server for Gradle, developed in collaboration with Gradle Enterprise, will delegate build tasks to the Gradle build tool, which will be responsible for compiling and generating code directly," said the company, noting that it resolves two major issues:

  • Compiled files are output to the "bin" directory, which differs from Gradle project's default output location.
  • Support for code generation, such as Annotation Processing, is suboptimal.

The day before that announcement, Microsoft highlighted its Reliable Web App Patter on Azure for Java.

About the Author

David Ramel is an editor and writer at Converge 360.

comments powered by Disqus

Featured

  • Compare New GitHub Copilot Free Plan for Visual Studio/VS Code to Paid Plans

    The free plan restricts the number of completions, chat requests and access to AI models, being suitable for occasional users and small projects.

  • Diving Deep into .NET MAUI

    Ever since someone figured out that fiddling bits results in source code, developers have sought one codebase for all types of apps on all platforms, with Microsoft's latest attempt to further that effort being .NET MAUI.

  • Copilot AI Boosts Abound in New VS Code v1.96

    Microsoft improved on its new "Copilot Edit" functionality in the latest release of Visual Studio Code, v1.96, its open-source based code editor that has become the most popular in the world according to many surveys.

  • AdaBoost Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the AdaBoost.R2 algorithm for regression problems (where the goal is to predict a single numeric value). The implementation follows the original source research paper closely, so you can use it as a guide for customization for specific scenarios.

  • Versioning and Documenting ASP.NET Core Services

    Building an API with ASP.NET Core is only half the job. If your API is going to live more than one release cycle, you're going to need to version it. If you have other people building clients for it, you're going to need to document it.

Subscribe on YouTube