BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 04-11-2007, 03:02 PM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Sep 2006
Model: 8700c
Carrier: Cingular
Posts: 32
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Java versions & RIM JDE

Please Login to Remove!

Wow am I confused. I'm getting the following error message trying build a projectct:

C:\Documents and Settings\Karl\Personal Data\BB_Java development\KvV\Utils\UI\MCInputField.java:29: generics are not supported in -source 1.3
(try -source 1.5 to enable generics)

1) Is switching to java 1.5 even an option, given that I'm building to a BB running 4.1.0 OS?? Or does that lock me into an older version of Java?

2) I'm running with JDE 4.1.0, and JDK / J2SE 1.5.0 - wouldn't this mean that I SHOULD be linking to source 1.5 already?

3) If it's a simple matter of switching a config or build option in the JDE to link to the 1.5 API -- where the &^%$%^! do you find that????

Many thanks
Offline  
Old 04-11-2007, 03:23 PM   #2 (permalink)
Thumbs Must Hurt
 
Join Date: Feb 2007
Model: 8100
Carrier: T-Mobile
Posts: 54
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

I had this same issue when I began developing. I mistakenly thought that the compilation process would "convert" 1.5 structures to 1.4 compatible versions for the RIM JDE. I use Eclipse, but I created a JRE that included the rim.jar. If you develope using that as your JRE, you'll find that you can't use 1.5 generics or structures at all. Keep in mind, that your code gets compiled against the JDE Java classes (and versions thereof). It knows nothing of generics, or how to "convert" them to RIM JDE compatible versions.

Hope this helps.

mw
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.