BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 07-03-2008, 02:58 PM   #1 (permalink)
New Member
 
Join Date: Jul 2008
Model: 8700c
PIN: N/A
Carrier: Cingular
Posts: 6
Post Thanks: 0
Thanked 0 Times in 0 Posts
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, 03:19 PM   #2 (permalink)
Talking BlackBerry Encyclopedia
 
richard.puckett's Avatar
 
Join Date: Oct 2007
Location: Seattle, WA
Model: 9020
PIN: N/A
Carrier: T-Mobile
Posts: 212
Post Thanks: 0
Thanked 0 Times in 0 Posts
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, 03:40 PM   #3 (permalink)
New Member
 
Join Date: Jul 2008
Model: 8700c
PIN: N/A
Carrier: Cingular
Posts: 6
Post Thanks: 0
Thanked 0 Times in 0 Posts
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, 04:23 PM   #4 (permalink)
New Member
 
Join Date: Jul 2008
Model: 8700c
PIN: N/A
Carrier: Cingular
Posts: 6
Post Thanks: 0
Thanked 0 Times in 0 Posts
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, 04:27 PM   #5 (permalink)
New Member
 
Join Date: Jul 2008
Model: 8700c
PIN: N/A
Carrier: Cingular
Posts: 6
Post Thanks: 0
Thanked 0 Times in 0 Posts
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


Thread Tools

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





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