1

Using JRE 5.0.0:

import net.rim.device.api.util.StringProvider;

http://www.blackberry.com/developers/docs/5.0.0api/net/rim/device/api/util/StringProvider.html

What am I missing?

daniel
  • 9,732
  • 7
  • 42
  • 57
  • Are you sure JRE 5 is actually enabled in your project? Are you able to import other classes from `net.rim.device.api.util`? – Remy Lebeau Feb 24 '12 at 06:49
  • 1
    see this link: http://www.blackberry.com/developers/docs/5.0.0api/net/rim/device/api/util/package-summary.html. In this link there is no "StringProvider" class in Version 5.0; It is from Version 6.0. I am not saying that your provided link is fake one; I am surprise one about your provided url; Better to put this question in http://supportforums.blackberry.com/t5/Java-Development/bd-p/java_dev link also; – alishaik786 Feb 24 '12 at 08:07
  • 1
    Yeah, that link is wrong. I just thought trusting blackberry in this case made sense....guess I was wrong. – daniel Feb 24 '12 at 21:28
  • @alishaik786: you should post your comment as an Answer to get credit for it. And yes, looking at the 6.0 and 7.0 docs show that `StringProvider` was added in 6.0, not 5.0. – Remy Lebeau Feb 25 '12 at 01:05
  • Goodness gracious; I came across the same link trying into solve my down porting of my version 6.0 app. Does anyone know what going on here. – Sydwell Aug 19 '12 at 11:47
  • Error in the docs. StringProvides is 6.0 only – daniel Aug 30 '12 at 04:25

2 Answers2

2

see this link:

Package net.rim.device.api.util

In this link there is no "StringProvider" class in Version 5.0; It is from Version 6.0. I am not saying that your provided link is fake one; I am surprise one about your provided url; Better to put this question in Blackberry supportforums:

BlackBerry® Support Community Forums

link also;

alishaik786
  • 3,696
  • 2
  • 17
  • 25
1

I'm guessing you've imported one of RIM's examples or created one of the default "Hello World" apps using the BlackBerry eclipse plugin. Unfortunately RIM's code has errors.

StringProvider does not exist in JRE5, try changing it to StringBuffer.

donturner
  • 17,867
  • 8
  • 59
  • 81