BlackBerryForums.com : Your Number One BlackBerry Community      

»Sponsored Links



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

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
   
Reply With Quote
Sponsored Links
Please Login or Register to Remove these Advertisements!

  (#2 (permalink)) Old
richard.puckett Offline
Talking BlackBerry Encyclopedia
 
richard.puckett's Avatar
 
Posts: 212
Join Date: Oct 2007
Location: Seattle, WA
Model: 8800
PIN: N/A
Carrier: AT&T
Default 07-03-2008, 02:19 PM

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.
   
Reply With Quote
  (#3 (permalink)) Old
sday Offline
New Member
 
Posts: 6
Join Date: Jul 2008
Model: 8700c
PIN: N/A
Carrier: Cingular
Default 07-03-2008, 02:40 PM

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."
   
Reply With Quote
  (#4 (permalink)) Old
sday Offline
New Member
 
Posts: 6
Join Date: Jul 2008
Model: 8700c
PIN: N/A
Carrier: Cingular
Default 07-03-2008, 03:23 PM

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]
   
Reply With Quote
  (#5 (permalink)) Old
sday Offline
New Member
 
Posts: 6
Join Date: Jul 2008
Model: 8700c
PIN: N/A
Carrier: Cingular
Default 07-03-2008, 03:27 PM

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
   
Reply With Quote
Reply


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-2008 BlackBerryNews.com, BlackBerryFAQ.com, BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of Research In Motion Limited.
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.1