系统:Win7@Ultimatex86安装Matlab版本:MatlabR2010b注:问题出现时,在网上搜索了同类问题的解决方案,发现其他系统(如xp,2000等)与安装版本(如R2009b)也出现过类似的问题,但一些中文论坛或问答网上的解决方案都不全,于是写一下自己解决的过程.问题①:在下载好MatlabR2010b的安装文件(installer)后,双击安装.首先出现一个小对话框显示安装程序将Java虚拟机拷贝至系统中,接着弹出一个对话框“Errorfindinginstallerclass.Anexceptionoccurredwhilelookingforclass.”问题成因:1)Matab的安装文件夹名包含非ASCⅡ码(non-ASCⅡcharacters)2)TEMP或TMP系统变量的变量值(指向的目标文件夹)名字包含非ASCⅡ码3)Matlab安装文件损坏【注】典型的非ASCⅡ码包含中文与!@#$%^&等符号,具体可以上网搜索“ASCⅡ码表”或“ASCⅡcodechart”进行对照.解决方案:1)检查Matab安装文件夹名是否包含非ASCⅡ码,如有则改之,改好后重新安装Matlab至名字没问题的目标文件夹中.2)检查TEMP或TMP系统变量的指向的目标文件夹名是否包含非ASCⅡ码,如有则改动文件夹名字或者直接将变量值改动为名字不含非ASCⅡ码的新文件夹中.TEMP与TMP变量可以在“环境变量”对话框中查看与修改,“环境变量”打开方式如下:xp/2000系统中,右键“我的电脑”“属性”“高级”“环境变量”vista/win7系统中,右键“计算机”“属性”“高级系统设置”“环境变量”3)如以上两步确认无误仍无法安装,尝试在安全模式(允许网络活动)中安装Matlab.4)如以上三步无碍但仍然无法安装,则安装程序损坏的可能性很大,请更换Matlab安装程序(installer)或者联系Installationsupport.【注意】绝大多数这种InstallerError错误在1)2)两步中都可修复,这里要重点注意第2)步:如“系统变量”框左上角显示的计算机名/用户名(如“XXXX的用户变量”,此处“XXXX”就是计算机名)包含中文等非ASCⅡ码,那么需特别注意TEMP与TMP的变量值地址;如变量值为“%USERPROFILE%\AppData\Local\Temp”,则须⑴改计算机名/用户名为一个不含非ASCⅡ码的名字,或者⑵注册一个名字不含ASCⅡ码的用户名,然后“切换用户”至新用户再安装Matlab,或者⑶改动TEMP与TMP的变量值为一新文件夹,文件夹名字不含非ASCⅡ码.因为对于用户名为“XXXX”的计算机,其变量值虽然写的是“%USERPROFILE%\AppData\Local\Temp”,其实际指向却是“C:\Users\XXXX\AppData\Local\Temp”.我之前改了好久都没改好,就是用户名包含“广州”两个中文字,但TEMP和TMP却都显示为符合规则的“%USERPROFILE%\AppData\Local\Temp”,所以一直找不着问题所在.后来换了用户名以后安装一下就成功了.【附】MathworkTechnicalSupport的官方回答TechnicalSolutionsWhydoIreceiveanErrorfindinginstallerclassmessagewhentryingtoinstallMATLABonWindows?DateLastModified:Friday,June26,2009SolutionID:1-3042HPProduct:MATLABReportedinRelease:NoReleasePlatform:WindowsOperatingSystem:WindowsAnySubject:WhydoIreceiveanErrorfindinginstallerclassmessagewhentryingtoinstallMATLABonWindows?ProblemDescription:Afterstartingtheinstallation,Ireceivethefollowingerrormessage:ErrorfindinginstallerclassSolution:Thiserrormessagecanoccurifoneofthefollowingconditionsistrue:-ThedestinationfolderforMATLABcontainsnon-ASCIIcharacters(ex:!@#$&^?)-TheWindowsTEMPand/orTMPvariablespointtoafolderwithnon-ASCIIcharacters-Thereisaproblemwiththeinstallationfiles(corruptDVDorincompletedownloads)Asaworkaroundforthisissue,makesureyouareinstallingMATLABintoafolderwithASCIIcharactersonly.Ifthedestinationfolderiscorrect,seebelowforadditionaltroubleshooting:1)ChecktheWindowsTEMPandTMPvariablesToconfirmthepathforTEMPandTMPunderWindowsXP/2000:1.RightclickonMyComputerandchooseProperties2.ChoosetheAdvancedTab3.ClickontheEnvironmentVariablesButton(bottomleft)InVistathisisaccomplishedbythefollowing:1.RightclickonComputerandchooseProperties2.ClickonAdvancedSettingsontheleftside3.ClickcontinueontheUACpage4.ClickontheEnvironmentVariablesButton(bottom)CheckfortheTMPandTEMPvariablesunderbothSystemandUservariables.Ifyouseethevariablesettoavaluebetweenpercentsigns(ex:%TMP%)ortoapathwithallASCIIcharacters,thevariableisfine.Otherwise,ifthevarilablehavenon-ASCIIcharacterssuchasanexclaimationpoint(!),thesevariablescanbemodifiedbydoubleclickingonthevariableorhighlightingitandchoosingEdit.Oncechanged,rebootthemachineandretrytheinstallation.2)TrytheinstallationinWindowsSafemode.IftheinstallationfolderandtheTEMP/TMPfoldersareallASCIIbased,youmaybeabletoresolvethisissuebyinstallingMATLABinWindowsSafeMode.SafeModedisableshardwaredriversandmayallowtheinstallationtocomplete.ToenterSafeMode,rebootthemachine.Asthemachineisbooting,taptheF8keyeveryfewsecondsuntilamenuappears.Inthemenu,selecttheoptionfor:SafeModewithNetworking.Loginasnormalandtrytheinstallation.3)TrydifferentinstallationfilesIftheinstallerdoesnotworkaftertheworkaroundsabove,thebestoptionistotrydifferentinstallationfiles.ThesecanbefromadifferentDVDorviadownloadsfromtheMathWorkswebsite.Forinstructionsonhowtodownload,seetherelatedsolution:1-1815HHowdoIdownloadlicensedMATLABproductsfromMathWorkswebsite?Ifyouarestillunabletoinstallafterfollowingthesesteps,contactInstallationsupporthere: