lwuit + blackberry how to build it show access denied - blackberry

Hi every one please any one help me how to build blackberry lwuit svn generated hello world
example in blackberry simulator.
i have problem in building when i build blackberry rim app in netbeans it it build with out error but it show access denied i below mention error like
D:\WorkSpace\NewProject\RIM\nbproject\build-impl.xml:1052: Failed to copy D:\WorkSpace\NewProject\RIM\dist\NewProject_RIM.debug to C:\Program Files\Research In Motion\BlackBerry JDE 6.0.0\simulator\NewProject_RIM.debug due to java.io.FileNotFoundException C:\Program Files\Research In Motion\BlackBerry JDE 6.0.0\simulator\NewProject_RIM.debug (Access is denied)
BUILD FAILED (total time: 40 seconds)
i think it is problem of permission then i have no idea how can i do this pleas any one who know how to given permission blackberry device simulator i used os window 7

Installing to a different folder from program files might help.
What I did is spend roughly 30 minutes playing with the security tab in the "Settings" dialog when right clicking the folder in explorer.
You need to select your group/username and just grant all the permissions and apply them to all the subfolders.
Obviously there are security implications but since the toolchains are pretty ancient we need this for compatibility. The alternative is to "Run As Administrator" which is way worse.

Related

Can't package BlackBerry WebWorks app

I'm trying to enable Web Inspector to debug my WorkWorks app, but I need to package it first and the package command is not working.
I followed the instructions here: https://developer.blackberry.com/html5/documentation/v2_1/enabling_web_inspector.html
...but i'm getting an error that "bbwp" is not a recognized command. I think I'm in the wrong directory.
The documentation says to go to the "installation folder for the BlackBerry WebWorks Packager". Does anyone know what exactly is the correct directory?
BlackBerry 10 WebWork sdk provides web tool to package your application. If you select build and install with debug mode on, web inspector will automatically get invoked on application startup and if you select release mode than web inspector pop up will automatically vanish.
You can refer this link:
http://developer.blackberry.com/html5/documentation/v2_2/creating_a_webworks_project.html#kba1393261047290

After packaging my worklight project through ripple it produces only .zip file, no.cod file..?

After packaging my worklight application through ripple for blackberry 7, It generates only .Zip file in the destination folder. There isn't any .cod file which i can deploy to my blackberry device.
Ripple version - 0.9.16 (beta)
Blackberry WebWroks SDK - 2.3.1.5
Target device - Blackberry curve 9370
In the Ripple Services CMD window, there is the following error:
... ... ... out: [INFO] out: Compiling BlackBerry WebWorks application
out: [FATAL] out: Executable name has embedded quote, split the
arguments
Done build
Edit: the FATAL error that appears in your Ripple Services CMD window seems due to a Java issue; you may need to downgrade it. Please see this topic at the BlackBerry forums: http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/Executable-name-has-embedded-quote-split-the-arguments/td-p/2330991
Have you made sure to start Ripple Services (there is a button for it in the Ripple UI)?
Look at the Ripple Services CMD window after trying to package the project. See if any errors pop up there.
Please also edit your question and describe the steps you have taken to set-up Ripple prior to packaging.
https://developer.blackberry.com/html5/documentation/packaging_your_app_in_ripple_1904611_11.html

Blackberry jde emulator showing jvm error

I have read that by erasing non volatile storage memory and erasing removable memory will clear this error.I did the same but after that i cannot access my sd card from simulator.Every time i have to create a new one after this error.Any other solution?
Have you tried to run the clean script located at:
C:\Program Files\Research In Motion\BlackBerry Smartphone Simulators 5.0.0\5.0.0.681 (8520)\clean.bat
Check the version of your the emulator an the BlackBerry jdk that you are using so you can find the clean.bat file

Loading BlackBerry application from command line

I am following the instruction from "Using the BlackBerry Smartphone Simulator programmatically" to load a .cod file from the command line using fledgecontroller commands. I am calling LoadCod(D:\Sample.cod) and nothing happens; the application does not install on the simulator. However if I manually browse and load the cod from the simulator's “file->Load Java Program” option.
Do you get any error message at all?
If I try a similar thing (have a cod in C:\Sample.cod, connect using fledge and attempt LoadCod(C:\Sample.cod)) I get the following error message -
Jvm: could not open C:\Program Files\Research In Motion\BlackBerry Smartphone Simulators 4.5.0\4.5.0.55 (8310)\sample.cod
I moved the sample.cod to that directory and it worked okay. If you get no error message I am not sure what the problem is. Are you definitely connected to the correct simulator session? What simulator and OS version are you using?

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
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
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
This is what I did to solve the problem:
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
You can run the MDS from this location D:\Eclipse_BB\plugins\net.rim.ejde.componentpack6.0.0_6.0.0.30\components\MDS
Just double click "run.bat" file. Wait until the process is finished. In the end you should get something like this
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
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
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)
(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.
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
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?
I was trying this on Windows 64-bit and had the same problem - the service would launch and then immediately exit. Turns out the error was caused by being unable to create a /logs directory under C:\Program Files (x86)\Research In Motion\BlackBerry Email and MDS Services Simulators 4.1.2.
My solution was to change the permission on that directory to be "Full Control", then the service can start. If you then restart the Device Simulator you can finally browse the web.
Many hours of peoples life must be wasted trying to figure this one out. I just spent a few so I hope my solution works for you all.
I did the set Environmental Variable thing.
I use 4.1.4 and JDK 1.6 something
WIndows 64bit
Uninstall MDS program from C:\Program Files (86x)
Install elsewhere. I installed on my desktop as administrator.
I don't know if the Environmental Variable thing helped but MDS worked right after I installed administratively on the desktop.
If you started the simulator before starting MDS then it creates some .dmp files that appear to impede the connection between the device simulator and MDS. Try deleting the .dmp files from the simulator directory and see if that helps.
I just spent 2 days trying various of the tips online about MDS (and there are many) but none helped me.
For me, the solution was to turn off network registration upon simulator launch in eclipse.
(posted in case someone with my problem googles to this page)
For those of you who might still have issues, I found this to be the simplest, easiest solution:
Copy the installed MDS folder to somewhere outside of Program Files (e.g. c:\blackberry\mds")
Make sure you have a JAVA_HOME environment variable pointing to the root of the directory where your Java SDK is installed.
follow steps here first: http://supportforums.blackberry.com/t5/Testing-and-Deployment/BlackBerry-MDS-Simulator-does-not-launch/ta-p/446126
then run cmd.exe as Administrator and Go to MDS directory and run the "run.bat" file:
type at cmd prompt,
cd C:\Program Files\Research In Motion\BlackBerry Email and MDS
Services Simulators 4.1.4\MDS
then type,
run.bat
and press enter
The MDS simulator will start running. Then you can open the simulator for the phone and it should work automatically to connect to internet.
I followed all of the above advisals, but MDS didn't still start!
What was wrong? I had installed J2EE (java_ee_sdk-5_01-windows.exe) instead of J2SE (jdk-6u26-windows-i586.exe), with the latter MDS worked properly
This installation lost me one awful day and a terrible night.
I have it working, what I did....
(Windows 7-64bit)
a) confirmed my Java environment vars:
JAVA_HOME=....\Java\jdk1.6.0_24
JDK_DIR=...same...
JDK_ROOT=...same...
JRE_HOME=...\Java\jre6
(different things need different vars...)
b) installed the "BlackBerry_JDE_6.0.0.0.exe" to non-magic location (E:\Emulators)
c) launched the start-menu item "MDS-CS"
The command window stays open, it is logging the comm events.
d) launched the start-menu item "Device Simulator"
The "BlackBerry 9800 Simulator" launched. I then started the browser and connected to "www.google.com"
Everything was launched as a regular user (no admin privs).

Resources