You must include the platform port before the LWUIT in the classpath runtime exception

后端 未结 1 1482
南旧
南旧 2020-12-21 14:43

I recently started using LWUIT. Great job and great program. I\'m using Netbeans 6.9.1, S60 SDK and the webstart version of LCWUIT.

The first problem I faced was tha

相关标签:
1条回答
  • 2020-12-21 14:55

    I shall answer my own post:

    The problem was that in the UI jar I was including. LWUIT comes with 2 "sets" of UI.jar. The generic one which is in LWUIT\UI folder and the platform specific ones which are in the LWUIT\Ports folder.The generic one is being used as "parent" project containing all the common code,however if you MUST import the .jar file which is for your platform. As readme file says:

    While these projects will compile easily they will be useless for any purpose since they don't include the binding glue for the platform, to use the platform one needs to use the appropriate projects underneath the specific ports directory to a given platform.

    While I was recompiling the library in order to remove Transitions3D.java file, I recompiled (and then imported ) the generic UI.jar. The correct thing to do is compile, the parent project (the generic UI.jar) THEN compile the port specific library (in my case the LWUIT\ports\MIDP\UI.jar) and then import it in your project and you are done.

    0 讨论(0)
提交回复
热议问题