Matlab 7 under Windows 7

Update: If you are interested in getting a running start to machine learning and deep learning, I have created a course that I’m offering to my dedicated readers for just $9.99. Access it here on Udemy. If you are only here for Matlab, continue reading =]

I had trouble getting Matlab 7 to work with Windows 7 RC even after setting the compatibility options. So, after a bit of search, here’s the solution (copied from ELFEHRIJ on with some minor changes).

After installing Matlab (use Classic Windows Theme if you have problems with the installer):

  1. To use Matlab with other windows 7 themes you have to change Java VM used by matlab.
  2. Download latest Java version and install it.
  3. Go to  <Matlab-installation-dir>\sys\java\jre\win32 you will find a folder named jre1.5.0_07 (or a similar version). Rename it to Original_<whatever was originally there>
  4. Go to C:\Program Files\Java you will find file named jre6. Copy it to <Matlab-installation-dir>\sys\java\jre\win32 and rename it to <original jre directory name>

This will ensure that Matlab uses the new JRE instead of the old one. Just start Matlab now!

Update: Thanks to “ra” and larry for the corrections.

38 thoughts on “Matlab 7 under Windows 7

  1. Thank you so much.
    The installation did not work correctly. But with your hints I’m smiling again!

    By the way change “file” with “folder”. This is a bit irritating.

    • I ADD THIS REPLY TO BE Apeear in the begining to every body use this solution read it too… i had the same problrm and tried the solution but you forget my dear friend to mention that the file named \sys\java\jre\win32\jre.cfg should be edited by replace the only entry there which is the number of the version from the old virsion to the new one at me i changed 1.4.2 to be 6 so every things work correctly then inside matlab after runing…and anyway thanks for the help man 😉

  2. Thanks for the Java fix!
    I needed it for Matlab 2006 and it worked for that. Just change the word “file named…” to “folder named…” to avoid confusion.


  3. hey… what’s excatly the problem with matlab in windows 7? because i installed it normally, but when i open it, it automatically closes… is that it? how can i fix this?

    • I have the same problem, after the correct installation when I try to use Matlab it automatically closes, I’m search in severals forums and do not found a correct answer.

      • Right click matlab icon
        then go to compatibility option.. and in the run this program in compatibility mode for…
        windows 2000…
        it will work definitely

  4. Hola. En verdad que esta ayuda es genial. Traté de instalar Matlab 2006a en Windows 7 y toca deshabilitar el aero para poder ver bien los controles de la instalación.

    Luego seguí las instrucciones para habilitar la ejecución del programa con el aero, y les digo…¡funciona!

    Excelente sugerencia y full gracias.

  5. my problem is similiar with john question,i install normally but when i open can close directly,what can i do to solve this problem???????

    • It works perfectly 🙂 Thank you for sharing!
      It also solves the problem with installed Matlab 7 not starting under Windows 7.

      • i have the same problem as John too. I m done with the installation but when i run it it closes automatically. Can anyone help please!

  6. it works great! Thanks.
    One more comment:
    If you can not rename the jre1.5., you need to stop “Matlab Server” service.
    search for “view local service” in your windows 7.
    find Matlab Server and stop it.

  7. If you want to turn MATLAB2010 or other version on WINDOWS7 you need a RAM at least = 2Gb (2Go) if you have 1Gb you can run MATLAB but first you have to free some memory (RAM) by stoping the process that work in background (the use of the classical theme can help also)

    you can run MATLAB in the safe mode of windows.

  8. i dont know how to use matlab in windows 7..i just installed but while i’m opening there is an error.. what can i do..? is there any idea to install and work matlab under windows7..

  9. Thanks a lot for the hint! It would have been a nightmare to remove WIn7 just because of the problem I had!
    Your solution worked perfectly, at first attempt!

  10. Hy!
    I have the same problem with matlab 7.1.0 under win7. The solution provided by ELFEHRIJ on for me works only partial:
    – after changing the classic theme in Win7, Matlab 7.1.0 works properly;
    – updating Java program and installing it as you all presented on your posts do not entirely solve the problem with the errors of opening Matlab 7.1 under Win7.

  11. Sir I am facing problem in using matlab 7 in windows 7
    kindly tel me that can it work?

  12. I’m trying to run Matlab 7.0.0 (R14) and have tried the suggestions listed here. Even when I change compatability to XP(SP2) – where this program used to run OK – I still can’t load java. First it says I’m missing “jre1.4.2/bin/classic/jvm.dll”. So I find this file under /server, create a new /bin/classic and copy the file to /classic. But then it says it can’t find JRE. So it starts Matlab without java and I have no editor. Any ideas?

  13. Thanks.It’s nice worked.But when I open help windows,in there perfectly empty.How can I fix it ?help me,please !! send for me your answer,to my mail ?

  14. i woud like to ask about the date of release of matlab version7.0 , and is PLs tool box version 2.1 is suitable to work with

  15. Update: this worked with jre6 last year, but doing it again today, the most current jre7 does not work for me.

  16. it worked great with me at first
    but now i have problem mit opening matlab help
    when i tried to open matlab help ,matlab stop responding
    any idea?

Comments are closed.