Installing SDK (JDK, Maven, Gradle) in WSL and Windows?

I want to install multiple SDKs (JDK, Maven, Gradle) using SDKMAN in WSL. If later I need to run some of them in a Windows application - do I need to install these SDKs on Windows? Or can I just change the PATH variable on Windows to point to the SDKs that are installed in WSL? Or vice versa - install first on Windows and export PATH to WSL?

Or are they completely isolated and I have to install Maven / Gradle on both Windows and WSL if I want to run them on Windows and WSL?

+3


source to share


1 answer


You should at least install the JDK on Windows as it contains binaries on the platform. Java SDKs should work on Windows too, even if installed on WSL.



0


source







All Articles