Run Windows Files Requiring JRE on Ubuntu

There are certain windows files that need JRE (Java Runtime Environment) and therefore doesn’t run on Ubuntu. There are two reasons for that.
  1. 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.
  2. 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

  1. 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
  2. Then, extract the file. Say, if your target file is in .msi, then type the below command in your terminal
                     msiextract (FileName).msi
    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.
  3. Go to the directory of installed program. Program Files/(FileName) by entering the below command

    cd “Program Files/(FileName)”                                                                                                                                                      
  4. Extract the EXE file now. You can do that by entering below command                                                                                                                                                                                                                       unzip (FileName).exe                                                                                                                                                                                 
  5. 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)
  6. Copy the name of main-class and substitute  “.” (dot) with “/” (Forward dash).
                                                                                                                                                                                                                Java MainClass

Congratulations! Your .exe program which requires JRE is now running on Ubuntu.

Leave a Reply

Your email address will not be published. Required fields are marked *