

get_download_url ( '17', operating_system = OperatingSystem. get_download_url ( '17', jre = True ) print ( download_url ) # Obtains the platform dependent JRE download url download_url = jdk.

Java jdk download different build code#
Here are some example code snippets: from jdk.enums import OperatingSystem, Architecture download_url = jdk. The library also has a get_download_url function that returns the URL for the given version, it takes the following parameters:
Java jdk download different build install#
install ( '17', vendor = 'Corretto', path = '/usr/local/jdk' ) # Installs a Corretto build of Java 17 JDK into /usr/local/jdk install ( '17', vendor = 'Corretto' ) # Installs a Corretto build of Java 17 JDK. install ( '11', jre = True ) # Platform dependent install of Java JRE 11 into $HOME/.jre/ jdk. install ( '11' ) # Platform dependent install of Java JDK 11 into $HOME/.jdk/ jdk. Please see the list of Supported OpenJDK Build Vendors This is a named argument so must be provided like vendor='Corretto'.

This means that you can easily install and use the library without having to install any additional dependencies. Install-jdk has no third-party dependencies and depends solely on the standard libraries found in Python3. install-jdk is a useful tool for users, developers, and system administrators who need to set up Java development environment or runtime in an automated and repeatedable fashion. The install-jdk library is a Python package that simplifies the process of installing OpenJDK on Windows, macOS, Linux and other supported operating systems, saving time and effort.
