tis-oracle-java8-jre-nonfree
8.0.251-13
Last "paid" version provide by Oracle for Java Standard Edition Runtime Environment 8
6346 downloads

Description
- package : tis-oracle-java8-jre-nonfree
- version : 8.0.251-13
- architecture : all
- categories : System and network
- maintainer : WAPT Team,Jimmy PELÉ
- description : Last "paid" version provide by Oracle for Java Standard Edition Runtime Environment 8
- locale : all
- target_os : windows
- min_wapt_version : 1.5
- sources : https://www.java.com/en/download/manual.jsp
- installed_size : 696320000
- impacted_process : java,javaw,javaws
- description_fr : Dernière version "payante" fournie par Oracle pour Java Standard Edition Runtime Environment 8
- description_pl :
- description_de :
- description_es :
- description_pt :
- description_it :
- description_nl :
- description_ru :
- editor : Oracle
- licence : OTN
- signature_date : 2020-06-25T11:40:18.985000
- Homepage : https://www.oracle.com/java/
- Conflicts :
Setup.py
# -*- coding: utf-8 -*-
from setuphelpers import *
try:
import bs4 as BeautifulSoup
except:
import BeautifulSoup
import requests
import platform
uninstallkey = []
# Please note that this is the last version of Java Runtime Environment (JRE) CPU edition under OTN License that mean that you can ONLY use it for personnal or developpement use
# More info here : https://blogs.oracle.com/java-platform-group/oracle-java-se-releases-faq
# Installation procedure: https://docs.oracle.com/javase/8/docs/technotes/guides/install/windows_installer_options.html
'''
UninstallKey Software Version Uninstallstring
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
{26A24AE4-039D-4CA4-87B4-2F64180xxxF0} Java 8 Update xxx (64-bit) 8.0.xxx0.9 MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F64180xxxF0}
{26A24AE4-039D-4CA4-87B4-2F32180xxxF0} Java 8 Update xxx 8.0.xxx0.9 MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F32180xxxF0}
{4A03706F-666A-4037-7777-5F2748764D10} Java Auto Updater 2.8.xxx.8
'''
# Declaring specific app values
bin_name_string_x86 = 'jre-8u%s-windows-i586.exe'
bin_name_string_x64 = 'jre-8u%s-windows-x64.exe'
silent_inst_args_string = 'INSTALLCFG="%s" /s'
uninstall_key_string_x86 = '{26A24AE4-039D-4CA4-87B4-2F32180%sF0}'
uninstall_key_string_x64 = '{26A24AE4-039D-4CA4-87B4-2F64180%sF0}'
def install():
# Specific app values
package_version = control.version.split('-')[0]
short_version = package_version.split('8.0.')[1]
java_cfg = makepath(basedir,'java.cfg')
processes_to_kill = ('iexplore.exe','jushed.exe')
install_dir_x86 = makepath(programfiles32,'Java','jre1.8.0_%s' % short_version)
install_dir_x64 = makepath(programfiles64,'Java','jre1.8.0_%s' % short_version)
# Uninstalling Olders / Others Java 8 versions
check_installed = installed_softwares(name='Java 8')
for uninstall_java in check_installed:
if 'Oracle' in uninstall_java['publisher']:
if uninstall_java['version'] < package_version:
print('Removing %s'% uninstall_java['name'])
run(uninstall_cmd(uninstall_java['key']))
# Removing remaining folders to avoid errors
if need_install(uninstall_key_string_x86 % short_version):
if isdir(install_dir_x86):
killalltasks(processes_to_kill)
remove_tree(install_dir_x86)
if iswin64():
if need_install(uninstall_key_string_x64 % short_version):
if isdir(install_dir_x64):
killalltasks(processes_to_kill)
remove_tree(install_dir_x64)
# Installing Java 8
install_exe_if_needed(bin_name_string_x86 % short_version
,silentflags=silent_inst_args_string % java_cfg
,key=uninstall_key_string_x86 % short_version)
if iswin64():
install_exe_if_needed(bin_name_string_x64 % short_version
,silentflags=silent_inst_args_string % java_cfg
,key=uninstall_key_string_x64 % short_version)
# Uninstalling Java Updater
check_installed_updater = installed_softwares(name='Java Auto Updater')
for uninstall_updater in check_installed_updater:
print('Removing %s'% uninstall_updater['name'])
cmd = uninstall_cmd(uninstall_updater['key'])
run(cmd)
print("Disabling Automatic Updates")
if iswin64():
key=reg_openkey_noredir(HKEY_LOCAL_MACHINE,r'SOFTWARE\Wow6432Node\JavaSoft\Java Update\Policy',sam=KEY_WRITE,create_if_missing=True)
reg_setvalue(key,'EnableJavaUpdate',0,REG_DWORD)
key=reg_openkey_noredir(HKEY_LOCAL_MACHINE,r'SOFTWARE\JavaSoft\Java Update\Policy',sam=KEY_WRITE,create_if_missing=True)
reg_setvalue(key,'EnableJavaUpdate',0,REG_DWORD)
else:
key=reg_openkey_noredir(HKEY_LOCAL_MACHINE,r'SOFTWARE\JavaSoft\Java Update\Policy',sam=KEY_WRITE,create_if_missing=True)
reg_setvalue(key,'EnableJavaUpdate',0,REG_DWORD)
def update_package():
print('Download/Update package content from upstream binary sources')
# Getting proxy informations from WAPT settings
proxy = {}
if platform.system()=='Windows' and isfile(makepath(user_local_appdata(),'waptconsole','waptconsole.ini')):
proxywapt = inifile_readstring(makepath(user_local_appdata(),'waptconsole','waptconsole.ini'),'global','http_proxy')
if proxywapt :
proxy = {'http':proxywapt,'https':proxywapt}
# Specific app values
app_name = control.name
url = control.sources
# Get latest version number from official website
page = requests.get('https://www.java.com/en/download/manual.jsp',proxies=proxy,headers={'User-Agent':'Mozilla/5.0 (Windows NT 6.1; Win64; x64)'}).text
bs = BeautifulSoup.BeautifulSoup(page)
url_dl_x86 = bs.find(title = "Download Java software for Windows Offline")["href"]
url_dl_x64 = bs.find(title = "Download Java software for Windows (64-bit)")["href"]
noversion = bs.find('h4',{'class':'sub'}).text
version = noversion.split('Update ')[1]
print('Latest ' + app_name + ' version is: Update ' + version)
latest_bin_x86 = bin_name_string_x86 % version
latest_bin_x64 = bin_name_string_x64 % version
# Downloading latest binaries
if not isfile(latest_bin_x64):
print('Downloading ' + latest_bin_x64)
if not isfile(latest_bin_x64):
wget(url_dl_x64,latest_bin_x64,proxies=proxy)
if not isfile(latest_bin_x86):
print('Downloading ' + latest_bin_x86)
if not isfile(latest_bin_x86):
wget(url_dl_x86,latest_bin_x86,proxies=proxy)
# Changing version of the package
control.version = '%s-%s'%('8.0.' + version,int(control.version.split('-',1)[1])+1)
control.save_control_to_wapt()
print('Changing version to: %s in WAPT\\control' % control.version)
# Deleting outdated binaries
for bin_in_dir in glob.glob('*.exe') or glob.glob('*.msi'):
if bin_in_dir != latest_bin_x86 and bin_in_dir != latest_bin_x64 :
print('Outdated binary: ' + bin_in_dir + ' Deleted')
remove_file(bin_in_dir)
Changelog
Changelog software url : https://www.java.com/en/download/faq/release_changes.xml
No changelog.txt.