tis-oracle-java8-jre-nonfree

8.0.251-7
Last "paid" version provide by Oracle for Java Standard Edition Runtime Environment 8
6346 downloads
Download
default icon

  Description 

  • package : tis-oracle-java8-jre-nonfree
  • version : 8.0.251-7
  • 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-05-27T15:34:33.385000
  • Homepage : https://www.oracle.com/java/
  • Conflicts :

  Setup.py 

# -*- coding: utf-8 -*-
from setuphelpers import *
import requests,re
from waptpackage import PackageEntry
try:
    import bs4 as BeautifulSoup
except:
    import BeautifulSoup

uninstallkey = []

# Please not 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
# 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]
    nopackage_version = package_version.split('8.0.')[1]
    java_cfg = makepath(basedir,'java.cfg')

    # Uninstalling Olders / Others Java 8 versions
    check_installed = installed_softwares(name='Java 8')
    #print(check_installed)

    for uninstall_java in check_installed:
        if 'Oracle' in uninstall_java['publisher']:
            if uninstall_java['version'] < package_version:
                print('Removing %s'% uninstall_java['name'])
                cmd = uninstall_cmd(uninstall_java['key'])
                run(cmd)

    # Installing Java 8
    install_exe_if_needed(bin_name_string_x86 % nopackage_version
        ,silentflags=silent_inst_args_string % java_cfg
        ,key=uninstall_key_string_x86 % nopackage_version)

    if iswin64():
        install_exe_if_needed(bin_name_string_x64 % nopackage_version
            ,silentflags=silent_inst_args_string % java_cfg
            ,key=uninstall_key_string_x64 % nopackage_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,'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,'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,'SOFTWARE\\JavaSoft\\Java Update\\Policy',sam=KEY_WRITE,create_if_missing=True)
        reg_setvalue(key,'EnableJavaUpdate',0,REG_DWORD)


def update_package():
    print('Update package content from upstream binary sources')

    # Get Proxy informations from WAPT settings
    proxy = {}
    if isfile(makepath(application_data(),'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)
    # bs = BeautifulSoup.BeautifulSoup(page,features="html.parser") # For bs4 only

    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)

		# Change version of the package
        pe = PackageEntry().load_control_from_wapt('.')
        pe.version = '%s-%s'%('8.0.' + version,int(pe.version.split('-',1)[1])+1)
        pe.save_control_to_wapt('.')
        print('Changing version to ' + '8.0.' + version + ' in WAPT\\control')
        print('Update package done. You can now build-upload your package')
    else:
        print('This package is already up-to-date')

    # 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.
									
  manifest.sha256