Texstudio and windows error

If you are using TexStudio and build a document and receive the following error: Fatal fontspec error: "cannot-use-pdftex" The fontspec package requires either XeTeX or LuaTeX. You must change your typesetting engine to, e.g., "xelatex" or "lualatex"instead of plain "latex" or "pdflatex". For immediate help type H . You simply need to change the build …

texstudio configuration on mac

configuring texstudio for xelatex on a mac is quick and easy.  the default values in the preferences (TexStudio -> preferences) list /usr/... - in the Commands submenu change /usr/ to /Library/Tex/ it should work fine then https://tex.stackexchange.com/questions/38627/commands-paths-in-texstudio-on-mac-os-x-with-could-not-start-the-command-err