-
Notifications
You must be signed in to change notification settings - Fork 89
Option to download and install java versions #35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Im not sure if this should really be a jenv feature. What I could imagine is that jenv automatically opens the website of the desired version. But what do you think? You may still convince me of this feature |
This is a feature provided by SDKman and it seems to work fine. I think you can see the real benefit from this feature when you think on a scale of hundreds of developers on an organization. Better yet, if we had a |
Yea I start liking the idea. This can easily be integrated with #36 The only question remaining is how to find out where the user installed the java version. I also remember that you could pass a command line argument to the java installer to run silently in the background and install to a specific location. But I doubt it would be a good idea to take that much control from the user. What if he wants to but it at another drive? Further investigation is needed |
Not sure if this helps, but Disco API may provide an interface with a catalog of available openjdk distributions. |
Wow thank you. That makes it a lot easier. |
To retrieve the architecture for disco api we could use the following: $architecture = Get-CimInstance -ClassName Win32_Processor | Select-Object -ExpandProperty Architecture $architecture can then be the following: x86 (0)
|
@rcsilva83 Would your distro url look something like this: ``https://example.com/%version%/download/installer.msi` |
Similiar tools like 'pyenv' and 'nvm' also list of available versions and do the actual download of the tools. |
Would be super convenient if jenv could not only switch Java versions, but also had the ability to go ahead and install the configured version. It's also desirable the ability do configure a "dist URL" to be able to download from a local mirror when the user is behind a corporate firewall.
The text was updated successfully, but these errors were encountered: