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

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.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值