PATH ortamına dizini ekleyeceksiniz ki
jsc derlenecekDosyaAdi.js
dediğinizde jsc.exe
dosyasını leb demeden bulsun sisteminiz.- Use the Windows search feature to find jsc.exe on your drive. The exact name of the directory where jsc.exe is located depends on the name and location of the Windows directory and the version of the .NET Framework that is installed. If you have more than one version of the .NET Framework installed, you must determine which version to use (typically the latest version).
For example, the compiler might be located at C:\Windows\Microsoft.NET\Framework\v2.0.50727. - To display the System Information dialog box, right-click Computer or My Computer on the desktop, and then click Properties.
- If you are using Windows Vista or Windows 7, click Advanced System settings in the resulting Control Panel window.
- On the Advanced tab of the System Properties dialog box, click the Environment Variables button.
- Under System variables, select Path from the list and click Edit.
- In the Edit System Variable dialog box, move the cursor to the end of the string in the Variable Value box and type a semicolon (;) followed by the full directory name that you found in Step 1.
For example, if the compiler is at the location specified in the example in Step 1, you would type the following:
;C:\Windows\Microsoft.NET\Framework\v2.0.50727
- Click OK to confirm your edits and close the dialog boxes.
- Open a new command prompt.
Yukarıda size .Net Framework 2.0 için yol göstermiş ama bende 4 versiyonu için yolu ve aradığımız jsc.exe dosyasını göstereyim. Böylece kimse bir daha PATH ne iş yapara Environment Variables ne iş yapar diye düşünmesin ;)
Kodumuz şu olsun:
print("Bu yazı bir exeden çıkacak");Çıktımız ise şu:
Hiç yorum yok:
Yorum Gönder