I'm getting this error from a while. I have 28 classes in a project and when I run it fails to make the package. It says:
"Error: jar command failed: jar -cfm "E:\Blackberry Workspace\Kenexa\deliverables\Standard\7.1.0\Kenexa.jar" C:\Users\Acer\AppData\Local ... Kenexa
line 0 BlackBerry Packaging Problem"
But when I limit the classes to 24 then it makes the package. Is it related to some size limit while making the package? What should I do to make the package successfully?
Thanks
Answer from Blackberry Support
Are you using the BlackBerry JDE or BlackBerry Java Plug-in for Eclipse?
If you are using the BlackBerry JDE you could be running into an issue where you have reached the maximum supported length for a command line (all files are listed on a command line). If this is the case you could resolve it by reducing the number of classes (as you have done) or by reducing the length of the path to your source files (move them closer to the root of your drive).
Mark Sohm
BlackBerry Development Advisor
So, I just have to change my workspace folder name from "Blackberry Workspace" to "Workspace". The command line was not taking long path.
Related
I am new to using PhoneGap and am trying to setup the example app, i'm using PhoneGap version 2.9.0 and apache-ant-1.9.1.
I have configured apache ant, installed the WebWorks SDK and have setup the project.properties file.
The error seems to be that it cannot find the 'CordovaExample' file in the temporary folder, i have checked the folder and it has the following files in it: 'CordovaExample.jdp', 'CordovaExample.jdw' and 'CordovaExample.rapc' (among various others). Am i missing some configuration so that it should search for one of these 3 files, instead of just 'CordovaExample'?
The error is shown below when the 'ant blackberry build' command is run:
jamest#JT1 /c/Development/FirstApp
$ ant blackberry build
Buildfile: c:\Development\FirstApp\build.xml
blackberry:
build:
generate-cod-name:
[echo] Generated name: CordovaExample.cod
clean:
[delete] Deleting directory c:\Development\FirstApp\build
package-app:
[mkdir] Created dir: c:\Development\FirstApp\build\widget
[copy] Copying 22 files to c:\Development\FirstApp\build\widget
[zip] Building zip: c:\Development\FirstApp\build\CordovaExample.zip
build:
[exec] [INFO] Parsing command line options
[exec] [INFO] Parsing bbwp.properties
[exec] [INFO] Validating application archive
[exec] [INFO] Parsing config.xml
[exec] [INFO] Populating application source
[exec] [INFO] Compiling BlackBerry WebWorks application
[exec] I/O Error: C:\Users\jamest\AppData\Local\Temp\widgetGen.584154969137
3014448670.tmp\CordovaExample (The system cannot find the file specified)
[exec] [ERROR] RAPC exception occurred
BUILD SUCCESSFUL
Total time: 8 seconds
I've searched the web, but can't find any similar questions so any help would be much appreciated.
Thanks
Ensure that you are using JDK 6 and NOT JDK 7 - WebWorks requires that version according to the BB support forums:
Please note that you need JDK6 (32-bit) to be installed and referenced
by the tools. Based on the sample it seems to be referencing JDK7.
If you do not require JDK7 explicitly, the safest option is to
uninstall all existing JDK/JREs from your PC (this includes both
64-bit and 32-bit) versions from Program Files and Program Files
(x86); respectively. And then install only JDK6 (which automatically
includes the JRE) that is 32-bit.
Apparently you might even need a specific build of JDK 6:
I noticed that JDK1.6 build 43 had the same behaviour during the
packaging process [...]
I had to roll back to JDK1.6 build 30 before I could sign and package
my webworks apps again.
First time I also Face same problem :-
To solve it :-
I use following step:-
Move to JDK 1.7 to JDK 1.6
follow the process as per this link http://docs.phonegap.com/en/2.1.0/guide_getting-started_blackberry_index.md.html
Modify .properties file
use signtool to sign the app using keys
then you will get Install able files
I am an experienced (but retired) Windows software developer, with more years experience than I care to admit, developing in C++, C#, VB and Java. I therefore decided to have a crack at Android development. My development machine is a Windows 7 box. My IDE of choice would be Microsoft Visual Studio but, for now, I am happy doing hand editing and launching tools from the command line.
I started by downloading the Android SDK and various additional items it suggested. I then started working my way through the tutorial at developer.android.com/training/basics/firstapp. Android list targets gave me a couple of choices (Android 4.2.2 and Google APIs:17). I then did Android create project from the command line and that appeared to do its stuff, creating MyFirstApp in my development folder. I then ran Android avd and created an emulator. I also added the android SDK's tools and platform-tools to my path. So far so good.
I fell at the next hurdle. The tutorial told me to change to the root folder of my project and run ant debug. At this point, Windows reports:
'ant' is not recognized as an internal or external command,
operable program or batch file.
I've searched around for ant.exe without success. Did I miss installing something or did I miss a vital step in the set-up? Any advice for this very green newbie would be greatly appreciated.
There is no ant.exe. Only ant.bat. Ant is a Java build tool.
If it comes with the Android SDK, make sure its bin directory is in your PATH environment variable. Otherwise, download it (from [http://ant.apache.org][1]), and follow the installation instructions on the web site.
Normally, simply unzipping it, putting its bin directory in the PATH envieonment variable, and setting a JAVA_HOME environment variable that points to your preferred JDK directory is sufficient.
I have two blackberry library applications and one cldc application.
I want to compile a build.xml integrating all this.
cldc and library 2 refers to library 1.
library 1 has startup tier as 6 which means install during device start.
library 2 can be either 7 or 6.
how to achieve the ota build which does have all these functionalities?
Consider BB Ant Tools
JDP element of RAPC task allows setting startup tier for the compiling cod file.
i have this problem: i compile and run application and all work in mine computer. When i try to run same application in other computer, i have error about rtl150.bpl not found.
I have searched on internet and all response that i have had tell me to verify if in PROJECT->OPTION->PACKAGES is checked: "BUILD WITH RUNTIME PACKAGE".
It is checked, i compile project but i have same every error. I have saw too that executable of application is very small for example: 186 KB, when usually it was about 2000 KB.
I use delphi xe and not know as i need to do for solve it.
Please, someone can help me to solve this problem?
Thanks very much.
If you build with packages you must distribute the packages (.BPL files) your application uses.
If you don't build with runtime packages you won't get this error.
The list of packages you must distribute is semi-colon delimited list next to the check box for Build with run time packages in the project options.
The Size of an Executable will drop when building with Runtime packages. That is because the code is now in the BPL/Package. But that means your application now needs these additional files. Think of a Package as a specialized DLL that has been renamed.
I am experimenting with various mobile platforms, and this is my first day with BB.
I am using Web Plug in 2.0.0 with SDK 1.0.0. As I am trying to run one of the samples in the simulator (5.0.0.469, Storem 2 9550)
When I run the BB widget, I got the following in the eclipse console, but I could not find the .cod file to be loaded to the simulator. Please help!! By the way I am using xp and jdk6 update 18
BUILDING upComingAppointment
cmd.exe /c bbwp C:\tshenWorkSpace\blackberry\upComingAppointment\b uild\upComingAppointment.zip /o C:\tshenWorkSpace\blackberry\upComingAppointment\b uild
BUILD SUCCESS
BUILDING upComingAppointmentcmd.exe /c bbwp C:\tshenWorkSpace\blackberry\upComingAppointment\b uild\upComingAppointment.zip /o C:\tshenWorkSpace\blackberry\upComingAppointment\b uildBUILD SUCCESS******************************************
I have no experience with Widget development on BlackBerry but looking at the docs it says the COD is saved in the /bin folder that you created when you compiled the widget.