Jabba install fetch and install adoptOpenJdk versions available in the remote repo In its simplest version, the following commands will install openjdk15 and adoptOpenJdk8 on the machine: # fetch and install openjdk versions available in the remote repo You can look into the official documentation for the support. Once Jabba is installed, we can use the same to install different Java versions as per the requirement. All you need to do is run the following command from PowerShell as an administrator. ![]() In the following sections, we will see how we can use Jabba (for installation of various versions) and a custom batch script to switch between these (Jabba installed) versions to solve the issues mentioned earlier. ![]() jEnv, on the other hand, does not work at all on Windows PC machine and can only be used for Mac or Linux based setups. Jabba can install multiple Java versions on a Windows PC machine, but it does not set the corresponding persistent JAVA_HOME or Path variables for the current user. It is relatively easy to switch between different versions on a Mac or Linux-based system, thanks to utilities like Jabba and jEnv But on Windows, this is not as straightforward. When Oracle decided to go with the six-month release cycle for new Java versions, many developers started to work with more than one Java version at a time.
0 Comments
Leave a Reply. |