I/O Error: Cannot run program “javac”: CreateProcess error=2
Ever got this error while building a BB JDE (BlackBerry Java Development Environment) Project?
Building <project> C:\Program Files\Research In Motion\BlackBerry JDE 4.3.0\bin\rapc.exe -quiet import="..\..\..\..\..\Program Files\Research In Motion\BlackBerry JDE 4.3.0\lib\net_rim_api.jar" codename=<project> <project>.rapc warnkey=0x52424200;0x52525400;0x52435200 C:\<project>\<project>.java I/O Error: Cannot run program "javac": CreateProcess error=2, The system cannot find the file specified Error while building project
First check that you have JDK properly installed on your computer. Go to Control Panel -> Add/Remove Programs.
If all that's sweet - check the Environment path to ensure JDK is included. Go to My Computer -> Properties -> Advanced -> Environment. Under System variable Edit Path - and check to see if you have C:\Program Files\Java\jdk
If that doesn't exist you'll need to manually set the paths into the ide.ini when the BB IDE runs. Go to C:\Program Files\Research In Motion\BlackBerry JDE 4.7.0\bin - edit the ide.bat and add the following lines at the beginning:
SET PATH=C:\Program Files\Java\jdk<version>\bin;C:\Windows;C:\Windows\system;C:\Windows\system32 SET JAVA_HOME=C:\Program Files\Java\jdk<version>
Remember to replace <version></version> with the actual version!
Save, and restart you're IDE - and re-build your project. Hopefully it'll start working

June 11th, 2010 - 15:12
thanks a lot it help to serve my purpose.
August 3rd, 2010 - 08:12
Thanks it solved the problem but make another problem
I/O Error: com\rim\samples\device\accelerometerdemo\AccelerometerDemo.tmp (Access is denied)
do you have any solution?
August 5th, 2010 - 22:49
@Rehab, I haven’t had this problem before. Seems like permissions off the top of my head. Are you able to post more details?
August 29th, 2010 - 17:22
Worked like a charm and fixed the problem for me thanks a lot! (Vista/32)
October 18th, 2010 - 16:38
Thanks much brother!
November 20th, 2010 - 21:32
I started wondering if My spouse and that i really should use this write-up on a website web page, Let me link it back again to your website though. If, possibly that is a predicament please make me aware and that i will definately remove it instantly. I admire the useful help and assistance you offer within your articles. I’ll certainly guide mark your report and get my colleagues check-up the following routinely. Quite possibly reasonably positive they will discover lots of attention-grabbing data below when compared to just about everyone else .Thanks a lot with regards to writing this information.
December 1st, 2010 - 03:57
Thanks. Adding the lines to the ide.bat worked great.
January 1st, 2011 - 23:29
thanks thanks thanks
January 29th, 2011 - 11:55
Como solucionaste el problema?
March 29th, 2011 - 02:47
Its not working. Still I am getting same error. I am using Eclipse Galileo
September 3rd, 2011 - 07:01
Great answer. I’ve tended to use the Eclipse IDE and BB plug in.
September 9th, 2011 - 12:46
@Rehab
@Felipe
Hey,
I ran into this as well. You need to go to the folder “accelerometerdemo”.
Right click it -> properties -> security -> edit and give your self permissions to be able to write to the folder.
October 11th, 2011 - 09:39
@Sameer Thanks for sharing that solution!
October 13th, 2011 - 19:09
I am now not sure where you are getting your info, however good topic. I needs to spend a while studying more or working out more. Thank you for great information I used to be looking for this information for my mission.
October 16th, 2011 - 21:55
Glad idea of article. I’m from Cyprus I read many articles about it. I wondered idea of article is quite good and impresive to think about this entertainment and future. Kind regards from Switzerland.
October 25th, 2011 - 18:06
Thank you so much, this definitely has helped me in ways you cant think of…..
November 11th, 2011 - 23:35
This definately helped… You’d think RIM or Sun would atleast have something done about this kind of little snag. Thanks sooo much man.
December 29th, 2011 - 00:56
Very interested art.Idea of article is quite good and impresive to think about this art and future. Kind regards from England .
January 16th, 2012 - 12:53
Thanks, it help me
January 1st, 2012 - 23:29
I¡¦ll immediately snatch your rss feed as I can not find your e-mail subscription hyperlink or newsletter service. Do you’ve any? Please allow me recognise so that I could subscribe. Thanks.
May 23rd, 2012 - 09:50
fixed the problem for me thanks a lot!
July 15th, 2012 - 05:01
This worked wonderfully…
Thanks a lot…
September 27th, 2012 - 10:44
Thanks a lot kid!