News

VS Code Java Devs Get 'CALL TO ACTION' to Upgrade to Java 11

Developers using Visual Studio Code for Java development will soon be required to use Java 11, thanks to a recent decision of the Eclipse Platform.

The Eclipse Platform comes from the Eclipse Foundation, perhaps best known for its coding IDE. As noted in the vscode-java GitHub repo, the Eclipse Project PMC (Project Management Committee) in March advised that Java 11 would be required for the Eclipse Project 4.17 release scheduled for September. That means, for one thing, that it will be able to use the latest version of the Jetty Java HTTP (Web) server and Java Servlet container, Jetty 11.

All this stuff affects Java in Visual Studio Code because Microsoft's open source, cross-platform code editor uses the Eclipse JDT Language Server as its language server. VS Code relies heavily on such language servers to provide programming language-specific "smarts" such as source code auto-completion, Go To Definition, Find All References, IntelliSense and so on.

Even though Java 11 was released in September 2018 (and has reached 28 percent usage among developers according to a recent survey), Microsoft just this week advised an urgent developer "CALL FOR ACTION" to ensure their VS Code for Java projects run on Java 11 or above (Java 14 is the latest) before the requirement becomes effective, which could be early next month. Seeing how July 1 is tomorrow, that could be a matter of a few days or so.

Details about checking Java SDK versions and upgrading are provided in the "Configuring your development environment to use a JDK" documentation.

"Please note, this is NOT a requirement to migrate your projects to Java 11. VS Code for Java will still be possible to compile and run Java applications from Java 1.5 to 14," said Yaojin Yang, senior program manager, Developer Division at Microsoft, in a June 28 blog post.

Other highlights of the June 2020 update to Java on Visual Studio Code -- provided via an assortment of extensions -- include:

  • New Java pack installer for macOS: Such an installer -- which includes all the necessary dependencies and extensions -- was previously available for Windows. The macOS installer is available here (note: clicking on link may initiate download)
  • Code completion for Lightweight Mode: This boosts Syntax Mode (just renamed Lightweight Mode), which was unveiled in March and which lets developers read and navigate source code right after a source file or folder is opened even if external dependencies are still being resolved. Functionality is boosted by the addition of code completion, which previously didn't work until projects were fully resolved. Now, developers can expect code completion within about 10 seconds or so after a fresh workspace is opened.
    Code Completion in Lightweight Mode in Animated Action
    [Click on image for larger, animated GIF view.] Code Completion in Lightweight Mode in Animated Action (source: Microsoft).
  • Maven for Java and Java Test Runner extensions: These, recently released in new versions, have new functionality. "On Maven for Java, we improved support for PowerShell and fixed a couple of issues. On Java Test Runner, we started to support JUnit 5’s @Testable in Code Lenses. For details, please refer to Maven for Java and Java Test Runner," Yang said.

He also included a short FAQ on how to add jar or classpath to answer developer questions about how that works.

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