06-23-2011 08:59 AM
I/O Error: Cannot run program "jar": CreateProcess error=2, The system cannot find the file specified
why is that error, how to resolve???
Solved! Go to Solution.
06-23-2011 09:21 AM
and more, this process succeed if i delete 1 recently added class......
06-23-2011 09:27 AM
Open up a command prompt and type "jar" in there. If you get a file not found error then you need to check your PATH i Environment Variables and make sure you have one pointing to the location of jar.
06-23-2011 09:29 AM
location of which jar file??
06-23-2011 09:31 AM
The file jar.exe. For exampe, I have a copy of it in C:\Program Files (x86)\Java\jdk1.6.0_24\bin
06-23-2011 09:39 AM
thnks it worked............ but can u tell me what was the reason, as the project was running fine earlier, but after adding 1 file it stucks........... does it not need jar file earlier,??? y??
06-23-2011 09:51 AM
I could be completely wrong about this (someone correct me if I am) but I think that it has to do with when it needs to split up the compiled files. Adding that extra class probably put it over the edge of where it had to do so.
06-23-2011 11:13 AM
I think the most common cause is the length of the command line passed to JAR.EXE from the RAPC processs...if there are too many files in the build, the generated command line gets truncated.
12-01-2011 05:01 AM
ya solved my problem by adding system variable path to jdk bin folder ![]()
01-04-2012 08:55 AM
Iv done all of the above and still get the error grrr!
I put this in my system path
C:\Program Files\Java\jdk1.5.0_22\bin
where the jar.exe is but it still displays:
C:\Projects\Rim\qrReader\src\com\usingnfc\qrReader
I/O Error: Cannot run program "jar": CreateProcess error=2, The system cannot find the file specified
along with ALOT of the same lines!!
any ideas cause it is driving me up the wall!
Lee