Matlab 7 under Windows 7

July 30, 2009

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.

37 Responses to “Matlab 7 under Windows 7”

  1. Ra Says:

    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.

    • Ammar Moussa Says:

      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. Larry K Says:

    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. Rahul Says:

    Wonderfull article. Nice to see great sharing.

  4. Jhon Says:

    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?

    • real Says:

      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.

      • Jimmy Says:

        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

  5. Hatsu Says:

    Thank you very much for the article! =)
    Thanks for sharing.

  6. shravan kumar Says:

    nice it worked marvellous research man thanks

  7. Alfredo Says:

    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.

  8. siti chalimah Says:

    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???????

    • Szilvi Says:

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

      • Blaise Says:

        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!

  9. aditya Says:

    thanks bro
    it really works
    great job man

  10. shasha Says:

    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.

  11. shasha Says:

    my matlab GUI program does not work using the above method. However the following method works using the original java lib. Windows 7 home premium, Matlab R2006a

    1.- open compatibility tab
    2.- Select windows 2000
    3.- mark the option to disable visual themes

    found from:

  12. Tiago Says:

    Olá, muito obrigado. Seu artigo foi sensacional. Agradeço de verdade!!!!

  13. Merwan BIREM Says:

    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.

  14. Kamal Says:

    Thanx a lot…its working

  15. mahem Says:

    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..

  16. Alex Ferreira Says:

    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!

  17. juhee lee Says:

    thanks a lottttt !!!!!!!
    i gave up working matlab, just tried as u said , it’s working!!!!!

  18. Zeeshan Says:

    thanx alot guys really help me out with making matlab compatible with windows 7…

  19. Afm faith Says:

    thank u vry much…it workd.. My os: Windows 7 matlab ver: MATLAB 7.6.0

  20. MJim Says:

    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.

  21. […] Matlab 7 under Windows 7 […]

  22. Syed Mohd. Javed Says:

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

  23. Tina tiwari Says:

    Behan ki lodi ye matlab install kyu nahin ho rahi hai

  24. jim huntley Says:

    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?

  25. Andy M, USA Says:

    Worked for me! Thank you for posting. I don’t know what I’d have done without Matlab 🙂

  26. kdich Says:

    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 ?

  27. HT Says:

    Thank you a lot. Work nicely for me and brush down the annoyance of keeping switching to classic theme in Window 7.

  28. dr.Ibraheem Nadher Says:

    thank you very much
    you solution help me to install MatLab7 under Win 7

  29. amal abou alalamein Says:

    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

  30. Andy M, USA Says:

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

  31. Nijesh P S Says:

    Thanks for your help. I fixed the problem with your solution.

Comments are closed.

%d bloggers like this: