05-04-2011 07:18 AM
I am new to Web works devolopment. I developed a sample application which displays "Hi" on page. It is building sucess fully. when Right click on my project and Click on Run As->Blackberry simulator. Simulator and MDS are starting but On simmulator showing nothig(Hanging) and MDS is showing "Strarting" .
java version 1.6.0_22
Ecclipse plug in V2.5.1
Thanks & Regards
Solved! Go to Solution.
05-04-2011 08:33 AM - edited 05-04-2011 08:36 AM
I had done the following steps
1) installed java version 1.6.0_22
2)installed Ecclipse plug in V2.5.1
3)installed MDS 4.1.4
4)Created a sample project and edited the confifig and index.html files
html file is :-
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="viewport" id="viewport" content="height=device-height,width=device-width,u
ser-scalable=no" /> <title>Insert title here</title> </head> <body> <p>Hello World</p> </body> </html>
config file is
<?xml version="1.0" encoding="UTF-8"?> <widget xmlns="http://www.w3.org/ns/widgets" xmlns:rim="http://www.blackberry.com/ns/widgets" version="1.0.0"> <name>AssetMaintenance </name> <description>BlackBerry Testing Application</description> <author rim:copyright="no copyright" email="firstname.lastname@example.org" href="http://www.rim.com/"> Ramkumar </author> <license href="http://www.license.com">This is a sample license</license> <content src="index.html"/> </widget>
5)Goto window -> preferences -> Blackberry web works -> Services and set the path of MDS
6)Build the project got the result "succeed"
7) Right click on my project and Click on Run As->Blackberry simulator
then following things are happening
i went to Service manager
MDS service is always in "Starting" state and started two times
Simulater is running but nothing is not loading completely
Am i doing things correctly.Please guide me.I am new to Web works development
Thanks & Regards
05-04-2011 09:18 AM
@ramkumar: This sounds like a setup issue. Please see the steps below that I took to setup my environment. Pay particular attention to the environment variables section. Let me know if this works!
INSTALLATION (Assumes Windows 7 32 bit)
1. Download and install the JDK.
2. Copy your install path to the windows clipboard.
3. Add/edit environment variables:
EXAMPLE: %JAVA_HOME%; %JAVA_HOME%\BIN;
5. Download and install the Blackberry SDK for phone or Tablet. BOTH INSTALLERS COME WITH THEIR OWN ECLIPSE ENVIRONMENT SO YOU WILL INSTALL THEM IN SEPERATE LOCATIONS. I installed mine in C:\BlackBerryDevelopment\SDK\Tablet and C:\BlackBerryDevelopment\SDK\Phone.
NOTE: You will need a BlackBerry Developer Zone account to download these.
TABLET: See here (http://us.blackberry.com/developers/tablet/webwork
6. Sometimes you will have memory issues from repeatedly opening and closing phone simulator so here are a few tips that I found useful to help.
Find your Exclipse.exe in <install path> (DEFAULT: C:\Program Files\BlackBerry WebWorks Plug-in Eclipse).
Make a shortcut then paste the run parameters from
-vmargs -Xms768m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=256m
"C:\BlackBerry\IDE\Phone\BlackBerry WebWorks Plug-in Eclipse\eclipse.exe" -vmargs -Xms768m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=256m
05-04-2011 09:46 AM
The SDK comes with the Eclipse environment so if you installed the plugin through Eclipse then you should be fine.
05-05-2011 10:50 PM
Thank you so much Rhino.The problem is with Java version. Now my problem is solved.
Thanks & Regards
Excellent! Would you mind marking my answer as close?
08-28-2012 08:13 PM
I have a similar problem to that described: when the simulator executes, it doesn't boot, it never display the main screen with the applications. I did all the things that you recommeds (the evironment variables, the path, the clean, the additional parameters of the eclipse shortcut) but the simulator don't boot.
Have you additional tips?