Blackberry MDS 模拟器 - 无法在模拟器中连接到互联网
我正在尝试通过黑莓模拟器对网站进行一些测试,虽然模拟器工作正常,但我无法访问黑莓浏览器中的任何网站。
这是我正在使用的具体设置。
- 我是 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(14)
我已经成功了,我做了什么......
(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).
首先按照此处的步骤操作:http://supportforums.blackberry.com/t5/Testing-and-Deployment/BlackBerry-MDS-Simulator-does-not-launch/ta-p/446126
然后以管理员身份运行 cmd.exe 并转到 MDS 目录并运行“run.bat”文件:
在 cmd 提示符下键入,
然后输入,
然后按 Enter
MDS 模拟器将开始运行。然后您可以打开手机的模拟器,它应该会自动连接到互联网。
follow steps here first: http://supportforums.blackberry.com/t5/Testing-and-Deployment/BlackBerry-MDS-Simulator-does-not-launch/ta-p/446126
then run cmd.exe as Administrator and Go to MDS directory and run the "run.bat" file:
type at cmd prompt,
then type,
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.
我遵循了上述所有建议,但 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.
如果您在启动 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.
我刚刚花了 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)
对于那些可能仍然遇到问题的人,我发现这是最简单、最简单的解决方案:
将已安装的 MDS 文件夹复制到 Program Files 之外的某个位置(例如 c:\blackberry\mds")
确保您有一个 JAVA_HOME 环境变量指向安装 Java SDK 的目录的根目录。
For those of you who might still have issues, I found this to be the simplest, easiest solution:
Copy the installed MDS folder to somewhere outside of Program Files (e.g. c:\blackberry\mds")
Make sure you have a JAVA_HOME environment variable pointing to the root of the directory where your Java SDK is installed.
当您启动 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?
我在 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.
人们必须花费很多时间来解决这个问题。我只花了一些钱,所以我希望我的解决方案对你们所有人都有用。
我做了设置环境变量的事情。
我使用 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.
这就是我解决问题的方法:
从 BlackBerry Java Plugin (Eclipse IDE) 位于 C 以外的目录(Windows 目录)中。该软件包包括用于开发 BB 应用程序的 eclipse IDE、BB 模拟器和 MDS
您可以从以下位置运行 MDS:D:\Eclipse_BB\plugins\net.rim.ejde.componentpack6.0.0_6.0.0.30\components \MDS
只需双击“run.bat”文件。等待该过程完成。最后你应该得到像这样的东西
现在,你可以从这个位置运行模拟器
D:\Eclipse_BB\plugins\net.rim.ejde.componentpack6.0.0_6.0.0.30\components\simulator
只需双击“9800.bat”即可。该bat文件的名称可能因模拟器类型而异。
如果仍然无法连接互联网,MDS的默认端口可能已被其他软件使用。
您可以通过浏览器打开以下地址进行测试:http://127.0.0.1:8080/< br>
正常情况下应该会出现这样的结果
如果不是这种情况,您可以尝试更改端口号通过编辑此位置的“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:
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
You can run the MDS from this location D:\Eclipse_BB\plugins\net.rim.ejde.componentpack6.0.0_6.0.0.30\components\MDS
Just double click "run.bat" file. Wait until the process is finished. In the end you should get something like this
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
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
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)
(我使用的是 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 的快捷方式更改为“以管理员身份运行”,但由于某种原因,这不起作用。我最终制作了自己的批处理文件,其中包含以下内容:
我创建了批处理文件的快捷方式并将该快捷方式设置为“以管理员身份运行”。我不太确定为什么会这样,但确实如此。
(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:
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.
启动MDS模拟器的批处理文件需要设置环境变量
JAVA_HOME
。如果该变量尚未设置或未指向有效的 Java 安装,MDS Simulator 将退出。
它应该指向 JDK 或 JRE 安装路径 - 例如
C:\Program Files\Java\jre6
您可以通过输入
set JAVA_HOME=C:\Program Files\Java 在命令行上测试它\jre6
在执行 MDSrun.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 MDSrun.bat
当您想通过模拟器访问互联网时,需要打开 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
我以“以管理员身份运行”启动 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