使用J2ME的仿真器没有问题,使用S60仿真器出错。

来源:互联网 发布:python 多线程 lock 编辑:程序博客网 时间:2024/05/29 04:23
问题:
使用J2ME的仿真器没有问题,使用S60仿真器出错。
但是新建一个项目,把所有的源代码拷贝过去,使用S60仿真器也没有问题。
提示如下:
Failed to launch the emulator failed.
Caught exception:
java.lang.RuntimeException:command failed with Symbian error code:-30472
使用J2ME的仿真器没有问题,使用S60仿真器出错。 - 冷月无声 - 冷月无声的博客
 
解决:
项目下 nbproject 文件夹中 project.properties 文件的问题,替换掉即可。
project.properties 文件中有一项内容如下:
file.reference.builtin.ks=${netbeans.user}/config/j2me/builtin.ks
可能就是他引起的问题。

>
> Maybe easier solution - your WTK emulator points to the old location
> because you imported the setting from your old userdir. If you
> uninstalled/deleted the old userdir then it points to unexisting emulator.
> You can solve it by remove of the emulator platform from IDE (Tools | Java
> Platform Manager) and restart the IDE. It should install the bundled
> platform (WTK2.2) to your userdir and add it to Java Platform Manager
> again.

浪费了整整一天的时间!!
0 0