Hi!
With respect to ClassNotFoundException on BlackBerry handsets I experienced the same and resolved it with a BlackBerry specific build of the Kuix framework.
(I use the BlackBerry JDE side-by-side with Netbeans but I build my BlackBerry apps using the JDE. It just makes life easier when deploying. Anyway, to get to the point:....)
Tofu is right when saying:
Those exceptions come from the platform auto-detection.
When you are building specifically for BlackBerry you don't need to auto-detect the platform (coz you know you are building for BlackBerry). Therefore it makes sense to remove the platform detection code from the KuixCanvas class.
Here's how I did it (Be advised - you are doing this at your own risk. Back up before you try this!)
OPEN:
org.kalmeo.kuix.core.KuixCanvas;
FIND METHOD:
getPlatform();
DO:
Remove all try{}catch() blocks that contains Class.forName("nothingToDoWithBlackBerry") - where nothingToDoWithBlackBerry=classNames that are used to detect Non-BB platforms.
This is what my new getPlatform method looks like:
/**
* Returns mobile phone platform
*
* @return name mobile phone platform
*/
private String getPlatform() {
return KuixConstants.PLATFORM_BLACKBERRY;
}
Worked for me and tested and several BB handsets.
Let me know if there was a better way of doing this.
Friendly greetings from Sunny South Africa!
PS. If you haven't yet bought a Kuix license please consider doing so ASAP. We need to support this project. It is possibly the best effort at a portable GUI for J2ME around. I have tried many and nothing compares. Buy a license!