安装Matlab出现error finding install class的解决方案
标签:
errorfindinginstallclass环境变量解决方案matlabmathwork |
分类: 技巧 |
安装Matlab时出现了error finding install
class的installer error:
http://s12/middle/7bf0c30fhb204b728b6ab&690findinginstall class的解决方案" TITLE="安装Matlab出现error finding install class的解决方案" />
这是Matlab的一个bug,下面是解决方案。
MathWorks关于这个问题的解决方案可以在下面的两个网页中看到:
http://www.mathworks.cn/support/solutions/en/data/1-3042HP/index.html?solution=1-3042HP
http://www.mathworks.cn/support/solutions/en/data/1-11VD0Z/index.html?product=ML&solution=1-11VD0Z
英文描述:
Solution:
This bug has been fixed in Release 14 Service Pack 3 (R14SP3). For previous releases, read below for any possible workarounds:
There is a bug in the installer on Windows in the way that it behaves with TEMP environment variables that point to a directory containing special characters such as an exclamation point (!). To workaround this issue, make sure that your TEMP variable points to a directory name containing only standard ASCII characters. Sometimes a TEMP variable points to a directory inside of your profiles folders, so you may also want to check if your user name contains non-ASCII characters.
To view/edit Environment Variable on Windows:
1. Right click on My Computer and choose Properties
2. Choose the Advanced Tab
3. Click on the Environment Variables Button.
4. In Environment variables look for TEMP and TMP under both System and User variables.
If you need to make any changes, you will have to reboot for those changes to take effect. Once you have rebooted, rerun the installer.
出现这个问题的主要原因是环境变量中TMP和TEMP两项中包含了特殊字符,如%和!。而Windows的这两项常为:
%USERPROFILE%\AppData\Local\Temp
http://s11/middle/7bf0c30fhb204b737ffea&690findinginstall class的解决方案" TITLE="安装Matlab出现error finding install class的解决方案" />
所以要去掉特殊字符%,将环境变量的这一项粘贴到资源管理器的地址栏:
http://s2/middle/7bf0c30fhb204b70a2501&690findinginstall class的解决方案" TITLE="安装Matlab出现error finding install class的解决方案" />
按回车:
http://s6/middle/7bf0c30fhb204b71978e5&690findinginstall class的解决方案" TITLE="安装Matlab出现error finding install class的解决方案" />
可以看到用来存放临时文件的文件夹:
C:\Users\吾乃阿尔法\AppData\Local\Temp
但是这个路径中包含中文字符,即用户名,可以用Administrator替换(必须为ASCII字符),即:
C:\Users\Administrator\AppData\Local\Temp
将这个路径粘贴到环境变量的TMP和TEMP项(点编辑),粘贴,确定即可。要注意的是环境变量中用户变量和系统变量的这两项都只能包含ASCII字符。
之后就可以重新安装了,问题解决。
安装之后,再用%USERPROFILE%\AppData\Local\Temp(最初的值)替换环境变量中被改变的路径即可。
吾乃阿尔法,最先和最后
http://s12/middle/7bf0c30fhb204b728b6ab&690finding
http://www.mathworks.cn/support/solutions/en/data/1-3042HP/index.html?solution=1-3042HP
http://www.mathworks.cn/support/solutions/en/data/1-11VD0Z/index.html?product=ML&solution=1-11VD0Z
Solution:
This bug has been fixed in Release 14 Service Pack 3 (R14SP3). For previous releases, read below for any possible workarounds:
There is a bug in the installer on Windows in the way that it behaves with TEMP environment variables that point to a directory containing special characters such as an exclamation point (!). To workaround this issue, make sure that your TEMP variable points to a directory name containing only standard ASCII characters. Sometimes a TEMP variable points to a directory inside of your profiles folders, so you may also want to check if your user name contains non-ASCII characters.
To view/edit Environment Variable on Windows:
1. Right click on My Computer and choose Properties
2. Choose the Advanced Tab
3. Click on the Environment Variables Button.
4. In Environment variables look for TEMP and TMP under both System and User variables.
If you need to make any changes, you will have to reboot for those changes to take effect. Once you have rebooted, rerun the installer.
http://s11/middle/7bf0c30fhb204b737ffea&690finding
http://s2/middle/7bf0c30fhb204b70a2501&690finding
http://s6/middle/7bf0c30fhb204b71978e5&690finding
吾乃阿尔法,最先和最后

加载中…