Menu

Notepad++ error "CreateProcess() failed"

2009-03-31
2012-11-13
  • Arsenic Iodide

    Arsenic Iodide - 2009-03-31

    I'm fairly new to Notepad++, but I had used it on occasion a few months prior to wiping my computer. After re-installing it today I wrote a program and proceeded to compile when I ended up with the following error:

    CreateProcess() failed with error code 2:
    The system cannot find the file specified.

    I googled it, and searched the source forge forums for threads relating to this, but I couldn't find anything that pertained to it.
    I assume that it has to do with the environment variables, but if I didn't have to do anything about it last time, why should I have a problem now?

    Any help with this is greatly appreciated!

     
    • DV

      DV - 2009-08-30

      Seems the system can't find the path to 'javac' or 'java'. Try to add full path to these executables to the PATH environment variable. For more details, see section 4.2 of NppExec_Manual
      (Notepad++\plugins\doc\NppExec_Manual)

       
    • Arsenic Iodide

      Arsenic Iodide - 2009-03-31

      Never mind, problem solved!

       
      • Mate Gulyas

        Mate Gulyas - 2009-08-30

        I am trying to use NppExec to Compile and Run my java files, but when I try to execute it, it dumo me the same error message:
        <i>CreateProcess() failed with error code 2:
        The system cannot find the file specified. </i>

        My commands:
        <i>cd $(CURRENT_DIRECTORY)
        javac $(FILE_NAME)
        java $(NAME_PART)</i>

        Any idea for a solution?

        Thanks for any reply in advance,
        Mate Gulyas

         
  • nand

    nand - 2011-06-04

    I'm going to revive this topic, as I'm experiencing the same error and after hours of searching the web have not managed to solve the issue.

    Interestingly enough, the issue has appeared since I created the %INCLUDE% environment variable, but removing it does not seem to solve the issue.

    The script I am using inside NppExec:

    cd $(CURRENT_DIRECTORY)
    fasm $(FILE_NAME)

    The output:

    CD: A:\asm
    Current directory: A:\asm
    fasm w32test.asm
    CreateProcess() failed with error code 2:
    The system cannot find the file specified.

    Note: I also tried moving between A:\ and C:\, as another link I found said something about Windows restricting access to C:\ - nonetheless it was working fine before, on C:\.

     
  • siphia

    siphia - 2012-07-17

    try setting the path variable in cmd prompt
    for example
    set path=%path%;C:\Program Files\Java\jdk1.5\bin;

     
  • DV

    DV - 2012-07-18

    You need to specify FULL PATH to your compiler. In your case, the compiler is FASM. So, if you have FASM installed into C:\Program Files, the command should be something like 
    "C:\Program Files\FASM\fasm.exe" "$(FILE_NAME)" 

     
MongoDB Logo MongoDB