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 http://bit.ly/Jt7ij with some minor changes).
After installing Matlab (use Classic Windows Theme if you have problems with the installer):
- To use Matlab with other windows 7 themes you have to change Java VM used by matlab.
- Download latest Java version and install it.
- 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>
- 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.
November 4, 2009 at 8:34 am
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.
August 12, 2011 at 11:39 pm
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
November 6, 2009 at 6:53 pm
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.
LarryK
November 27, 2009 at 8:25 pm
Wonderfull article. Nice to see great sharing.
November 29, 2009 at 1:06 am
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?
-thanks
August 2, 2011 at 3:33 pm
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.
July 4, 2012 at 9:16 pm
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
January 28, 2010 at 6:01 pm
Thank you very much for the article! =)
Thanks for sharing.
February 1, 2010 at 5:55 pm
nice it worked marvellous research man thanks
February 5, 2010 at 4:45 am
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.
March 18, 2010 at 7:54 am
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???????
April 8, 2010 at 8:13 pm
It works perfectly
Thank you for sharing!
It also solves the problem with installed Matlab 7 not starting under Windows 7.
December 30, 2011 at 4:32 am
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!
April 28, 2010 at 2:39 am
thanks bro
it really works
great job man
May 12, 2010 at 12:47 am
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.
May 12, 2010 at 1:18 am
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:
http://social.technet.microsoft.com/Forums/en-US/w7itproappcompat/thread/4dba5d57-3127-48f3-9461-eb1ef5d7c70e
May 17, 2010 at 2:15 pm
Olá, muito obrigado. Seu artigo foi sensacional. Agradeço de verdade!!!!
May 31, 2010 at 6:28 pm
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.
July 28, 2010 at 7:55 pm
Thanx a lot…its working
August 17, 2010 at 10:58 am
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..
October 12, 2010 at 12:27 am
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!
THANNNNNNNKS!!
December 12, 2010 at 11:45 pm
thanks a lottttt !!!!!!!
i gave up working matlab, just tried as u said , it’s working!!!!!
December 28, 2010 at 9:24 am
thanx alot guys really help me out with making matlab compatible with windows 7…
January 13, 2011 at 1:12 am
thank u vry much…it workd.. My os: Windows 7 matlab ver: MATLAB 7.6.0
February 8, 2011 at 6:00 pm
Hy!
I have the same problem with matlab 7.1.0 under win7. The solution provided by ELFEHRIJ on http://bit.ly/Jt7ij 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.
April 18, 2011 at 8:41 pm
[...] Matlab 7 under Windows 7 [...]
June 24, 2011 at 8:55 pm
Sir I am facing problem in using matlab 7 in windows 7
kindly tel me that can it work?
June 24, 2011 at 9:13 pm
kyun
June 24, 2011 at 9:11 pm
Behan ki lodi ye matlab install kyu nahin ho rahi hai
July 14, 2011 at 2:18 pm
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?
September 3, 2011 at 4:57 pm
Worked for me! Thank you for posting. I don’t know what I’d have done without Matlab
October 1, 2011 at 2:51 am
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 ?
October 14, 2011 at 11:13 am
Thank you a lot. Work nicely for me and brush down the annoyance of keeping switching to classic theme in Window 7.
October 28, 2011 at 7:27 am
thank you very much
you solution help me to install MatLab7 under Win 7
December 6, 2011 at 7:48 pm
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
June 18, 2012 at 5:45 am
Update: this worked with jre6 last year, but doing it again today, the most current jre7 does not work for me.
July 16, 2012 at 5:11 pm
GINIOUS….
December 19, 2012 at 1:40 pm
Thanks for your help. I fixed the problem with your solution.