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.

### Like this:

Like Loading...

*Related*

## Published by recluze

http://csrdu.org/nauman
View all posts by recluze

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 😉

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

Wonderfull article. Nice to see great sharing.

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

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

Thank you very much for the article! =)

Thanks for sharing.

nice it worked marvellous research man thanks

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.

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!

thanks bro

it really works

great job man

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.

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

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

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.

Thanx a lot…its working

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

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

thanks a lottttt !!!!!!!

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

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

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

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.

Sir I am facing problem in using matlab 7 in windows 7

kindly tel me that can it work?

kyun

Behan ki lodi ye matlab install kyu nahin ho rahi hai

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?

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

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 ?

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

thank you very much

you solution help me to install MatLab7 under Win 7

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

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

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?

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