Justin Dearing
Justin Dearing

Reputation: 14948

Using HttpCore from a blackberry

I am trying to port an android app to run on a blackberry 8800. One of the classes makes http requests through apache HttpCore.

I get the following error:

The type java.lang.reflect.Type cannot be resolved. It is indirectly referenced from required .class files

ProjectFoo-BBerry/src/com/projectfoo/ws/rest/ProjectFooClient.java (line 1)

Is reflections not available on the blackberry? Is there something I need to enable in eclipse? I have not programmed extensively in Java.

Upvotes: 0

Views: 177

Answers (2)

Marc Novakowski
Marc Novakowski

Reputation: 45398

Yes, as Ben noted there are limitations in J2ME and furthermore, the networking and HTTP stacks on BlackBerry devices is somewhat primitive compared to other mobile APIs, in that you have to do a lot of the "plumbing" yourself - selecting transports and configuring them correctly. This is becoming a bit easier with the 5.0 API but most devices are still pre-5.0.

Upvotes: 1

Ben Grabkowitz
Ben Grabkowitz

Reputation: 216

Reflection isn't available on J2ME platforms. Look for another way to accomplish your task.

Upvotes: 3

Related Questions