03-30-2010 11:02 AM
I have many installed JRE's
and have the following Complier compliance levels
Can someone please explain the relationship between JRE's and complier compliance levels?
03-30-2010 04:20 PM
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.
03-30-2010 04:57 PM
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.
03-30-2010 05:00 PM
In Eclipse Plugin 1.1, they name the packs JREs. I think this is what he is seeing if I'm not mistaken.
03-30-2010 06:44 PM
See the following article for compliance levels:
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
03-31-2010 08:47 PM
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?