Recommended Posts

I'm currently trying to work on a little J2ME application using the J2ME Polish Windowing Toolkit. I use the latest Eclipse version and the EclipseME 1.5.0 plugin.
After I created a J2ME Suite and a little demo application it compiles perfectly(So, it can see J2ME-Polish packages), but after creating a JAR of the entire suite, the J2ME jars appear to be missing in the final product.
After I then execute the app in the emulator, I obviously get a ClassNotFound exception.
The J2ME Polish IS in the workspace under the project(Holding only 1 JAR, namely 'enough-j2mepolish-build.jar'), as a user library(With all the corresponding JARs in it), and after selecting Properties of the project -> build Path -> Export and Order, it IS ticked.
What do I have to do to make this library end up in my final JAR? Because without it, I can't ship it or test it.
Toolmaker

Share this post

Link to post

Share on other sites

Create a new project in the workspace and put the class files in it's bin directory. Then in your original's project "Java Build Path" setting you go to the "Projects" tab and add the new J2ME Polish project. Then in the "Order and Export" tab make sure the new project is checked. That should do it (I think... my Eclipse-fu is not that strong).