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!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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:\.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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)"
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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!
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)
Never mind, problem solved!
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
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:\.
try setting the path variable in cmd prompt
for example
set path=%path%;C:\Program Files\Java\jdk1.5\bin;
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)"