1

I downloaded the BlackBerry advanced UI package, but when I try to build it I get the following errors:

Errors running builder 'BlackBerry Pre-Process Builder' on project 'Advanced UI'.
org.eclipse.jdt.internal.launching.StandardVM cannot be cast to net.rim.ejde.A.J.M

I'm using:
- Eclipse 3.5
- Blackberry SDK 5.0.0.25 - Windows 7

Any idea on what could be the issue?

Michael Donohue
  • 11,776
  • 5
  • 31
  • 44
Irwin
  • 12,551
  • 11
  • 67
  • 97

4 Answers4

3

You probably have the wrong JRE set in your project properties. You need to set it to the BlackBerry JRE 5 or 6.

Project Properties->Java Build Path-> Libraries Tab -> Double Click JRE System Library

Select proper JRE.

Rebuild.

Russell Zornes
  • 706
  • 6
  • 18
2

Some classes from that package use preprocessor directives.

It turns out preprocessor directives are not supported by earlier versions of the Eclipse plugin, but version 1.0.0.67 and later are configured correctly by default. Earlier Eclipse plugin versions can be enable preprocessing by editing the config files manually.

RIM also explains how to manually edit the config file to enable preprocessing.

Community
  • 1
  • 1
Vit Khudenko
  • 28,288
  • 10
  • 63
  • 91
  • 2
    I edited the answer to clarify that these links are for older plugins. The linked SO question is over a year old, for example. You shouldn't need to do this if you downloaded your Eclipse plugin recently. – Michael Donohue Nov 25 '10 at 03:24
0

Something wrong with your developing environment. Based on your error message, I think it's about your builder. Configure it in your project preferences.

Xiangdong
  • 254
  • 2
  • 10
0

this was fixing it in my case.. add it to config.ini

osgi.framework.extensions=org.eclipse.mtj.core.hooks,net.rim.ejde
Steve Czetty
  • 6,147
  • 9
  • 39
  • 48
Mahammad
  • 1
  • 1