On 8 Okt., 19:27, "Joel " <joseph.pfeif...@colorado.edu> wrote: > "Ryan " <rcr...@soe.ucsc.edu> wrote in message <h45jim$3n...@fred.mathworks.com>... > > I've had similar results to Mathew ^^^ > > > When I try to start Matlab under normal Windows 7 settings I get a pop-up "Error Starting Desktop" with about 50 lines of java.something.or.other. > > > - Changing Compatability mode to Vista causes it to die on startup without the error message. > > > - Selecting "Disable desktop composition" does nothing. > > > - Copying over the java directory results in a warning message: "Warning: Unable to load Java Runtime Environment: C:\%matlab-directories%\jre1.5.0_05\bin\server\jvm.dll is not a valid Win32 application", then after OK displays another warning: "Warning: Disabling Java support" and then starts some crippled version of Matlab with only a prompt. > > > - Adding the environment variables causes Matlab to close immediately upon startup. > > > - Running Windows 7 with the Classic theme is the only method I've found to work for me, so I'm still interested in finding a better solution.
Maybe this thread is dead by now, but I've used yet another solution which might work for others as well: Replacing the jre-folder and/or adding a new variable as described above didn't work for me (Matlab 7.0.1 with Win7Pro and jre6 installed). I could start Matlab without the long list of java errors, but then when using the program, e.g. plot tools, error messages still showed up. In addition, browsing to a different working directory caused the program to crash.
Inspired by a tip on a related problem (http://www.mathworks.com/ support/solutions/en/data/1-AUXDGC/index.html?product=ML&solution=1- AUXDGC), I ran already the Matlab setup.exe in Vista compatibility mode. This alone didn't work either, but setting the Matlab to run in Vista mode finally solved the problem, so now I can use Matlab with Aero still enabled, without java error messages.