BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 07-03-2008, 01:58 PM   #1
sday
New Member
 
Join Date: Jul 2008
Model: 8700c
PIN: N/A
Carrier: Cingular
Posts: 6
Default Compiler help please

Please Login to Remove!

This started out as a 907 invalid COD problem, but looks like a compile issue.

I decided to step back and go simple. I cannot get my HelloWorld app to work on my 8700c but works fine on my 8830 when compiled with the 4.3.0.1r JDE.

I had an old version of a HelloWorld sample I compiled in the past on an older version of the JDE. That works fine on the 8700c, but when I compile it with the new JDE it doesn't load with the simulator and doesn't work OTA.

Any ideas?

Thanks
-Steve
Offline  
Old 07-03-2008, 02:19 PM   #2
richard.puckett
Talking BlackBerry Encyclopedia
 
richard.puckett's Avatar
 
Join Date: Oct 2007
Location: Seattle, WA
Model: 9020
PIN: N/A
Carrier: T-Mobile
Posts: 212
Default

You should always use the appropriate version of rapc that corresponds to your target OS. If you're compiling for the 8700c then use JDE 4.1.0, not 4.3.0.
__________________
Do your homework and know how to ask a good question.
Offline  
Old 07-03-2008, 02:40 PM   #3
sday
New Member
 
Join Date: Jul 2008
Model: 8700c
PIN: N/A
Carrier: Cingular
Posts: 6
Default

Thank you very much. I just ran across another thread that basically says the same thing. Your help is much appreciated. Armed with some bandwidth I should be off an running very soon again.

-Steve

"There is really no "correct" RIM package. It depends on your Blackberry target. The most common JDE's currently would be 4.2.1 and 4.3. You'll need to download and install the JDE, a recent Sun JDK, and (optionally) additional simulators, based on your target system. All of this is found on BlackBerry - BlackBerry Developer Program | Support, Downloads, Knowledge Base, Community

It is important to note that your compiled code will be forward, but not backward, compatible. In other words, if you are compiling for a 4.2 target system, don't use the 4.3 JDE.

The JDE creates the required COD files "out of the box". You may have to set up some environment variables (like PATH) to insure that the JDE finds your Java compiler. You choose the simulator using EDIT / PREFERENCES / SIMULATOR on the JDE menu."
Offline  
Old 07-03-2008, 03:23 PM   #4
sday
New Member
 
Join Date: Jul 2008
Model: 8700c
PIN: N/A
Carrier: Cingular
Posts: 6
Default

It will be nice when some day apps just install correctly. I downloaded the 4.2.1 JDE, installed it and selected Build:

Building HelloWorld
C:\Program Files\Research In Motion\BlackBerry JDE 4.2.1\bin\rapc.exe -quiet import=<runtime> codename=HelloWorld\HelloWorld HelloWorld\HelloWorld.rapc warnkey=0x52424200;0x52435200;0x52525400 C:\save.dev\bb\HelloWorld\HelloWorld.java C:\save.dev\bb\HelloWorld\SalutationScreen.java
I/O Error: Import file not found: <runtime>
Error while building project

Now I have to figure out how to either define <runtime> or just put a reference to the file it's looking for. Why don't apps just install correctly???? [groan]
Offline  
Old 07-03-2008, 03:27 PM   #5
sday
New Member
 
Join Date: Jul 2008
Model: 8700c
PIN: N/A
Carrier: Cingular
Posts: 6
Default

I didn't find it it the search, so in case another BB newbie had the same problem as me...

The .jdw (workspace) files are not backward compatible. Just create a new workspace and add your project, all is good.

-Steve
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


VINTAGE COLLECTIBLE / IBM / APPLE / POWERPC / MICROPROCESSOR CHIP / 90X8941 (JO) picture

VINTAGE COLLECTIBLE / IBM / APPLE / POWERPC / MICROPROCESSOR CHIP / 90X8941 (JO)

$9.99



Vintage Apple Computer 4” Paper Cube Notepad Macintosh 80s 90s Office White picture

Vintage Apple Computer 4” Paper Cube Notepad Macintosh 80s 90s Office White

$39.95



(1) 7450 fairchild IC Vintage Apple I Replica reproduction mimeo newton NEW  picture

(1) 7450 fairchild IC Vintage Apple I Replica reproduction mimeo newton NEW

$9.50



Apple 1 Replica IC's: Vintage IC’s Many Types See List NOS 74XXX Types - Apple I picture

Apple 1 Replica IC's: Vintage IC’s Many Types See List NOS 74XXX Types - Apple I

$20.00



Lot of 6 Vintage Apple Drawstring Bags For iPhone, Mac, Apple Watch, iPod picture

Lot of 6 Vintage Apple Drawstring Bags For iPhone, Mac, Apple Watch, iPod

$45.00



Vintage Fionaa Apple Mens T-Shirt picture

Vintage Fionaa Apple Mens T-Shirt

$18.90







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