GeneralError:%1 is not a valid Win32 application.

General information and discussion about TeXnicCenter
Post Reply
jamesj629
Posts: 1
Joined: Sat Dec 03, 2011 5:38 pm

Error:%1 is not a valid Win32 application.

Post by jamesj629 »

Hi all,

I wanted to post this here because I couldn't find the solution online elsewhere.

I did a fresh install on Windows 7 of MiKTeX 2.9 and TeXnicCenter 2 alpha 3 but on trying to build the project I get the error:

Code: Select all

C:\Program Files (x86)\MiKTeX 2.9\miktex\bin\latex.exeCannot execute the command.Error:%1 is not a valid Win32 application.
I found a way to get it to work:

Go to "Define Output Profiles" Alt+F7
Select a profile
under "Path to the (La)TeX compiler:"
put the file path inside double quotation marks e.g.

Code: Select all

"C:\Program Files (x86)\MiKTeX 2.9\miktex\bin\latex.exe"

And do the same for all other commands (BibTeX, MakeIndex, Viewer). Problem solved.

Why was it so?

Thanks
James

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Re: Error:%1 is not a valid Win32 application.

Post by localghost »

Since the installation tree of MiKTeX is added to the "Path" environment variable of the system, it should be sufficient to just insert »latex.exe« without any path details. this ways you would evade the problem with blank spaces.


Best regards and welcome to the board
Thorsten
Post Reply