Announcing the Visual Studio Code Installer for Java

Xiaokai He

Xiaokai

It’s been almost 3 years since the first Java language server was developed during a hackathon in a small conference room at Microsoft’s Zurich office with people from Red Hat, IBM, Codenvy and Microsoft, which later became one of the most popular extensions for Visual Studio Code with more than 2.7 million installations. Since then, Visual Studio Code has gone through a thrilling journey and become to the most popular development environments according to Stack Overflow. More and more Java extensions are now available in Visual Studio Code to serve a growing Java community using Visual Studio Code along with their favorite tools and frameworks.

During this journey, we’ve heard many developers ask how to start with Java in Visual Studio Code. As the vibrant Java community expands to include more students and developers from other languages, many new comers struggle with setting up their environment to be able to start coding. To help people get started, we created the Java extension pack to give you the relevant extensions, and also included tutorials with detailed steps in our documentation.

Back in 2018, Microsoft Azure became a Platinum Sponsor of the AdoptOpenJDK project – that just got renewed until June 2020 – and provides a truly vendor neutral, completely free and open source distribution of the JDK (Java Development Kit) based on the OpenJDK project. This was a turning point for us so much we’ve also added a functionality to detect and help developers install a JDK binary in their environments, having AdoptOpenJDK as the recommended distribution. These efforts were encouraging, but got us thinking about more ways we could make it easier to starting coding in Java.

Introducing the Visual Studio Code Java Pack Installer

So today, we’re releasing a special Installer of Visual Studio Code for Java developers. The package can be used as a clean install or an update for existing environment to add Java or Visual Studio Code to your development environment. Once downloaded and opened, it automatically detects if you have the fundamental components in your local development environment, including the JDK, Visual Studio Code and essential Java extensions.

After clicking Install, it will pull the stable versions of those tools from trusted online sources and install them on your system. Once it’s done, you can open Visual Studio Code and start writing and running Java code directly! Below is a short video showing you how to write and run a Hello World program with Java in Visual Studio Code in less than 1 minute. See more detailed functionality in our tutorial.

 

The installer is available for download for Windows now while we’re still working on the macOS version. Please have a try and let us know your feedback!

If you’d like to follow the latest of Java on Visual Studio Code, please provide your email with us using the form below. We will send out updates and tips every couple weeks.


Thank you and happy coding.

Xiaokai He
Xiaokai He

Senior Program Manager, Java on Visual Studio Code and Azure

Follow Xiaokai   

24 comments

Comments are closed.

  • Avatar
    "Fleet Command"

    So, Java is popular again? I didn’t know that. I had heard that Java had a strong developer base for developing server apps, but I didn’t know what exactly that meant.

  • Avatar
    Keith Ralston

    This is awesome.
    Have you considered a server based profile? I could add this to my profile from my phone when I read about it. The next time I code, it is there. When I change machines, I don’t have to reconfigure my Deb environment so much.

  • Avatar
    Thiago Cunha

    very cool tool. I’m a fan of vscode. I would like to know how is the support for the main frameworks on the market? spring for example.

  • Avatar
    Ayush Gupta

    The only suggestion I have for this installer that it should be able to detect insider version of vs code as well. I am a regular user of vs code insider and would very much like to try this out but it does not detect my current installation.

    • Xiaokai He
      Xiaokai He

      Thank you for the suggestion. Originally we thought developers using insider version would probably like to manage their environments by themselves. We will consider this in our future release. 

  • Avatar
    Liam Dawson

    Awesome! Is the installer open source? For example, can we make our own installers?

  • Avatar
    Rafal Wachol

    Looks good! Thank you.

    It would be nice to have Android build system support in plugin. Any chance for that?

    • Xiaokai He
      Xiaokai He

      Thank you for the feedback! We didn’t prioritize Android development since we found most Android developers are pretty satisified with Android Studio, is there any particular area you think VS Code Java could help Android developers?

      • Avatar
        Rafal Wachol

        AS can become pretty heavy. Also it would be great to have one ide for every technology. There’s also Flutter, which has official support from Google. It would be great to see able to develop flutter plugins fully within vscode

  • Avatar
    Kerr, Matt

    This is pretty cool. Is the language server getting Unix socket support on Windows soon? It would be good for performance. Also, a full featured Kotlin and Scala set up would be really nice. Currently, the language server that is available is community made and no longer maintained, and fails to start on most machines. My team has moved on from Java to Kotlin on server side because of how it is evolving faster and is backed by Google and JetBrains for both program code and build scripting in Gradle.

    • Xiaokai He
      Xiaokai He

      No, our next release will include a macOS version. According to our user study, most linux users prefer to manage their own dev environment. 

  • Avatar
    עומרי לוזון

    Most of the stuff doesn’t work for me, errors popping up all the time, the java extentions keep showing a loading progress indicators, there is no intellisense 90% of the time.
    The only thing that works is the syntax highlight.

  • Avatar
    Iain Roberts

    Thank you so much Xiaokai. It’s so good to have support from Microsoft again. (I used Visual J++ in its earliest implemenatation.)

  • Avatar
    walee sebiiy

    alert : the window has crashed we are sorry for the inconvenience! You can repon the window to continue where you left off . same error everytime i try to open the java file 

  • Avatar
    John Elsbree

    I’m hoping to somehow create an offline installer for this. My situation is a high school classroom. In the past, when we’ve tried to have the students install the JDK and IDE on their computers on the first day of class, we’ve overloaded the school’s wifi network. It would be great if we could prepare everything on a USB drive and launch one installer for all of it, while not relying on the network. Any recommendations on how to proceed?