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


HealthKit 4802 Computer Oscilloscope Heath Computer Systems picture

HealthKit 4802 Computer Oscilloscope Heath Computer Systems

$120.00



Schneider PLC TWIDO TM2AMM6HT ANALOGUE I/O MODULE 20mA 24VDC Missing Terminal picture

Schneider PLC TWIDO TM2AMM6HT ANALOGUE I/O MODULE 20mA 24VDC Missing Terminal

$156.00



SCHNEIDER Twido TWDAMI2HT Analog 2 in 0-10v, 4-20ma Module PLC Modicon picture

SCHNEIDER Twido TWDAMI2HT Analog 2 in 0-10v, 4-20ma Module PLC Modicon

$119.99



SCHNEIDER Twido TW2AMI2HT Analog 2 in 0-10v, 4-20ma Module PLC Modicon picture

SCHNEIDER Twido TW2AMI2HT Analog 2 in 0-10v, 4-20ma Module PLC Modicon

$119.99



Computer Boards CIO-DAS1602/16 DAQ Card, 8-bit ISA, 16-Ch 16-Bit 100Khz with I/O picture

Computer Boards CIO-DAS1602/16 DAQ Card, 8-bit ISA, 16-Ch 16-Bit 100Khz with I/O

$600.00



Measurement Computing 197728B USB 1608HS-2A0 16-Channel Digital DAQ +2 Analog picture

Measurement Computing 197728B USB 1608HS-2A0 16-Channel Digital DAQ +2 Analog

$487.50







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