Daily Archives: 12 Agosto, 2013

Nessun interprete di script per file con estensione .js

Pubblicato da

E’ un noioso quanto poco comprensibile errore che mi è capitato le prime volte che ho usato Cordova per la realizzazione di un’app per Android.
Leggendo in giro ho trovato che è la mancanza di classe di dati particolare (può essere relativa a .js ma anche a .vbs).
Spiegazione che non mi convince. Tuttavia la soluzione trovata con la modifica del registro di sistema ha funzionato.
A me ha funzionato pur utilizzando Windows 7 a 64bit

da Winhelponline

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