【phonegap】移动WEB开发--常见问题 Error "There is no script engine for file extension" when running .js files
2013-05-10 11:34
330 查看
Symptom
When you attempt to run a .js (JScript Script File) file, one of the following errors may occur:
Can't find script engine "JScript" for script "filename.js".
There is no script engine for file extension ".js".
Instructions for Windows Vista
Open an Elevated Command Prompt window. To do so, click Start, click All Programs, click Accessories, right-click Command Prompt, and then click Run as administrator.
Type the following command and press ENTER:
regsvr32 %systemroot%\system32\jscript.dll
Type EXIT to close the Command Prompt window
Download vista_js_fix.reg from the Attachments section (scroll below), and save it to Desktop
Right-click vista_js_fix.reg and choose Merge
Click Yes when asked for confirmation.
Instructions for Windows XP
Click Start, Run and type:
regsvr32 %systemroot%\system32\jscript.dll
Press ENTER
Download xp_js_fix.reg from the Attachments section below, and save it to Desktop
Right-click xp_js_fix.reg and choose Merge
Click Yes when asked for confirmation.
If the above does not solve the problem, then download and install Windows Script 5.7 from the following Microsoft Web site:
Download details: Windows Script 5.7 for Windows XP
vista_js_fix.reg
When you attempt to run a .js (JScript Script File) file, one of the following errors may occur:
Can't find script engine "JScript" for script "filename.js".
There is no script engine for file extension ".js".
Resolution
This happens if the .js file class data is missing or incorrect. Follow these steps to resolve the problem:Instructions for Windows Vista
Open an Elevated Command Prompt window. To do so, click Start, click All Programs, click Accessories, right-click Command Prompt, and then click Run as administrator.
Type the following command and press ENTER:
regsvr32 %systemroot%\system32\jscript.dll
Type EXIT to close the Command Prompt window
Download vista_js_fix.reg from the Attachments section (scroll below), and save it to Desktop
Right-click vista_js_fix.reg and choose Merge
Click Yes when asked for confirmation.
Instructions for Windows XP
Click Start, Run and type:
regsvr32 %systemroot%\system32\jscript.dll
Press ENTER
Download xp_js_fix.reg from the Attachments section below, and save it to Desktop
Right-click xp_js_fix.reg and choose Merge
Click Yes when asked for confirmation.
If the above does not solve the problem, then download and install Windows Script 5.7 from the following Microsoft Web site:
Download details: Windows Script 5.7 for Windows XP
Attachments
xp_js_fix.regvista_js_fix.reg
相关文章推荐
- Error "There is no script engine for file extension" when running .js files
- Error "Input Error: There is no script engine for file extension ".JS"
- There is no script engine for file extension ".js"
- mybatis "There is no getter for property named 'xx' in 'class java.lang.String"问题
- 部署Struts遇到“There is no Action mapped for namespace [/] and action name [...] associated with .."问题
- 支付宝问题LaunchServices: ERROR: There is no registered handler for URL scheme alipay
- 关于Mybatis "There is no getter for property named 'XXX' in class java.lang.String"的问题
- Error:Cannot compile Groovy files: no Groovy library is defined for module "XXX"
- Chrome加载Android应用,提示“There is no "message" element for key extName”错误问题
- Struts2中关于"There is no Action mapped for namespace / and action name"的问题
- There is no application installed for executable files
- Struts2中关于"There is no Action mapped for namespace / and action name"的总结
- ./install-sh: no input file specified. checking for XML::Parser... configure: error: XML::Parser perl module is required for int
- 使用Struts2遇到There is no action mapped for namespaces / and action name的问题
- Error message "there are no property pages for the selection"
- struts处理.do后缀请求报Struts2中关于"There is no Action mapped for namespace / and action name"的总结
- Struts2中关于"There is no Action mapped for namespace / and action name"的总结
- Struts2 使用ajax访问action,返回json格式数据,提示error:There is no result type defined for type 'json'
- Struts2中DMI(动态方法调用)的错误问题(There is no Action mapped for namespace [/xxx] and action name [xxx!yyy] a)
- Android Studio 提示"Error running app: No Android facet found for app"