joeydaly.com #code #afl #tennis

24Feb/1023

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\bin.

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 :)

Comments (23) Trackbacks (0)
  1. thanks a lot it help to serve my purpose.

  2. 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?

  3. Worked like a charm and fixed the problem for me thanks a lot! (Vista/32)

  4. Thanks much brother!

  5. 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.

  6. Thanks. Adding the lines to the ide.bat worked great.

  7. thanks thanks thanks

  8. Rehabilitación :
    Gracias resuelto el problema, pero que otro problema
    E / S de error: com \ borde \ samples \ Device \ accelerometerdemo \ AccelerometerDemo.tmp (Acceso denegado)
    ¿tiene alguna solución?

    Como solucionaste el problema?

  9. Its not working. Still I am getting same error. I am using Eclipse Galileo

  10. Great answer. I’ve tended to use the Eclipse IDE and BB plug in.

  11. @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.

  12. @Sameer Thanks for sharing that solution!

  13. 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.

  14. 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.

  15. Thank you so much, this definitely has helped me in ways you cant think of…..

  16. This definately helped… You’d think RIM or Sun would atleast have something done about this kind of little snag. Thanks sooo much man.

  17. Very interested art.Idea of article is quite good and impresive to think about this art and future. Kind regards from England .

  18. 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.

  19. fixed the problem for me thanks a lot!

  20. This worked wonderfully…
    Thanks a lot…


Leave a comment

No trackbacks yet.