Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Testing and Deployment


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Developer
Posts: 64
Registered: ‎02-12-2011
My Device: 9300
My Carrier: Yoigo

Running MDS for BBM on Windows 7

I've unzipped the MDS Simulator v3.5.3 from the BBM SDK 1.2, downloaded the security policy jars from Java, move them to my JDK folder (1.6.0_27) and double click the run.bat script in the mds folder to start the simulator but got an Exception 

 

Exception in thread "main" java.lang.NoClassDefFoundError: Files
Caused by: java.lang.ClassNotFoundException: Files
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: Files. Program will exit.

 

And the simulator does not start. I'm using Windows 7 64bits but my JDK is 32bits. Folders have write permissions and is running with Windows XP Service Pack 3 compatibility and Admin rights.

 

What can I do? Any ideas? I had WinXP before and didn't have any of these problems. I can't test my BBM features without the MDS simulator.

Retired
Posts: 172
Registered: ‎06-07-2010
My Device: BlackBerry 8520
My Carrier: Rogers

Re: Running MDS for BBM on Windows 7

[ Edited ]

Hello Lagunex,

 

In the Java folder, do you have a jre6 folder? Sometimes copying the security policy in the jre folder helps solve this issue. The path for the jre6 can be found either C:\Program Files\Java\jre6\lib\security or C:\Program Files\Java\jdk1.6.0_27\jre\lib\security.

 

Can you confirm the above and let me know? Looking forward to your reply.

 

Sincerely,

 

Raihan Masroor
BlackBerry Development Advisor
Developer
Posts: 64
Registered: ‎02-12-2011
My Device: 9300
My Carrier: Yoigo

Re: Running MDS for BBM on Windows 7

Hi rmasroor.

Yes, I also have the jre installed.

I've copied the security policy in both folders (jdk and jre) and I'm still getting the same Exception Smiley Sad

Thanks for the suggestion anyway Smiley Happy
Retired
Posts: 172
Registered: ‎06-07-2010
My Device: BlackBerry 8520
My Carrier: Rogers

Re: Running MDS for BBM on Windows 7

Can you do a java -version to see what version of Java you are running?

 

IF you are could you hardcode the java version in the MDS's run.bat.

 

For example %JAVA_EXE% with C:/progra~1/Java/jdk1.6.0_24/bin/java.exe might help.

 

Let me know if this works for you.

 

Sincerely,

Raihan Masroor
BlackBerry Development Advisor
Developer
Posts: 64
Registered: ‎02-12-2011
My Device: 9300
My Carrier: Yoigo

Re: Running MDS for BBM on Windows 7

Hi rmasroor.

Thank you very much for your suggestions. I activated the logs in the run.bat script and realize my JAVA_HOME variable had quotation marks in its definition. This caused a double quotation in the script that seems was the problem. At least I remove them and it worked.

Thanks again.