Failure Loading Desktop Class

I got this error when trying to run MATLAB 6 R12.

“Failure Loading Desktop Class”

The first result in Google didn’t help. But Solution 1-1881O did.

I’m running Windows XP on a Dell Dimension 4600 with a 2.4 GHz Pentium 4. With a similar (P4-based) setup, you may get the same error. To fix it, simply download and run this patch: JREpatch.exe.

Make sure MATLAB is closed when you run it. The first time I did, I was running MATLAB (although it wasn’t working) – and some files couldn’t be overwritten. After running the patch, MATLAB worked like a charm.

12 Responses to “Failure Loading Desktop Class”

  1. Luke says:

    There’s a simple rule when running Matlab that everyone must remember: “Matlab is evil. None other will ever be as evil as Matlab. Bow before its evil.”

    And that’s my story of hatred towards Matlab as I, the sayer of Moo!, must hate all things evil and as demonstrated by the above rule: Matlab is evil. (Evil monkeys and any cults they may form are perfectly ok.)

  2. WOW!! says:

    I did a google search as I was having the same problem and ran across this site. Thanks!!

  3. Bogdan says:

    That patch really worked. Thanks a lot!

  4. lla265 says:

    this really works. thanks a lot!!!!!!

  5. Kemal says:

    Thank you very much! Perfect easy solution…

  6. mofan says:

    thank about the solution

  7. naresh says:

    Thank you very much for patch.

  8. KB says:

    Thanks so much! Patch worked great! Saved me from many future headaches.

  9. k1988 says:

    Thanks a lot ^^

  10. Rito Francisco says:

    it doesnt work

  11. V says:

    Worked !!
    At first it didnt as I hadnt changed the classpath in the MATLAB_JAVA variable in the system enviornment.
    It works fine now.Thanks !

  12. Ashok says:

    Thank you for the solution.

    I was having the same problem when I tried installing MATLAB to my desktop recently. It is an old machine with P4 processor. Incidentally, the same copy of MATLAB (v6R12) was working fine on my Laptop for the last 3 years.

    The solution worked, but since MATLAB has deleted the page from where you can download the JRE patch, I simply downloaded the newer version of the JRE and installed it in the same location where MATLAB installs the JRE.

    Download this version of the JRE from:

    http://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/VerifyItem-Start/jre-1_1_8_010-windows-i586.exe?BundledLineItemUUID=tzRIBe.mkPsAAAEh0jAH4Vsc&OrderID=YkhIBe.mteMAAAEhtjAH4Vsc&ProductID=F4TACUFBOOMAAAEYPmo5AXiq&FileName=/jre-1_1_8_010-windows-i586.exe

    And when you install it, give the installation path as:
    C:\matlabR12\sys\java\jre\win32\jre

    It shall then overwrite the previous MATLAB installed JRE. MATLAB 6 R12 worked like a charm since then.

Leave a Reply