![]() ![]() download ( version = '17', operating_system = OperatingSystem. download ( '' ) print ( download_file ) # Downloads the requested file and returns back the TMP locations it was stored in. Here are some example code snippets: from jdk.enums import OperatingSystem, Architecture download_file = jdk. Defaults to false, which will install the Java Development Kit. A boolean value indicating that the Java Runtime Environment should be installed. jre - Must be provided as a named parameter.Currently only supports HOTSPOT and dependent on the OpenJDK Build Vendor. impl - Must be provided as a named parameter.If not specified, will use the user's detected architecture if possible. arch - Must be provided as a named parameter.If not specified, will use the user's detected operating system if possible. operating_system - Must be provided as a named parameter.The major version of the Java OpenJDK build to install (e.g. version - Required when download_version is None and must be provided as a named parameter.download_url - The URL to the file to be downloaded.This function does not currently support overriding the default download path which is the operating systems specific TMP directory. The library has a download function that will download the requested version and returns back the path to where it was downloaded. AARCH64, vendor = 'Corretto' ) print ( download_url ) # Obtains OpenJDK 17 from Corretto for Linux running on aarch64 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. 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: 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'. vendor - The vendor to download the OpenJDK build from.If not specified, will install into $HOME/.jdk/ for the Java Development Kit and $HOME/.jre/ for the Java Runtime Environment. path - The location to install the downloaded OpenJDK build. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |