What does not
First download both Java 7 JRE and Java 8 JRE.
Install Java 7 on wine and install Java 8 on Windows Virtual Machine.
from Windows copy C:/Program Files (x86)/Java/Jre8 folder into wine as jre7 in the same directory. you can delete old one but the name must be same.
now you can run wine java -version and see it working, hopefully...
What was not tested
|Operating system||Test date||Wine version||Installs?||Runs?||Used|
|Show||Ubuntu 18.04 "Bionic" amd64 (+variants like Kubuntu)||Apr 15 2020||5.0||No, but has workaround||Yes||Yes||Gold||Leith Bade|
|Show||Fedora 30 x86_64||Jan 21 2020||4.21||No, but has workaround||Yes||Yes||Silver||Travis Sidelinger|
|Show||Gentoo Linux x86_64||Dec 11 2019||4.20-staging||No, but has workaround||Yes||Yes||Gold||Myk Taylor|
|Show||Ubuntu 17.10 "Artful" amd64 (+variants like Kubuntu)||Feb 26 2018||3.2||No, but has workaround||Yes||Yes||Bronze||noa body|
|Show||Ubuntu 17.10 "Artful" amd64 (+variants like Kubuntu)||Feb 23 2018||3.0||No, but has workaround||Yes||Yes||Bronze||noa body|
|Bug #||Description||Status||Resolution||Other apps affected|
|38624||jre-8u45-windows-i586.exe installer exits silently (needs advapi32.dll GetWindowsAccountDomainSid stub)||CLOSED||FIXED||View|
|38811||Java JRE 8 installer 'jre-8uXX-windows-i586.exe' crashes on startup (GetThreadPreferredUILanguages is a stub)||CLOSED||FIXED||View|
|40821||Multiple applications crash with stack overflow when setting IHTMLElement2::accessKey property (Java JRE 8 installer, RealNetworks RealPlayer 18.x)||NEW||View|