- Even if you have latest Linux version of JRE installed, the Windows application will not detect it when you run it through an application layer like WINE installer.
- If you download the Windows version of JRE and try to install it through WINE, then it would make your system unstable, and even in this case, the program will not detect JRE installed.
The good news is — you can run such programs like Minecraft that need Java runtime environment by leveraging Java’s cross-platform capabilities. If you don’t have Java installed then, you can get java here.
Here are the steps
- If the software you are planning to install is in .exe, then go directly to step #3. If it is in any other form, then use an extractor. One of the common extensions is .msi, and for this file type, you can get .msi extractor by typing the below command in your terminal. sudo apt-get install msitools
- Then, extract the file. Say, if your target file is in .msi, then type the below command in your terminal
Note: Replace (FileName) with the name of your file. So for instance, if the name of your .msi file is “blue”, then the command should be msiextract blue.msiWe do all this to convert the source file into .exe format.
- Go to the directory of installed program. Program Files/(FileName) by entering the below command
cd “Program Files/(FileName)”
- Extract the EXE file now. You can do that by entering below command unzip (FileName).exe
- After extraction, your terminal will run through a screen, which will display some data. Now from that data, check the main-class.
It will have two names separated by comma, like filename.FileName (Notice the capitals in the second string)
- Copy the name of main-class and substitute “.” (dot) with “/” (Forward dash).
Congratulations! Your .exe program which requires JRE is now running on Ubuntu.