![]() It works and downloads the file without problems. With the same code, if I change the url and filename variables to the Linux version like this: url = '' The code downloads a file, but the downloaded file with this code has 203 576KB, when the original file should have 202 784KB and when I try to run it it says that is not possible to run this file on my computer. License = 'oraclelicense=accept-securebackup-cookie' The code is this: import urllib2ĭef download(cookie, license, url, filename): So to set these variables, first right-click on My PC and select Properties.I'm trying to download Java JDK from Oracle website with a Python script.If we do not set the PATH variable, we will specify the full path to the JDK bin every time we run a program.įor example: C:\> “C:\Program Files\Java\jdk-11.0\bin\javac” TestClass.java. ![]() The CLASSPATH variable provides us with the library files location.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |