在模拟器黑莓BrowserField错误 [英] Blackberry BrowserField error in Simulator

查看:194
本文介绍了在模拟器黑莓BrowserField错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新黑莓开发和进出口试图简单获得BrowserField工作。

I am new to Blackberry development and Im trying to simple get a BrowserField working.

我得到这个errormessage的:

I get this errormessage:

尝试重新安装JDE等等,等等,但应用程序总是能够当我在模拟器上运行它的错误..
任何想法?

Tried reinstalling JDE etc. etc. but the app always gets an error when I run it on the simulator.. Any ideas?

下面是我的code:

package mypackage;

import net.rim.device.api.browser.field2.BrowserField;
import net.rim.device.api.ui.UiApplication;
import net.rim.device.api.ui.container.MainScreen;

/**
 * This class extends the UiApplication class, providing a graphical user interface.
 */
public class HelloBlackBerry extends UiApplication {
    private MainScreen _screen;
    private BrowserField _bf2;

    HelloBlackBerry()  
    {       
        _bf2 = new BrowserField();

        _screen = new MainScreen();
            _screen.add(_bf2);
        pushScreen(_screen);

        _bf2.requestContent("http://www.blackberry.com");
    }

    public static void main(String[] args) 
    {
        HelloBlackBerry app = new HelloBlackBerry();        
        app.enterEventDispatcher();        
    }
} 

我没有BlackBerry设备尚未上测试。

I do not have a Blackberry device to test on yet.

推荐答案

通常情况下,使移动数据系统连接服务(又名MDS-CS)将已经解决了这个 BUT 的MDS-CS版本提供与JRE 7.0.0(9930模拟器)是不正确!原帖黑莓的论坛,可以发现<一个href=\"http://supportforums.blackberry.com/t5/Java-Development/MDS-not-working-on-OS-7-0-simulator-9930/td-p/1414725\"相对=nofollow>这里。

Normally, enabling the Mobile Data System Connection Service (aka MDS-CS) would have solved this BUT the MDS-CS version supplied with JRE 7.0.0 (9930 simulator) is incorrect! The original post on BlackBerry's forums can be found here.

根据这个帖子:

MDS-CS仿真器的版本不正确被列入7.0。要纠正它,你可以删除它,从6.0复制版本。

An incorrect version of MDS-CS simulator was included in 7.0. To correct it you can delete it and copy the version from 6.0.

删除从JRE 7.0.0无效的MDS版本,并与JRE 6.0.0一个替代它固定为我BrowserField问题。不要忘记关闭并重新运行该模拟器reruning应用程序之前。

Deleting the invalid MDS version from JRE 7.0.0 and replacing it with the one from JRE 6.0.0 fixed the BrowserField issue for me. Don't forget to close and rerun the simulator and before reruning the application.

这里是我原来的答复的链接。

Here is a link to my original answer.

这篇关于在模拟器黑莓BrowserField错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆