![]() My favorite IDE is IntelliJ IDEA (Community Edition) and for now, this IDE does not have the remote development features like VS Code Remote Development extension, therefore, I use an X Server ( VcXsrv) on Windows 10 to see WSL 2 GUI applications like IntelliJ Idea in Windows. To have maximum I/O performance in WSL 2, I kept two copies of this project, one in the NTFS file system to use it in Windows 10 and the other one inside the Ubuntu 20.04 (ext4 file system) that installed on WSL 2.įinally, I installed the same versions of all these on both Windows 10 and WSL 2 (Ubuntu-20.04). Open the terminal on your system using ‘Ctrl + Alt+ t’ or through the application search bar as follows: To start the installation of Java on Ubuntu 20. I used a sample project from the Spring in Action, Fifth Edition (chapter 3 - tacos-jpa). Apache Maven 3.6.3 ( install using SDK).AdoptOpenJDK (build 1.8.0_265-b01) ( install using SDK).IntelliJ IDEA 2020.2.1 (Community Edition).I used these SDKs and tools to run a sample Java Spring Boot project: ![]() You can know more about WSL 2 architecture in this video: The virtualization technology in WSL 2 does not look like a traditional VM (slow to boot, isolated, consumes lots of resources and …), it is managed and run behind the scenes without any configurations. WSL 2 is completely revamped and now we have a complete Linux kernel built by Microsoft ( WSL2-Linux-Kernel) that runs in a lightweight utility VM (virtual machine). In this article, I am going to introduce a fourth option (using WSL 2 and X Server) and compare its performance with the first option. The second and third options are good for having Linux features but they don’t have good performance and consume a lot of resources. The first option is the most straightforward one but it won’t work always if you need some specific Linux features in your development process. Install an Ubuntu server using Multipass and then connect to it using RDP (if you installed a desktop environment on the Ubuntu server) or connect to it using an X Server like VcXsrv.Install A desktop Linux distro on the VMWare or Virtualbox and then install JDK, Maven, and … on that VM.Download native JDK, Maven, and … for Windows and install them directly on the Windows.As a Java developer, If you want to set up a development environment on Windows you have three options (my experiences):
0 Comments
Leave a Reply. |