Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Developer
Posts: 16
Registered: ‎01-30-2010
My Device: 8310
My Carrier: rogers

Also confused between Installed JRE's and compiler compliance

I have many installed JRE's

JRE 4.3.0

JRE 4.5.0

JRE 4.6.0

JRE 4.6.1

JRE 4.7.0

JRE 5.0.0

components

jdk1.6.0_18

jre6

JVM

 

and have the following Complier compliance levels

1.3

1.4

1.5

1.6

 

Can someone please explain the relationship between JRE's and complier compliance levels?

 

Developer
Posts: 466
Registered: ‎03-04-2009
My Device: 8520
My Carrier: some

Re: Also confused between Installed JRE's and compiler compliance

JRE in this case means blackberry jde version. So it defines the the framework version and targets OS you are going to develop apps for.

 

Complier compliance level is java compiler setting which has different versions depending on jdk version. By switching to different compliance versions you can use the appropriate syntax in your code(java 5 level with generics , or minor versions for ex.). 

 

To develop for BlackBerry you should use 1.3 compiler level.

Got resolved! Press kudo icon!
Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Also confused between Installed JRE's and compiler compliance

I think when you say JRE you actually mean JDE. 

 

JRE usually means the Jave Runtime Environment, and is the runtime component of the Java level installed (i.e. what you need to run Java programs).  JDE is the Java Development Environment, which is a standalone IDE developed by RIM. 

 

Youcan install as many JDE levels as you like, you must use the version that matches or is 'older' than the target OS level.

Developer
Posts: 1,055
Registered: ‎01-25-2009
My Device: BlackBerry Bold 9650/BlackBerry Torch 9800

Re: Also confused between Installed JRE's and compiler compliance

Peter,

 

In Eclipse Plugin 1.1, they name the packs JREs. I think this is what he is seeing if I'm not mistaken.

Jerome Carty - Follow jcarty on Twitter@jcarty | #webworks-dev / #BlackberryDev on irc.freenode.net | My Apps
Click "Accept as Solution" if post solved your original issue.. Give like/thumbs up if you feel post is helpful
Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Also confused between Installed JRE's and compiler compliance

Oppss - ignore my comments.

Developer
Posts: 1,055
Registered: ‎01-25-2009
My Device: BlackBerry Bold 9650/BlackBerry Torch 9800

Re: Also confused between Installed JRE's and compiler compliance

TG_KG,

 

See the following article for compliance levels:

 

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800901/What_Is_-_Supp...

 

To set the compliance level, go to:

 

Window > Preferences > Java > Compiler

 

This can also be set on a per-project basis:

 

Right-Click top level of project > Properties > Java > Compiler

Jerome Carty - Follow jcarty on Twitter@jcarty | #webworks-dev / #BlackberryDev on irc.freenode.net | My Apps
Click "Accept as Solution" if post solved your original issue.. Give like/thumbs up if you feel post is helpful
Highlighted
New Developer
Posts: 16
Registered: ‎01-30-2010
My Device: 8310
My Carrier: rogers

Re: Also confused between Installed JRE's and compiler compliance

Please confirm if my understanding as follows is correct.

I choose the JRE within Eclipse depending on which BlackBerry device I am creating my app for.

 

As per Sonicboomboy, the compiler level should always be choosen as 1.3 to develop for BlackBerry.

 

Is this correct?