您的位置:首页 > Web前端 > JavaScript

Error "Input Error: There is no script engine for file extension ".JS"

2009-12-17 10:30 921 查看
Problem(Abstract)
Debugging a resource model causes the error above to appear.
Cause
It's possible the association of the "*.js" extension with a script engine/debugger has been lost.
Resolving the problem
Attempting to debug a Javascript-based Resource Model in the ITM Resource Model Builder (RMB), the "Play" button/icon is selected to start debugging. The Play icon changes from Green to grey, and the Stop icon turns from grey to Red, as it should when debugging is activated. But after a fraction of a second it stops and goes back to green without starting a debugger.
Check the Javascript console for the error. Sometimes if the .JS extension was associated with something else on the system other than JSFile, it won't be able to find the "ScriptEngine" entry for that type in HKEY_CLASSES_ROOT, and will fail to start the debugger. The lowest frame in the RMB window has a series of tabs at the bottom (Tasks, RMB Logging Viewer, RMB Indication Viewer, RMB Event Viewer, and Javascript Console). Choose "Javascript Console" tab to see any errors. For example, it might show the following:

Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.

Input Error: There is no script engine for file extension ".JS".

If so, then check the current association of the ".JS" extension on that Windows system by running the following command:

ASSOC .JS

It should show something like ".js=JSFile" on a working system. If it shows something else, note what it is for safekeeping and then change it with:

ASSOC .JS=JSFile

Verify the change using "ASSOC .JS" again. Then retry the debugger to confirm it works this time, watching the Javascript console for any other errors.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐