BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 02-11-2010, 09:14 PM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Dec 2009
Model: 8520
PIN: N/A
Carrier: Movistar
Posts: 20
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Problems with Build All

Please Login to Remove!

Hello, I downloaded JDE 4.7 and when I try to Build the FirstApp (HelloWorld) that comes as a sample I get the

I/O Error: CreateProcess:2

...

Error while building project

I already had the JDK installed, to specify more i had the jdk-6u18-windows-i586 because I read that it was a requirement for JDE 4.7.

I searched the forums and I found that I needed to add the bin directory to the PATH, so I did it, and here you can see exactly what I have on the PATH:

C:\Archivos de programa\Java\jdk1.6.0_18\bin;C:\Archivos de programa\Research In Motion\BlackBerry JDE 4.7.0\bin;%SystemRoot%\system32;%SystemRoot%;%Syst emRoot%\System32\Wbem;C:\Archivos de programa\Archivos comunes\Roxio Shared\DLLShared\

(my computer is in spanish so dont worry about the "archivos de programa")

If anyone can guide me to solve this problem I will really appreciate it.

Thanks in advance.
Offline  
Old 02-11-2010, 10:28 PM   #2 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default

This error generally means that the RAPC compiler cannot find the java compiler "javac"

The java compiler is not in the RIM /bin directory, it is in your JDK /bin directory.

You need to fix your path.
Offline  
Old 02-12-2010, 01:33 AM   #3 (permalink)
Knows Where the Search Button Is
 
Join Date: Dec 2009
Model: 8520
PIN: N/A
Carrier: Movistar
Posts: 20
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Dougsg38p View Post
The java compiler is not in the RIM /bin directory, it is in your JDK /bin directory.

You need to fix your path.
Isn't
C:\Archivos de programa\Java\jdk1.6.0_18\bin
the JDK/bin directory?

What I have to do to fix my path.

Thanks.
Offline  
Old 02-12-2010, 08:09 AM   #4 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default

Open a command window and try try to run "javac"
Offline  
Old 02-12-2010, 01:13 PM   #5 (permalink)
Knows Where the Search Button Is
 
Join Date: Dec 2009
Model: 8520
PIN: N/A
Carrier: Movistar
Posts: 20
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Dougsg38p View Post
Open a command window and try try to run "javac"
I get the following:
Error ocurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object

So i guess this is isnt supposed to be this way, how to fix it?
Offline  
Old 02-12-2010, 04:00 PM   #6 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default

Have you installed the JRE as well as the JDK?

I think you should post the entire error mesage you are getting from the compiler.
Offline  
Old 02-17-2010, 11:57 PM   #7 (permalink)
Knows Where the Search Button Is
 
Join Date: Dec 2009
Model: 8520
PIN: N/A
Carrier: Movistar
Posts: 20
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Building FirstApp
C:\Archivos de programa\Research In Motion\BlackBerry JDE 4.7.0\bin\rapc.exe -quiet import=..\lib\net_rim_api.jar codename=FirstApp FirstApp.rapc warnkey=0x52424200;0x52525400;0x52435200 "C:\Archivos de programa\Research In Motion\BlackBerry JDE 4.7.0\bin\HelloApp.java"
I/O Error: Cannot run program "javac": CreateProcess error=2, El sistema no puede hallar el archivo especificado
Error while building project

Thats the error message I get.

I think my javac works now, when I type javac in cmd it shows a list of al posible option so I think its working.

And according to Sun's website my Java is working fine.
Any ideas?
Thanks!

Last edited by leonsas : 02-18-2010 at 12:01 AM.
Offline  
Old 02-18-2010, 08:18 AM   #8 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default

The IDE cannot find the javac compiler, that is what the error says.
Offline  
Old 02-19-2010, 12:43 AM   #9 (permalink)
Knows Where the Search Button Is
 
Join Date: Dec 2009
Model: 8520
PIN: N/A
Carrier: Movistar
Posts: 20
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

I found my error, my /bin directory was written as /bin instead of \bin. Mybad
thanks for helping!
Offline  




Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.