BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 10-20-2004, 05:03 AM   #1
Emdis
New Member
 
Join Date: Oct 2004
Location: Montpellier
Posts: 5
Default [Solved] I get an "error=2" with a HelloWorld prog

Please Login to Remove!

Hi Guys,

I'm new to blackBerry and I get a problem when I try to build my first application ...
I just installed JDE and follow the developer guide to create the helloWorld application and here is what I get in the build windows:

Code:
Building b ...
Cxxx58;\Program Files\Research In Motion\BlackBerry JDE 3.7\bin\rapc.exe  -quiet import="Cxxx58;\Program Files\Research In Motion\BlackBerry JDE 3.7\lib\net_rim_api.jar" codename=b b.rapc "Cxxx58;\Program Files\Research In Motion\BlackBerry JDE 3.7\bin\c.java"

I/O Errorxxx58; CreateProcessxxx58; javac -target 1.1 -g -O -d Cxxx58;\DOCUME~1\Emmanuel\LOCALS~1\Temp\rapc_61326.dir -bootclasspath "Cxxx58;\Program Files\Research In Motion\BlackBerry JDE 3.7\lib\net_rim_api.jar" -classpath "Cxxx58;\Program Files\Research In Motion\BlackBerry JDE 3.7\lib\net_rim_api.jar" "Cxxx58;\Program Files\Research In Motion\BlackBerry JDE 3.7\bin\c.java" error=2

Error while building project
I guess that this a file access/creation problem but where can you specify the temporary working directory ? (here C:\DOCUME~1\Emmanuel\LOCALS~1\Temp\) By the way I've verified and the file rapc_61326.dir has not been created in this directory ... so I'm a little bit lost.

Your help would be greatly appreciated
Thanks in advance
Offline  
Old 10-20-2004, 07:43 AM   #2
bfrye
BBF Veteran User
 
Join Date: Aug 2004
Location: Hotwiring another Cessna
Model: OU812
Carrier: Nintendo
Posts: 3,492
Default

If I remember right, I think that's the issue if you didn't update your path to include the java bin dir. I could be wrong though.
Offline  
Old 10-21-2004, 02:20 AM   #3
Emdis
New Member
 
Join Date: Oct 2004
Location: Montpellier
Posts: 5
Default

Quote:
Originally Posted by bfrye
If I remember right, I think that's the issue if you didn't update your path to include the java bin dir. I could be wrong though.
I confirm that my problem was linked to the javac path not defined (and to the fact that I was using JDK 1.5 which can't apparently work with JDE)

Thanks ;)
Offline  
Old 06-07-2005, 10:57 PM   #4
prc11375
New Member
 
Join Date: Jun 2005
Model: 7200
Posts: 1
Default This worked

Hey, thanks for posting your suggestion. I had this problem and found that adding the jdk bin directory to the path environmental variable resolved it. Thanks again.
Offline  
Old 03-26-2006, 11:17 AM   #5
yitzle
New Member
 
Join Date: Mar 2006
Location: RIM, Mississauga
Model: 7800
Carrier: Rogers
Posts: 5
Default

Same problem.
Updated the path env var. Didn't help... Will see if I need to reboot for it to take effect...
Offline  
Old 03-26-2006, 01:14 PM   #6
yitzle
New Member
 
Join Date: Mar 2006
Location: RIM, Mississauga
Model: 7800
Carrier: Rogers
Posts: 5
Default

OK. That works. When i load up the Simulator with the HeloWorld app and try running it I get:
"JVM Error 104
Uncaught:
MissingResourceException"
I hit continue and get:
"Uncaught exception: Missing resource
com.rim.samples.device.resource.HelloWorldRes"

Do I need to load the resource onto the Simulator? Or does it somehow need to be compiled into the .cod?
Please help.
Offline  
Old 03-27-2006, 02:48 PM   #7
JuneK
Knows Where the Search Button Is
 
Join Date: Nov 2005
Model: none
Carrier: none
Posts: 40
Default

If you are using the RIM samples, you may need to do a build all to get the necessary resource files.
Offline  
Old 05-25-2006, 12:12 PM   #8
vik
New Member
 
Join Date: May 2006
Model: 7250
Posts: 6
Default Help ME!!!

Hi,

I am new to blackberry. While building the helloworld program I recieve this error kindly tell me what shud i do


Deleting C:\Program Files\Research In Motion\BlackBerry JDE 4.1.0\bin\Pong.cod.
Building Pong ...
C:\Program Files\Research In Motion\BlackBerry JDE 4.1.0\bin\rapc.exe -quiet import=..\lib\net_rim_api.jar codename=Pong Pong.rapc warnkey=0x52424200;0x52525400;0x52435200;0x5243430 0 "C:\Program Files\Research In Motion\BlackBerry JDE 4.1.0\bin\Pong.java"
I/O Error: CreateProcess: javac -source 1.3 -target 1.1 -g -O -d C:\DOCUME~1\vsaini\LOCALS~1\Temp\rapc_6c752d08.dir -bootclasspath ..\lib\net_rim_api.jar -classpath ..\lib\net_rim_api.jar "C:\Program Files\Research In Motion\BlackBerry JDE 4.1.0\bin\Pong.java" error=2
Error while building project
Offline  
Old 05-27-2006, 07:43 AM   #9
brace! brace!
Knows Where the Search Button Is
 
brace! brace!'s Avatar
 
Join Date: Apr 2006
Location: Sydney, Australia
Model: 8700g
Posts: 43
Default

vik,

Everyone who I know who had this problem has fixed it by putting the Java bin directory at the start of their system PATH variable. See the KB article at the developer website for full info.

Following this information should fix it. The KB article number is: DB-00081

This link should work:
http://www.blackberry.com/knowledgec...00760&vernum=6
__________________
- Simon

BB: 8700g
PIN: 20403872
Google Talk: brace.brace
Offline  
Old 05-29-2006, 10:16 AM   #10
vik
New Member
 
Join Date: May 2006
Model: 7250
Posts: 6
Default I got it

Hey Brace,

Thks for the advice. It worked out.

Cheers

Vik
Offline  
Old 03-22-2007, 10:47 PM   #11
dmikolaj
New Member
 
Join Date: Mar 2007
Model: 8100
Posts: 1
Default I have the same problem:

i have the same problem, but couldnt solve it with the links found on this forum..

the link that is above, that talks about the environment variable, doesnt say which enviorment variable, is it the classpath variable, or the JAVA_HOME variable, etc.

thanks
Code:
Building com_rim_activeuifields
C:\blackberry-jde-4.2.1\bin\rapc.exe  -quiet -deprecation import=..\lib\net_rim_api.jar codename=com\rim\samples\device\activeuifields\com_rim_activeuifields com\rim\samples\device\activeuifields\com_rim_activeuifields.rapc warnkey=0x52424200;0x52435200;0x52525400 C:\blackberry-jde-4.2.1\samples\com\rim\samples\device\resource\ActiveUiFields.rrh C:\blackberry-jde-4.2.1\samples\com\rim\samples\device\activeuifields\ActiveUiFieldsSample.java C:\blackberry-jde-4.2.1\samples\com\rim\samples\device\activeuifields\img\activeuifields.png
I/O Error: CreateProcess: javac -source 1.3 -target 1.1 -deprecation -g -O -d C:\DOCUME~1\Default\LOCALS~1\Temp\rapc_7d1a1662.dir -bootclasspath ..\lib\net_rim_api.jar -classpath ..\lib\net_rim_api.jar C:\blackberry-jde-4.2.1\samples\com\rim\samples\device\activeuifields\ActiveUiFieldsSample.java "C:\Documents and Settings\Default\Local Settings\Temp\rapc_rc_44278.dir\.staging\com\rim\samples\device\resource\ActiveUiFieldsResource.java" error=2
Error while building project
Offline  
Old 03-23-2007, 09:41 AM   #12
Skipper_Joe
Talking BlackBerry Encyclopedia
 
Skipper_Joe's Avatar
 
Join Date: Jan 2007
Location: Kharkov, Ukraine
Model: 8300
Carrier: N/A
Posts: 237
Default

PATH variable should contain path to the bin folder of JDK
Offline  
Old 03-31-2007, 11:09 PM   #13
avitalp
New Member
 
Join Date: Mar 2007
Model: 7100T
Carrier: FIDO
Posts: 1
Default Works for me as well

Knowing how frustrating this error can be I just wanted to provide an updated confirmation that resolution #2 offered in the knowledge base article linked above worked for me as well - moving the link to the bin directory to the front of the path env variable.

I'm using JDE 4.2.1 with Java SE SDK 1.5 (with patches 6,10, 11 installed).
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Genuine A1417 OEM Battery Apple Macbook Pro 15 Retina A1398 Mid 2012 Early 2013 picture

Genuine A1417 OEM Battery Apple Macbook Pro 15 Retina A1398 Mid 2012 Early 2013

$37.90



OEM iPhone 11 PRO X/XR XS MAX 8/7 PLUS Fast Charging USB Cable 10 Feet & 6 Feet  picture

OEM iPhone 11 PRO X/XR XS MAX 8/7 PLUS Fast Charging USB Cable 10 Feet & 6 Feet

$2.99



iPhone 13 12 11 PRO MAX XR XS 8/7/6 Fast Charger USB Data Cable cord 10 feet/3M picture

iPhone 13 12 11 PRO MAX XR XS 8/7/6 Fast Charger USB Data Cable cord 10 feet/3M

$4.99



3M/10 feet Long Apple iPhone 13 12 11 Pro XS MAX XR X 8 Fast Charging Data Cable picture

3M/10 feet Long Apple iPhone 13 12 11 Pro XS MAX XR X 8 Fast Charging Data Cable

$3.50



A1618 NEW OEM Battery for MacBook Pro 15

A1618 NEW OEM Battery for MacBook Pro 15" Retina A1398 Mid 2015 020-00079

$43.90



NEW OEM Battery A1466 A1369 A1496 A1405 A1377 A1466 for MacBook Air 13 inch picture

NEW OEM Battery A1466 A1369 A1496 A1405 A1377 A1466 for MacBook Air 13 inch

$31.90







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