Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Blackberry MDS simulator - Can't connect to the internet in the simulator

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

like image 406
user248173 Avatar asked Apr 16 '10 14:04

user248173


4 Answers

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

like image 99
Imran Iqbal Avatar answered Oct 18 '22 21:10

Imran Iqbal


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

like image 43
Michael B. Avatar answered Oct 18 '22 21:10

Michael B.


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)

like image 24
masu.mo Avatar answered Oct 18 '22 20:10

masu.mo


(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.

like image 25
teedyay Avatar answered Oct 18 '22 22:10

teedyay