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

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.