Blackberry MDS 模拟器 - 无法在模拟器中连接到互联网

发布于 2024-08-29 03:51:05 字数 536 浏览 9 评论 0原文

我正在尝试通过黑莓模拟器对网站进行一些测试,虽然模拟器工作正常,但我无法访问黑莓浏览器中的任何网站。

这是我正在使用的具体设置。

  • 我是 Windows 7(64 位)家庭版
  • 我有最新的(当时)MDS 安装 - BlackBerry 电子邮件和 MDS 服务模拟器 4.1.4
  • 最后,我有最新的(当时)黑莓模拟器 - BlackBerry 智能手机模拟器5.0.0 (5.0.0.442) - 9700

我首先启动MDS服务,它会短暂弹出命令提示符,然后将其关闭。我假设当它这样做时,它启动了 MDS 服务。然后我打开 Blackberry 模拟器 (9700),它可以正常打开并加载 Blackberry 操作系统。然后,黑莓操作系统全部加载完毕后,我导航到浏览器,例如输入 www.google.com,然后在底部只显示“发送请求”并加载大约一分钟。然后超时并说找不到连接。

有人对我缺少的东西有什么想法吗?或者,有谁知道黑莓的在线模拟器,因为到目前为止,这对于黑莓上的测试网站来说是一个巨大的痛苦。

谢谢你! 本

I'm trying to do some testing of a website through the Blackberry simulator, while the simulator works fine, I can't get to any sites in the Blackberry Browser.

Here is the specific setup I'm using.

  • I'm Windows 7 (64-bit) Home Edition
  • I have the latest (at the time) MDS installation - BlackBerry Email and MDS Services Simulators 4.1.4
  • Finally, I have the latest (at the time) Blackberry Simulator - BlackBerry Smartphone Simulators 5.0.0 (5.0.0.442) - 9700

I first start the MDS service, it briefly pops up the command-prompt and then closes it. I'm assuming that when it does that, it started the MDS service. Then I open the Blackberry simulator (9700), which opens up fine and loads the Blackberry OS. Then with the Blackberry OS all loaded up, I navigate to the browser and for example type www.google.com and then at the bottom it just says "sending request" and loads for about a minute. Then times out and says it can't find a connection.

Anyone have any thoughts on what I'm missing? Or, does anyone know of an online simulator for the Blackberry, because thus far this has been a huge pain for testing sites on a Blackberry.

Thank you!
Ben

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(14

银河中√捞星星 2024-09-05 03:51:24

我已经成功了,我做了什么......
(Windows 7-64 位)

a) 确认我的 Java 环境变量:
JAVA_HOME=....\Java\jdk1.6.0_24
JDK_DIR=...相同...
JDK_ROOT=...相同...
JRE_HOME=...\Java\jre6
(不同的东西需要不同的变量...)

b) 将“BlackBerry_JDE_6.0.0.0.exe”安装到非魔法位置(E:\Emulators)

c) 启动开始菜单项“MDS-CS”
命令窗口保持打开状态,它正在记录通信事件。

d) 启动开始菜单项“Device Simulator”

“BlackBerry 9800 Simulator”启动。然后我启动浏览器并连接到“www.google.com”,

一切都以普通用户身份启动(无管理员权限)。

I have it working, what I did....

(Windows 7-64bit)

a) confirmed my Java environment vars:

JAVA_HOME=....\Java\jdk1.6.0_24

JDK_DIR=...same...

JDK_ROOT=...same...

JRE_HOME=...\Java\jre6

(different things need different vars...)

b) installed the "BlackBerry_JDE_6.0.0.0.exe" to non-magic location (E:\Emulators)

c) launched the start-menu item "MDS-CS"

The command window stays open, it is logging the comm events.

d) launched the start-menu item "Device Simulator"

The "BlackBerry 9800 Simulator" launched. I then started the browser and connected to "www.google.com"

Everything was launched as a regular user (no admin privs).

不…忘初心 2024-09-05 03:51:23
  1. 首先按照此处的步骤操作:http://supportforums.blackberry.com/t5/Testing-and-Deployment/BlackBerry-MDS-Simulator-does-not-launch/ta-p/446126

  2. 然后以管理员身份运行 cmd.exe 并转到 MDS 目录并运行“run.bat”文件:

在 cmd 提示符下键入,

cd C:\Program Files\Research In Motion\BlackBerry 电子邮件和 MDS
服务模拟器4.1.4\MDS

然后输入,

run.bat

然后按 Enter
MDS 模拟器将开始运行。然后您可以打开手机的模拟器,它应该会自动连接到互联网。

  1. follow steps here first: http://supportforums.blackberry.com/t5/Testing-and-Deployment/BlackBerry-MDS-Simulator-does-not-launch/ta-p/446126

  2. then run cmd.exe as Administrator and Go to MDS directory and run the "run.bat" file:

type at cmd prompt,

cd C:\Program Files\Research In Motion\BlackBerry Email and MDS
Services Simulators 4.1.4\MDS

then type,

run.bat

and press enter
The MDS simulator will start running. Then you can open the simulator for the phone and it should work automatically to connect to internet.

梦一生花开无言 2024-09-05 03:51:23

我遵循了上述所有建议,但 MDS 仍然没有启动!

出了什么问题?我安装了 J2EE (java_ee_sdk-5_01-windows.exe) 而不是 J2SE (jdk-6u26-windows-i586.exe),后者的 MDS 工作正常。

这个安装让我度过了糟糕的一天和糟糕的一夜。

I followed all of the above advisals, but MDS didn't still start!

What was wrong? I had installed J2EE (java_ee_sdk-5_01-windows.exe) instead of J2SE (jdk-6u26-windows-i586.exe), with the latter MDS worked properly

This installation lost me one awful day and a terrible night.

桃酥萝莉 2024-09-05 03:51:22

如果您在启动 MDS 之前启动模拟器,则会创建一些 .dmp 文件,这些文件似乎会阻碍设备模拟器和 MDS 之间的连接。尝试从模拟器目录中删除 .dmp 文件,看看是否有帮助。

If you started the simulator before starting MDS then it creates some .dmp files that appear to impede the connection between the device simulator and MDS. Try deleting the .dmp files from the simulator directory and see if that helps.

双马尾 2024-09-05 03:51:22

我刚刚花了 2 天的时间尝试了网上有关 MDS 的各种提示(有很多),但没有一个对我有帮助。

对我来说,解决方案是在 Eclipse 中启动模拟器时关闭网络注册

(发布以防有人遇到我的问题谷歌到此页面)

I just spent 2 days trying various of the tips online about MDS (and there are many) but none helped me.

For me, the solution was to turn off network registration upon simulator launch in eclipse.

(posted in case someone with my problem googles to this page)

韵柒 2024-09-05 03:51:22

对于那些可能仍然遇到问题的人,我发现这是最简单、最简单的解决方案:

  1. 将已安装的 MDS 文件夹复制到 Program Files 之外的某个位置(例如 c:\blackberry\mds")

  2. 确保您有一个 JAVA_HOME 环境变量指向安装 Java SDK 的目录的根目录。

For those of you who might still have issues, I found this to be the simplest, easiest solution:

  1. Copy the installed MDS folder to somewhere outside of Program Files (e.g. c:\blackberry\mds")

  2. Make sure you have a JAVA_HOME environment variable pointing to the root of the directory where your Java SDK is installed.

水中月 2024-09-05 03:51:21

当您启动 MDS 模拟器时,它应该打开一个命令提示符窗口并保持打开状态。如果它立即关闭,那么您的环境有问题 - 也许 Java 二进制文件不在您的路径中?

When you start up the MDS simulator it should open a command prompt window and stay open. If it's closing immediately then there is something wrong with your environment - perhaps the Java binaries aren't in your path?

世界等同你 2024-09-05 03:51:21

我在 Windows 64 位上尝试此操作并遇到了同样的问题 - 该服务将启动然后立即退出。事实证明,该错误是由于无法在 C:\Program Files (x86)\Research In Motion\BlackBerry Email and MDS Services Simulators 4.1.2 下创建 /logs 目录引起的。

我的解决方案是将该目录的权限更改为“完全控制”,然后服务就可以启动。如果您重新启动设备模拟器,您终于可以浏览网页了。

I was trying this on Windows 64-bit and had the same problem - the service would launch and then immediately exit. Turns out the error was caused by being unable to create a /logs directory under C:\Program Files (x86)\Research In Motion\BlackBerry Email and MDS Services Simulators 4.1.2.

My solution was to change the permission on that directory to be "Full Control", then the service can start. If you then restart the Device Simulator you can finally browse the web.

望笑 2024-09-05 03:51:21

人们必须花费很多时间来解决这个问题。我只花了一些钱,所以我希望我的解决方案对你们所有人都有用。

我做了设置环境变量的事情。

我使用 4.1.4 和 JDK 1.6

WIndows 64 位

从 C:\Program Files (86x) 卸载 MDS 程序

在其他地方安装。我以管理员身份安装在桌面上。

我不知道环境变量是否有帮助,但 MDS 在我以管理方式安装在桌面上后立即工作。

Many hours of peoples life must be wasted trying to figure this one out. I just spent a few so I hope my solution works for you all.

I did the set Environmental Variable thing.

I use 4.1.4 and JDK 1.6 something

WIndows 64bit

Uninstall MDS program from C:\Program Files (86x)

Install elsewhere. I installed on my desktop as administrator.

I don't know if the Environmental Variable thing helped but MDS worked right after I installed administratively on the desktop.

我很坚强 2024-09-05 03:51:20

这就是我解决问题的方法:

  1. BlackBerry Java Plugin (Eclipse IDE) 位于 C 以外的目录(Windows 目录)中。该软件包包括用于开发 BB 应用程序的 eclipse IDE、BB 模拟器和 MDS

  2. 您可以从以下位置运行 MDS:D:\Eclipse_BB\plugins\net.rim.ejde.componentpack6.0.0_6.0.0.30\components \MDS

  3. 只需双击“run.bat”文件。等待该过程完成。最后你应该得到像这样的东西

MDS截屏

  1. 现在,你可以从这个位置运行模拟器
    D:\Eclipse_BB\plugins\net.rim.ejde.componentpack6.0.0_6.0.0.30\components\simulator

  2. 只需双击“9800.bat”即可。该bat文件的名称可能因模拟器类型而异。

如果仍然无法连接互联网,MDS的默认端口可能已被其他软件使用。
您可以通过浏览器打开以下地址进行测试:http://127.0.0.1:8080/< br>
正常情况下应该会出现这样的结果

Screenshot

如果不是这种情况,您可以尝试更改端口号通过编辑此位置的“rimpublic.property”文件:
D:\Eclipse_BB\plugins\net.rim.ejde.componentpack6.0.0_6.0.0.30\components\MDS\config

将“WebServer.listen.port=8080”替换为“WebServer.listen.port=8000”或其他端口号码(例如 8081、8082 等)

This is what I did to solve the problem:

  1. Install from BlackBerry Java Plugin (Eclipse IDE) in the directory other than C (Windows directory). This software package includes eclipse IDE for developing BB application, the BB simulator and MDS

  2. You can run the MDS from this location D:\Eclipse_BB\plugins\net.rim.ejde.componentpack6.0.0_6.0.0.30\components\MDS

  3. Just double click "run.bat" file. Wait until the process is finished. In the end you should get something like this

MDS screenshot

  1. Now, you can run the simulator from this location
    D:\Eclipse_BB\plugins\net.rim.ejde.componentpack6.0.0_6.0.0.30\components\simulator

  2. Just double click "9800.bat". the name of this bat file can vary depends on the simulator type.

If you still can't connect to the internet, the default port of MDS may have been used by another software.
You can test it from your browser by opening this address: http://127.0.0.1:8080/
The normal condition should result in something like this

Screenshot

If this isn't the case, you can try to change the port number by editing "rimpublic.property" file at this location:
D:\Eclipse_BB\plugins\net.rim.ejde.componentpack6.0.0_6.0.0.30\components\MDS\config

Replace "WebServer.listen.port=8080" with "WebServer.listen.port=8000" or other port number (e.g 8081, 8082, etc)

两仪 2024-09-05 03:51:20

(我使用的是 BlackBerry Email and MDS Services Simulator Package 版本 4.1.4,从此处下载: https://www.blackberry.com/Downloads/browseSoftware.do。我运行的是 Windows 7。)

当您单击开始菜单中的 MDS 时,它会运行一个批处理文件:C:\ Program Files\Research In Motion\BlackBerry Email and MDS Services Simulators 4.1.4\MDS\run.bat

编辑此文件并将 !BMDS_CLASSPATH!;!BMDS_CLASSPATH2! 替换为 % BMDS_CLASSPATH%;%BMDS_CLASSPATH2%

此外,您需要以管理员身份运行该批处理文件。

我尝试将 run.bat 的快捷方式更改为“以管理员身份运行”,但由于某种原因,这不起作用。我最终制作了自己的批处理文件,其中包含以下内容:

C:
cd "C:\Program Files\Research In Motion\BlackBerry Email and MDS Services Simulators 4.1.4\MDS"
run.bat

我创建了批处理文件的快捷方式并将该快捷方式设置为“以管理员身份运行”。我不太确定为什么会这样,但确实如此。

(I'm using the BlackBerry Email and MDS Services Simulator Package version 4.1.4, downloaded from here: https://www.blackberry.com/Downloads/browseSoftware.do. I'm running Windows 7.)

When you click on MDS in your start menu, it's running a batch file: C:\Program Files\Research In Motion\BlackBerry Email and MDS Services Simulators 4.1.4\MDS\run.bat

Edit this file and replace !BMDS_CLASSPATH!;!BMDS_CLASSPATH2! with %BMDS_CLASSPATH%;%BMDS_CLASSPATH2%.

Also, you need to run that batch file as an administrator.

I tried changing the shortcut to run.bat to "Run as administrator", but for some reason that didn't work. I ended up making my own batch file that contains this:

C:
cd "C:\Program Files\Research In Motion\BlackBerry Email and MDS Services Simulators 4.1.4\MDS"
run.bat

I made a shortcut to my batch file and set that shortcut to "Run as administrator". I'm not quite sure why that works, but it does.

打小就很酷 2024-09-05 03:51:20

启动MDS模拟器的批处理文件需要设置环境变量JAVA_HOME
如果该变量尚未设置或未指向有效的 Java 安装,MDS Simulator 将退出。

它应该指向 JDK 或 JRE 安装路径 - 例如 C:\Program Files\Java\jre6

您可以通过输入 set JAVA_HOME=C:\Program Files\Java 在命令行上测试它\jre6 在执行 MDS run.bat 之前

The batch file starting the MDS simulator requires the environment variable JAVA_HOME to be set.
If this variable has not been set or does not point to a valid Java installation the MDS Simulator just quits.

It should point to the JDK or JRE installation path - e.g. C:\Program Files\Java\jre6

You can test this on command line by entering set JAVA_HOME=C:\Program Files\Java\jre6 before executing the MDS run.bat

洋洋洒洒 2024-09-05 03:51:19

当您想通过模拟器访问互联网时,需要打开 MDS。

在运行配置设置中激活使用模拟器启动移动数据系统连接服务 (MDS-CS)

如果 MDS 窗口关闭(控制台应用程序),这可能是因为您的 JDK 安装有问题。

确保 JDK 位于您的 Windows 路径中。

这是 eclipse 中的屏幕截图。

替代文本 http://livinloud.ca/documents/MDS.jpg

The MDS needs to be open when you want to access internet through your Simulator.

In the run configuration setup activate Launch Mobile Data System Connection Service (MDS-CS) with simulator

If the MDS window closes ( the console app ) this is probably because you have a problem with your JDK installation.

Make sure the JDK is in your windows Path.

Here is a screenshot in eclipse.

alt text http://livinloud.ca/documents/MDS.jpg

|煩躁 2024-09-05 03:51:18

我以“以管理员身份运行”启动 cmd.exe,然后输入
cd "C:\Program Files\Research In Motion\BlackBerry Email and MDS Services Simulators 4.1.4\MDS"

然后

run.bat

,现在 MDS Simulator 4.1.4 可以正常工作。

需要管理员权限才能运行

I started cmd.exe as "Run as Administrator" and then entered
cd "C:\Program Files\Research In Motion\BlackBerry Email and MDS Services Simulators 4.1.4\MDS"

then

run.bat

and now i have the MDS Simlator 4.1.4 working.

It needs the administrator rights to run

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文