I tried with the procedure in http://docs.phonegap.com/en/2.0.0/guide_getting-started_blackberry_index.md.html#Getting%20Started%20with%20Blackberry but i cant set apache ant please help me to set environment. and guide to to develop the application
Steps:
Install the WebWorks SDK
Install Ant and set environment variable path of bin folder.
Link:http://ant.apache.org/bindownload.cgi
Register for Signing Keys
Link:https://developer.blackberry.com/html5/documentation/signing_setup_smartphone_apps_1920010_11.html
3.1 Paste signing keys to C:\Program Files (x86)\Research In Motion\BlackBerry WebWorks SDK 2.3.1.5\bin
3.2 Install all key from command prompt with command (java -jar SignatureTool.jar [CSI file name].csi) from bin folder.
Build Project from project folder with command (ant blackberry build).
Run Project from project folder with command (ant blackberry load-simulator).
Related
I have to setup build process in Bamboo server. My requirements are,
We have a web-server application [more than 20 web projects, 10 windows service projects, DB scripts, some supported utilities like exe, xml's, code signing certificates, ssl certificates]
We have already build automation in c#, which uses NSIS scripts to generate installer.exe
Our build process has the following steps:
Checkout the source code
Checkout the Utilities
Checkout the NSIS installer source code
Update the source code
Update the Utilities
Update the Product versions in all the Assembly files of all the projects & Wix files
Build all the MSI projects based from the list [Project.xml] -> Once build completed with Code Signing post build CMD, then move to
some [ex: LatestPackage] folder in any [ex: Package] directory
Build all the Web app projects from the list [Project.xml] -> Publish into some [ex: LatestPackage] folder in any [ex: Package]
directory
Build all the support projects for installer from the list [Project.xml]
Copy the "LatestPackage" from "Package" directory to "LatestPackage" folder in "NSIS Installer" directory
Update the Installer source codes
Copy the installer custom assets to respective folder in "Installer" directory [SQL, some exe's]
Update Installer.xml file with the Branding information's in "Installer" directory
Compile Installer.nsi file & Installer package will be generated under Installer directory
Could anyone guide me in right path to achieve this.
1. Need to setup task for each and every projects?
2. Where to keep the files once build completed?
3. How to move the all the projects binaries into another projects directory?
4. How to keep the supported files and copy them to our source code folders?
5. How to maintain the generated build?
Is Bamboo Server Windows based? Can Visual Studio be installed on it?
If yes then you can automate building NSIS installers using MSBuild and Visual & Installer.
Also (if VS is present) there is an option to create NSIS project in Visual Studio and build the installer from it (building the solution from command line).
I am getting the following error when building the app using Blackberry JDE editor:
Building HelloWorld
C:\Program Files (x86)\Research In
Motion\BlackBerry JDE 7.1.0\bin\rapc.exe -quiet codename=HelloWorld
HelloWorld.rapc
warnkey=0x52424200;0x52525400;0x5242534b;0x42424944;0x52435200;0x4e464352;0x52455345
import="....\Program Files (x86)\Research In Motion\BlackBerry JDE
7.1.0\lib\net_rim_api.jar" C:\Projects\BeginningBlackBerryDevelopment\com\beginningblackberry\helloworld\HelloWorldApp.java
java.io.IOException: Cannot run program "C:\Program" (in directory
"C:\Projects\BeginningBlackBerryDevelopment"): CreateProcess error=2,
The system cannot find the file specified
Error while building
project
I would try reinstalling your JDE. Something looks like it got messed up during installation.
I am able to install and run JDE 7.1 on a Windows 7 machine (64-bit, with the install directory set to C:\Program Files (x86)\Research In Motion\), using the BlackBerry_JDE_7.1.0.exe file on blackberry.com published 7/12/2012.
If reinstalling doesn't work, then the next time you install, try to pick a new directory to install in. Instead of
c:\program files (x86)\research in motion\
as the root folder, make a new folder yourself:
c:\RIM\
and install there. It looks like somehow your command line is having trouble with file paths that include spaces.
Also, the JDE is now quite old. I would generally recommend trying to use the Eclipse Plugin, although from your other question, it looks like you're having trouble with that, too :(
Reinstalling the JDE to c:/rim worked for me.
I installed cygwin, ant, android ndk and android sdk. I am following the instructions in slyvain's book "android ndk". I am trying to do the following step:
Create Ant build file and all related configuration files automatically using android
command (android.bat on Windows). These files describe how to compile and
package an Android application:
android update project –p .
I get a message that android: command not found.
not sure why this wasn't installed or, not in the path.
any suggestions?
It's in the $ANDROID_SDK_HOME\tools.
$ANDROID_SDK_HOME is the directory where you've installed Android SDK.
Also, remember to run SDK Manager first to fetch at least one Android build target.
After update Mono for Android from 4.0 -> 4.1 ,I have problems:
In Visual Studio : when I start application , it doesn't run application in emulator(I only see message notification at left corner Build successful!) and I cannot see .apk file in Bin
In Mono develope :When I build this app it have error Error MSB4019: The imported project "C:\Program Files (x86)\MonoDevelop\AddIns\BackendBindings\MSBuild\Novell\Novell.MonoDroid.CSharp.targets" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk. (MSB4019)
Does anyone know what might generate these errors?
In VS, you probably need to turn on "Deploy" for your project:
http://docs.xamarin.com/android/Releases/Mono_For_Android_4/Mono_for_Android_4.1.0#Non-modal_Deployment
Working on a blackberry application. So far was working on eclipse. Now moved to webworks sdk 2.2 that does not support the eclipse plugin. Followed the instructions on the phonegap page to get the cod files. Now that I have the cod files how can I sign them? I use the ant command to generate the cod files.
ant build Buildfile: C:\Dev\bbw\sample\build.xml
I have the code signing password in project.properties.
EDIT Used the signaturetool Java -jar Signaturetool.jar. When I hand it the cod files it says no signing required. When I do a OTA install on my device it errors out saying - module attempts to access a secure api.
This works. Go to your blackberry install folder and type out the following command. Of course this assumes that your project is in the proper zip format - eclipse does it for you but if not you would just need to package your project into a zip file.
in command type:
bbwp yourproject.zip -g mypassword
It will generate and sign the cod files required
If you are already using ant. Connect your device to PC using USB cable and run following command.
ant blackberry load-device
You need to run above command (in cmd prompt) where you have blackberry.xml file.
(You need to install blackberry desktop software for the above command to work.You can download the same from http://us.blackberry.com/apps-software/desktop/ )
Above command will do following things for you..
1.build your application.
2.Launch signature tool and ask for password.
3.Once you enter password it will sign all the .cod files and other required files.
4.Install application on your phone.