views:

2806

answers:

6

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

+1  A: 

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

Michael B.
+1  A: 

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?

Marc Novakowski
+1  A: 

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

teedyay
Thanks for the response everyone. I still unfortunately have not been able to get the internet working in the browser on the Blackberry.I tried what you said "teedyay", while it didn't seem to break anything, it also didn't aid in the browser working.The MDS still opens the command prompt, initiates something and then closes. I still need to figure out if the MDS is in fact running or not. I know "Michael B, and Marc" suggested something could be wrong with my JDK, which specific JDK should I download, since I know there were quite a few options on the site?Thank you!Ben
If the MDS command prompt closes, then MDS isn't still running. I ended up slapping the "Print Screen" button like a maniac to try to get a screenshot of the error message it shows for a moment before it closes. (The error I saw was that it couldn't create a log folder, which was how I figured out I had to run it as administrator.) [Aside: I use ClipX (http://download.cnet.com/ClipX/3000-2384_4-10315451.html), which meant all the screenshots I took were in my clipboard buffer and could be examined easily.] Good luck!
teedyay
+1  A: 

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

Robert
+1  A: 

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 for esecution

Imran Iqbal
A: 

i have the same problem, the mds email for blackberry simulator when i open it, it briefly close, and , when i open the simulator, it cant be close it normally, the only way that i can close it is kill the process

POSTDATA: i have windows 7 home premium 64 bits

fernado manuel