Skip to content
Carlos Rafael Ramirez edited this page Mar 4, 2021 · 7 revisions

Recently JetBrains shipped the IntelliJ 2021.1 EAP with an interesting addition. The possibility to compile and run Java programs whose source code is in WSL2. Everything from the Windows version of the IDE.

https://blog.jetbrains.com/idea/2021/01/intellij-idea-2021-1-eap-1/

https://blog.jetbrains.com/idea/2021/02/intellij-idea-2021-1-eap-5/

Let's prepare Pengwin for run Java project from IntelliJ:

  1. Install SDK Man from pengwin-setup. SDK Man is a very versatile distribution manager, where you can install and update not only any supported Java version but also Ant, Gradle, Maven, and many other tools. (https://sdkman.io/sdks)
$ pengwin-setup update
$ pengwin-setup install PROGRAMMING JAVA
$ source /etc/profile.d/sdkman.sh
  1. List the JVM available and install one of them or simply install the default one.
$ sdk list java
$ sdk install java 11.0.3.hs-adpt # For example

Or the default

$ sdk install java

https://github.com/WhitewaterFoundry/Pengwin/raw/master/docs/images/1057abb5-bb6d-4d01-830f-b6a72338d233%5B1%5D.png

Clone this wiki locally