Robin Presto
Robin Presto

Reputation: 23

J2ME - LWUIT Java runtime exception - You must include the platform port before the LWUIT in the classpath>

Before you ask, yes I did see and try the solution here already.

But it didn't work. I keep getting the error. "You must include the platform port before the LWUIT in the classpath."

I am using Netbeans, JDK 1.6 (though J2ME isn't concerned with that I think) and I'm compiling to the Blackberry.

On a co-worker's PC, the app is compiling and running just fine. I checked everything, and every configuration of his matches mine. I even checked the order of the libraries' import. I compiled them in order of dependency just like the solution mentioned (all libraries, not just the LWUIT ones) but I still keep getting this error.

Upvotes: 0

Views: 297

Answers (2)

Shai Almog
Shai Almog

Reputation: 52745

The link you provided is the correct answer, review your classpath carefully and make sure that LWUIT is before the LWUIT4IO.

I suggest migrating to Codename One where this just doesn't happen.

Upvotes: 1

Ameer Moaaviah
Ameer Moaaviah

Reputation: 1526

Go to your project properties and include all optional packages and then give it a try.

Upvotes: 0

Related Questions