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

New Developer
Posts: 40
Registered: ‎09-23-2008
My Device: Not Specified

new developer - Blackberry Java won't compile

When I try to compile the Rim samples, I get this error.


javac: invalid flag: -source


How do I fix it.  How do I control which java version the RIM enviroment is using?  (I have several JDKs installed on my machine.)




BlackBerry Development Advisor
Posts: 15,693
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: new developer - Blackberry Java won't compile

This link lists the JDK versions supported by the various BlackBerry JDE versions.


What Is – Supported versions of Java for different BlackBerry JDE versions
Article Number: DB-00568



Please ensure your PATH and JAVA_HOME environment variables point to the appropriate JDK version.


How To - Update the Path environment variable
Article Number: DB-00507


Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker