我已经能够在设备(N8)上运行我的应用程序一次。从那时起,当我启动它时,我总是收到 ClassNotFoundException。事情是这样的:
类未发现异常:
com.greencod.pinball.nokia.PinballMIDLet
在 java.lang.Class.forName 处
...rtCldc.loadApplicationClass 位于
...rt.jvm.loadApplicationClass 位于 ...
Invoker.handleStarRequest 位于
...l.rt.midp.MidleInvoker.run 在
java.lang.Thread.run
请注意,该应用程序在模拟器上运行良好。另外,它第一次运行是通过 eclipse 中的调试器。现在,调试器或普通安装不会生成可以运行的应用程序。我是诺基亚开发的新手,所以我一定是做了一些愚蠢的事情,我只是不知道是什么:)我正在使用 Symbian^3 SDK 0.9。
为了在手机上获取该应用程序,我从清单视图中单击“创建包”,这会为 2 个目标构建 jar/jad 文件:SymbianEmulator 和 SymbianDevice,这是我通过扫描 SDK 文件夹安装的。在我尝试通过将文件拖放到安装文件夹中、使用 eclipse 中的调试器以及计算机上的 Ovi 程序将文件上传到设备后。电话本身配置为接受未签名的应用程序。
我很迷失,欢迎任何帮助。
其他信息
Eclipse 正在为我构建 jad,所以我不确定这就是问题所在。这是 jad 文件:
MIDlet-1: Pinball Deluxe,,com.greencod.pinball.nokia.PinballMIDLet
MIDlet-Jar-Size: 1882
MIDlet-Jar-URL: Pinball-MIDLet.jar
MIDlet-Name: Pinball Deluxe MIDLet
MIDlet-Vendor: GreenCod
MIDlet-Version: 0.1.0
MicroEdition-Configuration: CLDC-1.1
MicroEdition-Profile: MIDP-2.1
Navi-Key-Hidden: true
Nokia-MIDlet-App-Orientation: portrait
Nokia-MIDlet-On-Screen-Keypad: no
这是我的类声明:
package com.greencod.pinball.nokia;
import javax.microedition.lcdui.Display;
import javax.microedition.midlet.MIDlet;
public class PinballMIDLet extends MIDlet { ... }
I have been able to run my app exactly ONCE on the device (N8). Since then I always get a ClassNotFoundException when I launch it. It goes like this:
ClassNotFoundException:
com.greencod.pinball.nokia.PinballMIDLet
at java.lang.Class.forName at
...rtCldc.loadApplicationClass at
...rt.jvm.loadApplicationClass at ...
Invoker.handleStarRequest at
...l.rt.midp.MidleInvoker.run at
java.lang.Thread.run
Note that the app runs fine on the emulator. Also, the first time that it ran was througth the debugger in eclipse. Now the debugger or a plain install doesn't produce an app that can run. I am new to Nokia development, so I must be doing something stupid, I just don't know what :) I am using the Symbian^3 SDK 0.9.
To get the application on the phone, I click 'create package' from the manifest view, which build the jar/jad files for 2 targets: SymbianEmulator and SymbianDevice, which I installed by scanning the SDK folder. After I have tried uploading the file to the device by dropping it in the Install folder, by using the debuger in eclipse and with the Ovi program on my computer. The phone itself is configured to accept unsigned application.
I am quite lost and any help is welcome.
Additional Info
Eclipse is building the jad for me, so I'm not sure that is the problem. Here is the jad file:
MIDlet-1: Pinball Deluxe,,com.greencod.pinball.nokia.PinballMIDLet
MIDlet-Jar-Size: 1882
MIDlet-Jar-URL: Pinball-MIDLet.jar
MIDlet-Name: Pinball Deluxe MIDLet
MIDlet-Vendor: GreenCod
MIDlet-Version: 0.1.0
MicroEdition-Configuration: CLDC-1.1
MicroEdition-Profile: MIDP-2.1
Navi-Key-Hidden: true
Nokia-MIDlet-App-Orientation: portrait
Nokia-MIDlet-On-Screen-Keypad: no
And here is my class declaration:
package com.greencod.pinball.nokia;
import javax.microedition.lcdui.Display;
import javax.microedition.midlet.MIDlet;
public class PinballMIDLet extends MIDlet { ... }
发布评论
评论(1)
已解决: 诺基亚论坛。基本上问题是项目的 build.properties 被搞乱了。
It has been solved: nokia forums. Basically the problem was that the build.properties of the project were messed up.