How to Install Windows Version of Java with WINE in Ubuntu Linux
This tutorial shows how to install the latest Windows version of the Java Runtime Environment (currently version 22.214.171.124) on Ubuntu Linux using WINE. It was tested on Ubuntu 12.04 and 12.10, but should work on any Debian based system. If you need to install the Windows version of Firefox in Linux to use Java with, follow this tutorial.
To begin, download the latest Java RE offline installer here (future version should work, but this was tested with version 126.96.36.199): http://filehippo.com/download_jre_32/
Now we will install wine, make the Java installer executable, and install it with WINE (this assumes the Java installer is named jre-7u10-windows-i586.exe and is located in the Downloads folder. If not, make the necessary adjustments):
sudo apt-get install wine
chmod +x ~/Downloads/jre-7u10-windows-i586.exe
Now the Java installer will launch:
Click Close to complete the installation. The Windows version of Java is now installed. If you have the Windows version of Firefox installed also, you can use it to run web based Java programs now.