bb-ant-tools-general Mailing List for BlackBerry Ant Tools
Brought to you by:
jiggak
You can subscribe to this list here.
| 2008 |
Jan
|
Feb
|
Mar
(3) |
Apr
|
May
|
Jun
(3) |
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
(7) |
Dec
(9) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2009 |
Jan
(10) |
Feb
(17) |
Mar
(9) |
Apr
(4) |
May
|
Jun
(2) |
Jul
(8) |
Aug
(12) |
Sep
(33) |
Oct
(8) |
Nov
(3) |
Dec
(4) |
| 2010 |
Jan
|
Feb
(5) |
Mar
(25) |
Apr
(40) |
May
|
Jun
(22) |
Jul
(29) |
Aug
(5) |
Sep
(5) |
Oct
|
Nov
(3) |
Dec
(5) |
| 2011 |
Jan
(3) |
Feb
(9) |
Mar
(7) |
Apr
(3) |
May
(5) |
Jun
(6) |
Jul
(11) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2012 |
Jan
(1) |
Feb
|
Mar
|
Apr
(4) |
May
(1) |
Jun
|
Jul
(6) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2013 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(5) |
Dec
|
| 2014 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Wayne F. <way...@gm...> - 2014-04-03 13:30:39
|
I have two applications that can not run together on one device. (When I open one the other closes) I am suspecting that my build files are at fault: My build script is generating cod files together with jad files, no alx file. I have compared both jad files and the only possible clash that I see is that both share a "push receiver" background application that shares the same package name defined as such: The midlets name differ but the packages names do not. MIDlet-Jar-URL: AppA.jar MIDlet-Name: AppA RIM-COD-SHA1-1: 3c e5 78 ca 41.... MIDlet-2: PushRx,,com.push.PushRx<<<<<< RIM-COD-SHA1-3: 5c b1 cf e3 9c 5f 0d .... MIDlet-Jar-URL: AppB.jar MIDlet-Name: AppB RIM-COD-SHA1-1: 7c 87 70 1b.... MIDlet-2: PushRy,,com.push.PushRx<<<<<< RIM-COD-SHA1-5: a6 af d4 da ff ... I do not generate an ALX file, but I noticed there is an unique id for the application for this file. Is there an id for the jad/cod files? Thanks. Wayne. |
|
From: YuGiOhJCJ Mailing-L. <yug...@la...> - 2013-11-11 18:20:14
|
Thank you it works now:
<project name="Hello World App" default="build">
<taskdef resource="bb-ant-defs.xml"/>
<!-- set global properties for this build -->
<property name="src" location="src"/>
<property name="build" location="build"/>
<property name="output" value="ca_slashdev_HelloWorld"/>
<property environment="env"/>
<target name="build">
<mkdir dir="${build}"/>
<rapc output="${output}" srcdir="${src}" destdir="${build}" jdehome="${env.JDE_HOME}">
<jdp title="Hello World"/>
</rapc>
</target>
<target name="clean">
<delete dir="${build}"/>
</target>
</project>
On Mon, 11 Nov 2013 08:12:03 -0500
Josh Kropf <jo...@sl...> wrote:
> You need to load the bb-ant-tools task definitions.
>
> See the sample on this blog post:
> http://www.slashdev.ca/2007/05/30/blackberry-development-with-ant-eclipse/2/
>
> On 2013-11-09 5:27 PM, YuGiOhJCJ Mailing-List wrote:
> > I have already written some build.xml files from scratch for some projects.
> >
> > I found a complete build.xml example here:
> > http://ant.apache.org/manual/using.html#example
> >
> > So, I combine this example with the example 1 available here:
> > http://bb-ant-tools.sourceforge.net/docs#examples
> >
> > And the result is this:
> > <project name="MyProject" default="dist" basedir=".">
> > <description>
> > simple example build file
> > </description>
> > <!-- set global properties for this build -->
> > <property name="src" location="src"/>
> > <property name="build" location="build"/>
> > <property name="dist" location="dist"/>
> > <property environment="env"/>
> >
> > <target name="init">
> > <!-- Create the time stamp -->
> > <tstamp/>
> > <!-- Create the build directory structure used by compile -->
> > <mkdir dir="${build}"/>
> > </target>
> >
> > <target name="compile" depends="init" description="compile the source ">
> > <!-- Compile the java code from ${src} into ${build} -->
> > <javac srcdir="${src}" destdir="${build}"/>
> > </target>
> >
> > <target name="dist" depends="compile"
> > description="generate the distribution" >
> > <!-- Create the distribution directory -->
> > <mkdir dir="${dist}/lib"/>
> >
> > <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
> > <jar jarfile="${dist}/lib/MyProject-${DSTAMP}.jar" basedir="${build}"/>
> > </target>
> >
> > <target name="clean"
> > description="clean up" >
> > <!-- Delete the ${build} and ${dist} directory trees -->
> > <delete dir="${build}"/>
> > <delete dir="${dist}"/>
> > </target>
> >
> > <target name="mytarget">
> > <!-- bare minimum usage -->
> > <rapc output="ca_slashdev_MyKickAssApp" srcdir="${src}" jdehome="${env.JDE_HOME}"/>
> > </target>
> >
> > </project>
> >
> > I am using the ant program:
> > ---
> > $ ant mytarget
> > Buildfile: /home/yugiohjcj/tmp/bb/build.xml
> >
> > mytarget:
> >
> > BUILD FAILED
> > /home/yugiohjcj/tmp/bb/build.xml:41: Problem: failed to create task or type rapc
> > Cause: The name is undefined.
> > Action: Check the spelling.
> > Action: Check that any custom tasks/types have been declared.
> > Action: Check that any <presetdef>/<macrodef> declarations have taken place.
> >
> >
> > Total time: 0 seconds
> > ---
> >
> > Do you see any reason for the failure ?
> >
> > On Sun, 03 Nov 2013 11:09:11 -0500
> > Josh Kropf <jo...@sl...> wrote:
> >
> >> You should checkout some ant tuts, you require more than just the <rapc>
> >> element in a build.xml file.
> >>
> >> On 11/01/2013 10:34 PM, YuGiOhJCJ Mailing-List wrote:
> >>> Hello,
> >>>
> >>> It is the first time I am using bb-ant-tools.
> >>>
> >>> I think I have the prerequisites:
> >>> 1)$ java -version
> >>> java version "1.5.0"
> >>> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)
> >>> Java HotSpot(TM) Client VM (build 1.5.0-b64, mixed mode, sharing)
> >>> 2)$ ant -version
> >>> Apache Ant(TM) version 1.8.4 compiled on May 22 2012
> >>> 3)RIM JDE BlackBerry_JDE_4.6.1.exe (for net_rim_api.jar, rapc.jar and SignatureTool.jar)
> >>>
> >>> This is my Apache Ant's buildfile, written in XML:
> >>> $ cat build.xml
> >>> <!-- bare minimum usage -->
> >>> <rapc output="ca_slashdev_MyKickAssApp" srcdir="${src.dir}" jdehome="${jde.home}" />
> >>>
> >>> And now, what that is what happened when I try to build:
> >>> $ ant
> >>> Buildfile: /home/yugiohjcj/tmp/bb/build.xml
> >>>
> >>> BUILD FAILED
> >>> /home/yugiohjcj/tmp/bb/build.xml:2: Unexpected element "{}rapc" {antlib:org.apache.tools.ant}rapc
> >>>
> >>> Total time: 0 seconds
> >>>
> >>> Do you see what it means ?
> >>>
> >>> Thank you.
> >>> Best regards.
> >>>
> >>> ------------------------------------------------------------------------------
> >>> Android is increasing in popularity, but the open development platform that
> >>> developers love is also attractive to malware creators. Download this white
> >>> paper to learn more about secure code signing practices that can help keep
> >>> Android apps secure.
> >>> http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
> >>> _______________________________________________
> >>> Bb-ant-tools-general mailing list
> >>> Bb-...@li...
> >>> https://lists.sourceforge.net/lists/listinfo/bb-ant-tools-general
> >>
> >> ------------------------------------------------------------------------------
> >> Android is increasing in popularity, but the open development platform that
> >> developers love is also attractive to malware creators. Download this white
> >> paper to learn more about secure code signing practices that can help keep
> >> Android apps secure.
> >> http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
> >> _______________________________________________
> >> Bb-ant-tools-general mailing list
> >> Bb-...@li...
> >> https://lists.sourceforge.net/lists/listinfo/bb-ant-tools-general
> > ------------------------------------------------------------------------------
> > November Webinars for C, C++, Fortran Developers
> > Accelerate application performance with scalable programming models. Explore
> > techniques for threading, error checking, porting, and tuning. Get the most
> > from the latest Intel processors and coprocessors. See abstracts and register
> > http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
> > _______________________________________________
> > Bb-ant-tools-general mailing list
> > Bb-...@li...
> > https://lists.sourceforge.net/lists/listinfo/bb-ant-tools-general
>
>
> ------------------------------------------------------------------------------
> November Webinars for C, C++, Fortran Developers
> Accelerate application performance with scalable programming models. Explore
> techniques for threading, error checking, porting, and tuning. Get the most
> from the latest Intel processors and coprocessors. See abstracts and register
> http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
> _______________________________________________
> Bb-ant-tools-general mailing list
> Bb-...@li...
> https://lists.sourceforge.net/lists/listinfo/bb-ant-tools-general
|
|
From: Josh K. <jo...@sl...> - 2013-11-11 13:46:14
|
You need to load the bb-ant-tools task definitions. See the sample on this blog post: http://www.slashdev.ca/2007/05/30/blackberry-development-with-ant-eclipse/2/ On 2013-11-09 5:27 PM, YuGiOhJCJ Mailing-List wrote: > I have already written some build.xml files from scratch for some projects. > > I found a complete build.xml example here: > http://ant.apache.org/manual/using.html#example > > So, I combine this example with the example 1 available here: > http://bb-ant-tools.sourceforge.net/docs#examples > > And the result is this: > <project name="MyProject" default="dist" basedir="."> > <description> > simple example build file > </description> > <!-- set global properties for this build --> > <property name="src" location="src"/> > <property name="build" location="build"/> > <property name="dist" location="dist"/> > <property environment="env"/> > > <target name="init"> > <!-- Create the time stamp --> > <tstamp/> > <!-- Create the build directory structure used by compile --> > <mkdir dir="${build}"/> > </target> > > <target name="compile" depends="init" description="compile the source "> > <!-- Compile the java code from ${src} into ${build} --> > <javac srcdir="${src}" destdir="${build}"/> > </target> > > <target name="dist" depends="compile" > description="generate the distribution" > > <!-- Create the distribution directory --> > <mkdir dir="${dist}/lib"/> > > <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file --> > <jar jarfile="${dist}/lib/MyProject-${DSTAMP}.jar" basedir="${build}"/> > </target> > > <target name="clean" > description="clean up" > > <!-- Delete the ${build} and ${dist} directory trees --> > <delete dir="${build}"/> > <delete dir="${dist}"/> > </target> > > <target name="mytarget"> > <!-- bare minimum usage --> > <rapc output="ca_slashdev_MyKickAssApp" srcdir="${src}" jdehome="${env.JDE_HOME}"/> > </target> > > </project> > > I am using the ant program: > --- > $ ant mytarget > Buildfile: /home/yugiohjcj/tmp/bb/build.xml > > mytarget: > > BUILD FAILED > /home/yugiohjcj/tmp/bb/build.xml:41: Problem: failed to create task or type rapc > Cause: The name is undefined. > Action: Check the spelling. > Action: Check that any custom tasks/types have been declared. > Action: Check that any <presetdef>/<macrodef> declarations have taken place. > > > Total time: 0 seconds > --- > > Do you see any reason for the failure ? > > On Sun, 03 Nov 2013 11:09:11 -0500 > Josh Kropf <jo...@sl...> wrote: > >> You should checkout some ant tuts, you require more than just the <rapc> >> element in a build.xml file. >> >> On 11/01/2013 10:34 PM, YuGiOhJCJ Mailing-List wrote: >>> Hello, >>> >>> It is the first time I am using bb-ant-tools. >>> >>> I think I have the prerequisites: >>> 1)$ java -version >>> java version "1.5.0" >>> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64) >>> Java HotSpot(TM) Client VM (build 1.5.0-b64, mixed mode, sharing) >>> 2)$ ant -version >>> Apache Ant(TM) version 1.8.4 compiled on May 22 2012 >>> 3)RIM JDE BlackBerry_JDE_4.6.1.exe (for net_rim_api.jar, rapc.jar and SignatureTool.jar) >>> >>> This is my Apache Ant's buildfile, written in XML: >>> $ cat build.xml >>> <!-- bare minimum usage --> >>> <rapc output="ca_slashdev_MyKickAssApp" srcdir="${src.dir}" jdehome="${jde.home}" /> >>> >>> And now, what that is what happened when I try to build: >>> $ ant >>> Buildfile: /home/yugiohjcj/tmp/bb/build.xml >>> >>> BUILD FAILED >>> /home/yugiohjcj/tmp/bb/build.xml:2: Unexpected element "{}rapc" {antlib:org.apache.tools.ant}rapc >>> >>> Total time: 0 seconds >>> >>> Do you see what it means ? >>> >>> Thank you. >>> Best regards. >>> >>> ------------------------------------------------------------------------------ >>> Android is increasing in popularity, but the open development platform that >>> developers love is also attractive to malware creators. Download this white >>> paper to learn more about secure code signing practices that can help keep >>> Android apps secure. >>> http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk >>> _______________________________________________ >>> Bb-ant-tools-general mailing list >>> Bb-...@li... >>> https://lists.sourceforge.net/lists/listinfo/bb-ant-tools-general >> >> ------------------------------------------------------------------------------ >> Android is increasing in popularity, but the open development platform that >> developers love is also attractive to malware creators. Download this white >> paper to learn more about secure code signing practices that can help keep >> Android apps secure. >> http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk >> _______________________________________________ >> Bb-ant-tools-general mailing list >> Bb-...@li... >> https://lists.sourceforge.net/lists/listinfo/bb-ant-tools-general > ------------------------------------------------------------------------------ > November Webinars for C, C++, Fortran Developers > Accelerate application performance with scalable programming models. Explore > techniques for threading, error checking, porting, and tuning. Get the most > from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk > _______________________________________________ > Bb-ant-tools-general mailing list > Bb-...@li... > https://lists.sourceforge.net/lists/listinfo/bb-ant-tools-general |
|
From: YuGiOhJCJ Mailing-L. <yug...@la...> - 2013-11-09 22:27:29
|
I have already written some build.xml files from scratch for some projects. I found a complete build.xml example here: http://ant.apache.org/manual/using.html#example So, I combine this example with the example 1 available here: http://bb-ant-tools.sourceforge.net/docs#examples And the result is this: <project name="MyProject" default="dist" basedir="."> <description> simple example build file </description> <!-- set global properties for this build --> <property name="src" location="src"/> <property name="build" location="build"/> <property name="dist" location="dist"/> <property environment="env"/> <target name="init"> <!-- Create the time stamp --> <tstamp/> <!-- Create the build directory structure used by compile --> <mkdir dir="${build}"/> </target> <target name="compile" depends="init" description="compile the source "> <!-- Compile the java code from ${src} into ${build} --> <javac srcdir="${src}" destdir="${build}"/> </target> <target name="dist" depends="compile" description="generate the distribution" > <!-- Create the distribution directory --> <mkdir dir="${dist}/lib"/> <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file --> <jar jarfile="${dist}/lib/MyProject-${DSTAMP}.jar" basedir="${build}"/> </target> <target name="clean" description="clean up" > <!-- Delete the ${build} and ${dist} directory trees --> <delete dir="${build}"/> <delete dir="${dist}"/> </target> <target name="mytarget"> <!-- bare minimum usage --> <rapc output="ca_slashdev_MyKickAssApp" srcdir="${src}" jdehome="${env.JDE_HOME}"/> </target> </project> I am using the ant program: --- $ ant mytarget Buildfile: /home/yugiohjcj/tmp/bb/build.xml mytarget: BUILD FAILED /home/yugiohjcj/tmp/bb/build.xml:41: Problem: failed to create task or type rapc Cause: The name is undefined. Action: Check the spelling. Action: Check that any custom tasks/types have been declared. Action: Check that any <presetdef>/<macrodef> declarations have taken place. Total time: 0 seconds --- Do you see any reason for the failure ? On Sun, 03 Nov 2013 11:09:11 -0500 Josh Kropf <jo...@sl...> wrote: > You should checkout some ant tuts, you require more than just the <rapc> > element in a build.xml file. > > On 11/01/2013 10:34 PM, YuGiOhJCJ Mailing-List wrote: > > Hello, > > > > It is the first time I am using bb-ant-tools. > > > > I think I have the prerequisites: > > 1)$ java -version > > java version "1.5.0" > > Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64) > > Java HotSpot(TM) Client VM (build 1.5.0-b64, mixed mode, sharing) > > 2)$ ant -version > > Apache Ant(TM) version 1.8.4 compiled on May 22 2012 > > 3)RIM JDE BlackBerry_JDE_4.6.1.exe (for net_rim_api.jar, rapc.jar and SignatureTool.jar) > > > > This is my Apache Ant's buildfile, written in XML: > > $ cat build.xml > > <!-- bare minimum usage --> > > <rapc output="ca_slashdev_MyKickAssApp" srcdir="${src.dir}" jdehome="${jde.home}" /> > > > > And now, what that is what happened when I try to build: > > $ ant > > Buildfile: /home/yugiohjcj/tmp/bb/build.xml > > > > BUILD FAILED > > /home/yugiohjcj/tmp/bb/build.xml:2: Unexpected element "{}rapc" {antlib:org.apache.tools.ant}rapc > > > > Total time: 0 seconds > > > > Do you see what it means ? > > > > Thank you. > > Best regards. > > > > ------------------------------------------------------------------------------ > > Android is increasing in popularity, but the open development platform that > > developers love is also attractive to malware creators. Download this white > > paper to learn more about secure code signing practices that can help keep > > Android apps secure. > > http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk > > _______________________________________________ > > Bb-ant-tools-general mailing list > > Bb-...@li... > > https://lists.sourceforge.net/lists/listinfo/bb-ant-tools-general > > > ------------------------------------------------------------------------------ > Android is increasing in popularity, but the open development platform that > developers love is also attractive to malware creators. Download this white > paper to learn more about secure code signing practices that can help keep > Android apps secure. > http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk > _______________________________________________ > Bb-ant-tools-general mailing list > Bb-...@li... > https://lists.sourceforge.net/lists/listinfo/bb-ant-tools-general |
|
From: Josh K. <jo...@sl...> - 2013-11-03 16:20:09
|
You should checkout some ant tuts, you require more than just the <rapc>
element in a build.xml file.
On 11/01/2013 10:34 PM, YuGiOhJCJ Mailing-List wrote:
> Hello,
>
> It is the first time I am using bb-ant-tools.
>
> I think I have the prerequisites:
> 1)$ java -version
> java version "1.5.0"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)
> Java HotSpot(TM) Client VM (build 1.5.0-b64, mixed mode, sharing)
> 2)$ ant -version
> Apache Ant(TM) version 1.8.4 compiled on May 22 2012
> 3)RIM JDE BlackBerry_JDE_4.6.1.exe (for net_rim_api.jar, rapc.jar and SignatureTool.jar)
>
> This is my Apache Ant's buildfile, written in XML:
> $ cat build.xml
> <!-- bare minimum usage -->
> <rapc output="ca_slashdev_MyKickAssApp" srcdir="${src.dir}" jdehome="${jde.home}" />
>
> And now, what that is what happened when I try to build:
> $ ant
> Buildfile: /home/yugiohjcj/tmp/bb/build.xml
>
> BUILD FAILED
> /home/yugiohjcj/tmp/bb/build.xml:2: Unexpected element "{}rapc" {antlib:org.apache.tools.ant}rapc
>
> Total time: 0 seconds
>
> Do you see what it means ?
>
> Thank you.
> Best regards.
>
> ------------------------------------------------------------------------------
> Android is increasing in popularity, but the open development platform that
> developers love is also attractive to malware creators. Download this white
> paper to learn more about secure code signing practices that can help keep
> Android apps secure.
> http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
> _______________________________________________
> Bb-ant-tools-general mailing list
> Bb-...@li...
> https://lists.sourceforge.net/lists/listinfo/bb-ant-tools-general
|
|
From: YuGiOhJCJ Mailing-L. <yug...@la...> - 2013-11-02 02:35:02
|
Hello,
It is the first time I am using bb-ant-tools.
I think I have the prerequisites:
1)$ java -version
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)
Java HotSpot(TM) Client VM (build 1.5.0-b64, mixed mode, sharing)
2)$ ant -version
Apache Ant(TM) version 1.8.4 compiled on May 22 2012
3)RIM JDE BlackBerry_JDE_4.6.1.exe (for net_rim_api.jar, rapc.jar and SignatureTool.jar)
This is my Apache Ant's buildfile, written in XML:
$ cat build.xml
<!-- bare minimum usage -->
<rapc output="ca_slashdev_MyKickAssApp" srcdir="${src.dir}" jdehome="${jde.home}" />
And now, what that is what happened when I try to build:
$ ant
Buildfile: /home/yugiohjcj/tmp/bb/build.xml
BUILD FAILED
/home/yugiohjcj/tmp/bb/build.xml:2: Unexpected element "{}rapc" {antlib:org.apache.tools.ant}rapc
Total time: 0 seconds
Do you see what it means ?
Thank you.
Best regards.
|
|
From: Jamie J. <ja...@no...> - 2012-07-17 12:21:48
|
I have just tried the patch as you suggested and it works.
Some additional thoughts regarding this change:
1. It is conceivable that older versions of rapc don't expect UTF-8.
Perhaps that was the case when bb-ant got started. My testing and
conclusions are based on the version of rapc included in the latest BB
Eclipse plugin.
2. I saw that someone recently posted in the bug list, that Japanese is not
supported. It might be a good idea to have him try this fix as well and/or
the -Dfile.encoding=utf-8 JVM option.
3. I will probably continue to use the -Dfile.encoding=utf-8 JVM option as
my needs also require that the ant output itself, which I capture to a
file, also use the UTF-8 encoding.
Thanks,
Jamie
On Tue, Jul 17, 2012 at 7:17 AM, Michael Donohue
<mic...@gm...>wrote:
> That sounds reasonably convincing. Should be easy to patch - have you
> tried making source code changes that achieve this?
>
> I think it is as simple as:
> ===================================================================
> --- src/ca/slashdev/bb/types/JdpType.java (revision 62)
> +++ src/ca/slashdev/bb/types/JdpType.java (working copy)
> @@ -158,7 +158,7 @@
> // create file if it does not exist
> if (!file.exists()) file.createNewFile();
>
> - out = new PrintStream(file);
> + out = new PrintStream(file, "UTF-8");
>
> out.printf("MIDlet-Name: %s\n", output);
> out.printf("MIDlet-Version: %s\n", version);
>
> -Michael
> (646) 833-8884
>
>
>
> On Sun, Jul 15, 2012 at 9:45 AM, Jamie Julius <ja...@no...> wrote:
>
>> In my previous post somehow the word "suggested" got tacked onto the end
>> of the URL.
>>
>> The correct URL is:
>> http://ontheeasiestway.wordpress.com/2011/06/03/rapc-file-invalid-utf-8/
>>
>> Jamie
>>
>>
>> On Sun, Jul 15, 2012 at 11:26 AM, Jamie Julius <ja...@no...>wrote:
>>
>>> Hi,
>>>
>>> I was a bit reluctant to touch the code itself, so what I did was edit
>>> the batch file, which runs ant.
>>>
>>> I added this flag to the JVM invocation: -Dfile.encoding=utf-8
>>>
>>> It did the trick! All working now.
>>>
>>> What originally triggered this problem was a description that contained
>>> a "right single quotation mark" (U+2019; 0x92 in Windows-1252; not present
>>> in ISO-8859-1). The rapc compiler complained about an invalid UTF-8
>>> encoding:
>>>
>>> [rapc] I/O Error: invalid UTF-8 encoding
>>>
>>> Similarly, descriptions or names which contained non-Latin characters
>>> (e.g., Hebrew), although generated no error messages, produced question
>>> marks in the ".rapc" file.
>>>
>>> A post I stumbled on here:
>>> http://ontheeasiestway.wordpress.com/2011/06/03/rapc-file-invalid-utf-8/suggested that the ".rapc" file should be encoded as UTF-8. By adding the
>>> -D flag above, bb-ant's default generation of the ".rapc" file becomes
>>> encoded as UTF-8, which the rapc compiler itself seemed to process well.
>>>
>>> Jamie
>>>
>>>
>>> On Sat, Jul 14, 2012 at 9:19 PM, Michael Donohue <
>>> mic...@gm...> wrote:
>>>
>>>> Have you tried this change, to see if it works? My experience so far
>>>> has been that RIM uses the system default encoding when working with
>>>> strings in developer tools, so writing the .rapc file with the system
>>>> default encoding would be the right way to communicate with RIM's rapc.
>>>>
>>>> -Michael
>>>>
>>>> On Wed, Jul 11, 2012 at 1:02 PM, Jamie Julius <ja...@no...>wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I believe that there might be a bug in JdpType.writeManifest.
>>>>>
>>>>> From what I have read elsewhere, the manifest (".rapc" file) should be
>>>>> written with the UTF-8 encoding.
>>>>>
>>>>> The current code uses PrintStream, which uses "the platform's default
>>>>> character encoding".
>>>>>
>>>>> As such, ".rapc" files created will not work when a field contains a
>>>>> character that has a different UTF-8 encoding than the platform's default
>>>>> character encoding (e.g., ISO-8859-1).
>>>>>
>>>>> Jamie
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> Live Security Virtual Conference
>>>>> Exclusive live event will cover all the ways today's security and
>>>>> threat landscape has changed and how IT managers can respond.
>>>>> Discussions
>>>>> will include endpoint security, mobile security and the latest in
>>>>> malware
>>>>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>>>>> _______________________________________________
>>>>> Bb-ant-tools-general mailing list
>>>>> Bb-...@li...
>>>>> https://lists.sourceforge.net/lists/listinfo/bb-ant-tools-general
>>>>>
>>>>>
>>>>
>>>
>>
>>
>> ------------------------------------------------------------------------------
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and
>> threat landscape has changed and how IT managers can respond. Discussions
>> will include endpoint security, mobile security and the latest in malware
>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> _______________________________________________
>> Bb-ant-tools-general mailing list
>> Bb-...@li...
>> https://lists.sourceforge.net/lists/listinfo/bb-ant-tools-general
>>
>>
>
|
|
From: Michael D. <mic...@gm...> - 2012-07-17 04:17:30
|
That sounds reasonably convincing. Should be easy to patch - have you
tried making source code changes that achieve this?
I think it is as simple as:
===================================================================
--- src/ca/slashdev/bb/types/JdpType.java (revision 62)
+++ src/ca/slashdev/bb/types/JdpType.java (working copy)
@@ -158,7 +158,7 @@
// create file if it does not exist
if (!file.exists()) file.createNewFile();
- out = new PrintStream(file);
+ out = new PrintStream(file, "UTF-8");
out.printf("MIDlet-Name: %s\n", output);
out.printf("MIDlet-Version: %s\n", version);
-Michael
(646) 833-8884
On Sun, Jul 15, 2012 at 9:45 AM, Jamie Julius <ja...@no...> wrote:
> In my previous post somehow the word "suggested" got tacked onto the end
> of the URL.
>
> The correct URL is:
> http://ontheeasiestway.wordpress.com/2011/06/03/rapc-file-invalid-utf-8/
>
> Jamie
>
>
> On Sun, Jul 15, 2012 at 11:26 AM, Jamie Julius <ja...@no...> wrote:
>
>> Hi,
>>
>> I was a bit reluctant to touch the code itself, so what I did was edit
>> the batch file, which runs ant.
>>
>> I added this flag to the JVM invocation: -Dfile.encoding=utf-8
>>
>> It did the trick! All working now.
>>
>> What originally triggered this problem was a description that contained a
>> "right single quotation mark" (U+2019; 0x92 in Windows-1252; not present in
>> ISO-8859-1). The rapc compiler complained about an invalid UTF-8 encoding:
>>
>> [rapc] I/O Error: invalid UTF-8 encoding
>>
>> Similarly, descriptions or names which contained non-Latin characters
>> (e.g., Hebrew), although generated no error messages, produced question
>> marks in the ".rapc" file.
>>
>> A post I stumbled on here:
>> http://ontheeasiestway.wordpress.com/2011/06/03/rapc-file-invalid-utf-8/suggested that the ".rapc" file should be encoded as UTF-8. By adding the
>> -D flag above, bb-ant's default generation of the ".rapc" file becomes
>> encoded as UTF-8, which the rapc compiler itself seemed to process well.
>>
>> Jamie
>>
>>
>> On Sat, Jul 14, 2012 at 9:19 PM, Michael Donohue <
>> mic...@gm...> wrote:
>>
>>> Have you tried this change, to see if it works? My experience so far
>>> has been that RIM uses the system default encoding when working with
>>> strings in developer tools, so writing the .rapc file with the system
>>> default encoding would be the right way to communicate with RIM's rapc.
>>>
>>> -Michael
>>>
>>> On Wed, Jul 11, 2012 at 1:02 PM, Jamie Julius <ja...@no...>wrote:
>>>
>>>> Hi,
>>>>
>>>> I believe that there might be a bug in JdpType.writeManifest.
>>>>
>>>> From what I have read elsewhere, the manifest (".rapc" file) should be
>>>> written with the UTF-8 encoding.
>>>>
>>>> The current code uses PrintStream, which uses "the platform's default
>>>> character encoding".
>>>>
>>>> As such, ".rapc" files created will not work when a field contains a
>>>> character that has a different UTF-8 encoding than the platform's default
>>>> character encoding (e.g., ISO-8859-1).
>>>>
>>>> Jamie
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Live Security Virtual Conference
>>>> Exclusive live event will cover all the ways today's security and
>>>> threat landscape has changed and how IT managers can respond.
>>>> Discussions
>>>> will include endpoint security, mobile security and the latest in
>>>> malware
>>>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>>>> _______________________________________________
>>>> Bb-ant-tools-general mailing list
>>>> Bb-...@li...
>>>> https://lists.sourceforge.net/lists/listinfo/bb-ant-tools-general
>>>>
>>>>
>>>
>>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Bb-ant-tools-general mailing list
> Bb-...@li...
> https://lists.sourceforge.net/lists/listinfo/bb-ant-tools-general
>
>
|
|
From: Jamie J. <ja...@no...> - 2012-07-15 16:46:00
|
In my previous post somehow the word "suggested" got tacked onto the end of the URL. The correct URL is: http://ontheeasiestway.wordpress.com/2011/06/03/rapc-file-invalid-utf-8/ Jamie On Sun, Jul 15, 2012 at 11:26 AM, Jamie Julius <ja...@no...> wrote: > Hi, > > I was a bit reluctant to touch the code itself, so what I did was edit the > batch file, which runs ant. > > I added this flag to the JVM invocation: -Dfile.encoding=utf-8 > > It did the trick! All working now. > > What originally triggered this problem was a description that contained a > "right single quotation mark" (U+2019; 0x92 in Windows-1252; not present in > ISO-8859-1). The rapc compiler complained about an invalid UTF-8 encoding: > > [rapc] I/O Error: invalid UTF-8 encoding > > Similarly, descriptions or names which contained non-Latin characters > (e.g., Hebrew), although generated no error messages, produced question > marks in the ".rapc" file. > > A post I stumbled on here: > http://ontheeasiestway.wordpress.com/2011/06/03/rapc-file-invalid-utf-8/suggested that the ".rapc" file should be encoded as UTF-8. By adding the > -D flag above, bb-ant's default generation of the ".rapc" file becomes > encoded as UTF-8, which the rapc compiler itself seemed to process well. > > Jamie > > > On Sat, Jul 14, 2012 at 9:19 PM, Michael Donohue < > mic...@gm...> wrote: > >> Have you tried this change, to see if it works? My experience so far has >> been that RIM uses the system default encoding when working with strings in >> developer tools, so writing the .rapc file with the system default encoding >> would be the right way to communicate with RIM's rapc. >> >> -Michael >> >> On Wed, Jul 11, 2012 at 1:02 PM, Jamie Julius <ja...@no...> wrote: >> >>> Hi, >>> >>> I believe that there might be a bug in JdpType.writeManifest. >>> >>> From what I have read elsewhere, the manifest (".rapc" file) should be >>> written with the UTF-8 encoding. >>> >>> The current code uses PrintStream, which uses "the platform's default >>> character encoding". >>> >>> As such, ".rapc" files created will not work when a field contains a >>> character that has a different UTF-8 encoding than the platform's default >>> character encoding (e.g., ISO-8859-1). >>> >>> Jamie >>> >>> >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Live Security Virtual Conference >>> Exclusive live event will cover all the ways today's security and >>> threat landscape has changed and how IT managers can respond. Discussions >>> will include endpoint security, mobile security and the latest in malware >>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>> _______________________________________________ >>> Bb-ant-tools-general mailing list >>> Bb-...@li... >>> https://lists.sourceforge.net/lists/listinfo/bb-ant-tools-general >>> >>> >> > |
|
From: Jamie J. <ja...@no...> - 2012-07-15 08:54:49
|
Hi, I was a bit reluctant to touch the code itself, so what I did was edit the batch file, which runs ant. I added this flag to the JVM invocation: -Dfile.encoding=utf-8 It did the trick! All working now. What originally triggered this problem was a description that contained a "right single quotation mark" (U+2019; 0x92 in Windows-1252; not present in ISO-8859-1). The rapc compiler complained about an invalid UTF-8 encoding: [rapc] I/O Error: invalid UTF-8 encoding Similarly, descriptions or names which contained non-Latin characters (e.g., Hebrew), although generated no error messages, produced question marks in the ".rapc" file. A post I stumbled on here: http://ontheeasiestway.wordpress.com/2011/06/03/rapc-file-invalid-utf-8/suggested that the ".rapc" file should be encoded as UTF-8. By adding the -D flag above, bb-ant's default generation of the ".rapc" file becomes encoded as UTF-8, which the rapc compiler itself seemed to process well. Jamie On Sat, Jul 14, 2012 at 9:19 PM, Michael Donohue <mic...@gm...>wrote: > Have you tried this change, to see if it works? My experience so far has > been that RIM uses the system default encoding when working with strings in > developer tools, so writing the .rapc file with the system default encoding > would be the right way to communicate with RIM's rapc. > > -Michael > > On Wed, Jul 11, 2012 at 1:02 PM, Jamie Julius <ja...@no...> wrote: > >> Hi, >> >> I believe that there might be a bug in JdpType.writeManifest. >> >> From what I have read elsewhere, the manifest (".rapc" file) should be >> written with the UTF-8 encoding. >> >> The current code uses PrintStream, which uses "the platform's default >> character encoding". >> >> As such, ".rapc" files created will not work when a field contains a >> character that has a different UTF-8 encoding than the platform's default >> character encoding (e.g., ISO-8859-1). >> >> Jamie >> >> >> >> >> >> ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. Discussions >> will include endpoint security, mobile security and the latest in malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> Bb-ant-tools-general mailing list >> Bb-...@li... >> https://lists.sourceforge.net/lists/listinfo/bb-ant-tools-general >> >> > |
|
From: Michael D. <mic...@gm...> - 2012-07-14 18:19:10
|
Have you tried this change, to see if it works? My experience so far has
been that RIM uses the system default encoding when working with strings in
developer tools, so writing the .rapc file with the system default encoding
would be the right way to communicate with RIM's rapc.
-Michael
On Wed, Jul 11, 2012 at 1:02 PM, Jamie Julius <ja...@no...> wrote:
> Hi,
>
> I believe that there might be a bug in JdpType.writeManifest.
>
> From what I have read elsewhere, the manifest (".rapc" file) should be
> written with the UTF-8 encoding.
>
> The current code uses PrintStream, which uses "the platform's default
> character encoding".
>
> As such, ".rapc" files created will not work when a field contains a
> character that has a different UTF-8 encoding than the platform's default
> character encoding (e.g., ISO-8859-1).
>
> Jamie
>
>
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Bb-ant-tools-general mailing list
> Bb-...@li...
> https://lists.sourceforge.net/lists/listinfo/bb-ant-tools-general
>
>
|
|
From: Jamie J. <ja...@no...> - 2012-07-11 21:10:12
|
Hi,
I believe that there might be a bug in JdpType.writeManifest.
>From what I have read elsewhere, the manifest (".rapc" file) should be
written with the UTF-8 encoding.
The current code uses PrintStream, which uses "the platform's default
character encoding".
As such, ".rapc" files created will not work when a field contains a
character that has a different UTF-8 encoding than the platform's default
character encoding (e.g., ISO-8859-1).
Jamie
|
|
From: <iva...@ya...> - 2012-05-01 04:39:28
|
Hi James, You can try to change the midlet-name attribute in the jar manifest file. Regards, Ivaylo Sent via BlackBerry Provided by Mobiltel -----Original Message----- From: Josh Kropf <jo...@sl...> Date: Sat, 28 Apr 2012 14:33:08 To: <bb-...@li...> Subject: Re: [Bb-ant-tools-general] Getting Different COD FIle and MIDlet Name? ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ |
|
From: Josh K. <jo...@sl...> - 2012-04-28 18:50:55
|
Hi James, I'm afraid it's been quite some time since I've done any BB dev but if memory serves you shouldn't have a problem renaming the COD files. You just want to avoid renaming a COD file that has already been deployed to users. On 4/24/2012 10:47 AM, James Closs wrote: > Hi, > > Firstly - thanks for a great tool! > > I am using bb-ant-tools on OS X to convert JAR files to COD files. I'm > just using ANT directly, no Eclipse plug-in. > > I have got the process to work OK using the following type of approach > in my build file, where 'MyApp' is the name of the MIDlet... > > <rapc destdir="output/cod" output="MyApp" > jdehome="/Volumes/Development/blackberry-jde"> > <jdp title="MyApp" version="1.0" type="midlet" > midletclass="MenuMIDlet" icon="icn.png"/> > <src> > <fileset dir="jar/"> > <include name="MyApp.jar"/> > </fileset> > </src> > </rapc> > > ...the problem I am having is that I need the COD file to have a > different name to the MIDlet name but if I specify a different name in > the 'output' parameter I get an error like the following... > > [rapc] Error!905: Descriptor duplicate attribute mismatch: > 'MIDlet-Name' old value: 'MyApp' new value: 'my_new_filename' > > ...is there a way to specify a different name for the COD file that > won't cause this issue? I'm told that simply renaming the COD file > afterwards won't work. > > cheers > > ==== > > > James Closs, Director, bitBull Ltd > > > http://www.bitbull.com > > > 07771 991171 > > > ==== > > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > _______________________________________________ > Bb-ant-tools-general mailing list > Bb-...@li... > https://lists.sourceforge.net/lists/listinfo/bb-ant-tools-general |
|
From: James C. <ja...@bi...> - 2012-04-24 14:47:59
|
Hi, Firstly - thanks for a great tool! I am using bb-ant-tools on OS X to convert JAR files to COD files. I'm just using ANT directly, no Eclipse plug-in. I have got the process to work OK using the following type of approach in my build file, where 'MyApp' is the name of the MIDlet... <rapc destdir="output/cod" output="MyApp" jdehome="/Volumes/Development/blackberry-jde"> <jdp title="MyApp" version="1.0" type="midlet" midletclass="MenuMIDlet" icon="icn.png"/> <src> <fileset dir="jar/"> <include name="MyApp.jar"/> </fileset> </src> </rapc> ...the problem I am having is that I need the COD file to have a different name to the MIDlet name but if I specify a different name in the 'output' parameter I get an error like the following... [rapc] Error!905: Descriptor duplicate attribute mismatch: 'MIDlet-Name' old value: 'MyApp' new value: 'my_new_filename' ...is there a way to specify a different name for the COD file that won't cause this issue? I'm told that simply renaming the COD file afterwards won't work. cheers ==== James Closs, Director, bitBull Ltd http://www.bitbull.com 07771 991171 ==== |
|
From: Winter, M. <m.w...@sa...> - 2012-04-12 13:54:43
|
Hi,
Try putting the images below the resourcetest folder and not via ../res/img in a folder that is accessed via a parent folder
That was my observation, that rapc will only maintain structure if resources are in a subfolder to the location where the rapc file is generated.
Regards
Markus
From: dhiral pandya [mailto:dhi...@ya...]
Sent: Donnerstag, 12. April 2012 15:02
To: bb-...@li...
Subject: [Bb-ant-tools-general] Nice Tool But How to maintain Directory Structure Of Resource Files
I am using your bb ant tool and it's work fine.
But can you help me about how to maintain resource directory structure in this tool
For example i added all images in res/img/ folder now when i generate .cod file it added all images in root folder i mean it
did not maintain directory structure
My build.xml is
<?xml version="1.0" encoding="UTF-8"?>
<project name="${description}" default="buildRIM" basedir=".">
<taskdef
resource="bb-ant-defs.xml"
/>
<property name="jdehome"
value="C:\Program Files\Research In Motion\BlackBerry JDE 6.0.0" />
<property name="simulator" value="${jdehome}\simulator" />
<property name="bin" value="${jdehome}\bin" />
<target name="buildRIM" description="Builds Project">
<rapc jdehome="${jdehome}"
jdkhome="C:\Program Files\Java\jdk1.6.0_16"
destdir="resourcetest/op"
output="omtTest"
quiet="false">
<jdp type="cldc"
title="omt Test"
vendor="Vendor=Research In Motion Ltd."
version="Version=0.9"
description="HelloWorld Application"
arguments=""
systemmodule="false"
runonstartup="false"
startuptier="7"
ribbonposition="0"
icon="../res/img/icon.png">
</jdp>
<src>
<fileset dir=".">
<include name="resourcetest/src/**/**" />
</fileset>
</src>
</rapc>
<exec executable="cmd.exe" dir="${bin}" spawn="true">
<arg value="/c"/>
<arg value="sigtool.bat"/>
</exec>
</target>
</project>
Thanks
Dhiral
|
|
From: dhiral p. <dhi...@ya...> - 2012-04-12 13:02:05
|
I am using your bb ant tool and it's work fine.
But can you help me about how to maintain resource directory structure in this tool
For example i added all images in res/img/ folder now when i generate .cod file it added all images in root folder i mean it
did not maintain directory structure
My build.xml is
<?xml version="1.0" encoding="UTF-8"?>
<project name="${description}" default="buildRIM" basedir=".">
<taskdef
resource="bb-ant-defs.xml"
/>
<property name="jdehome"
value="C:\Program Files\Research In Motion\BlackBerry JDE 6.0.0" />
<property name="simulator" value="${jdehome}\simulator" />
<property name="bin" value="${jdehome}\bin" />
<target name="buildRIM" description="Builds Project">
<rapc jdehome="${jdehome}"
jdkhome="C:\Program Files\Java\jdk1.6.0_16"
destdir="resourcetest/op"
output="omtTest"
quiet="false">
<jdp type="cldc"
title="omt Test"
vendor="Vendor=Research In Motion Ltd."
version="Version=0.9"
description="HelloWorld Application"
arguments=""
systemmodule="false"
runonstartup="false"
startuptier="7"
ribbonposition="0"
icon="../res/img/icon.png">
</jdp>
<src>
<fileset dir=".">
<include name="resourcetest/src/**/**" />
</fileset>
</src>
</rapc>
<exec executable="cmd.exe" dir="${bin}" spawn="true">
<arg value="/c"/>
<arg value="sigtool.bat"/>
</exec>
</target>
</project>
Thanks
Dhiral |
|
From: Cong K. N. <con...@in...> - 2012-01-09 11:11:39
|
Hi everybody, I'm using BB-ant-tools, version 1.2.13 to compile a project in Blackberry. In fact, in my module I use some definitions in a Blackberry resource file (src/mypackage/AppBB.rrc). I would like to generate the file AppBBResource by using ANT as what is done with Blackberry Eclipse plugin. Could anyone tell me if it is possible? If yes, please tell me how to configure the file build.xml so that I can generate this file. Thanks in advance, Kinh |
|
From: android u. <tes...@gm...> - 2011-07-25 22:48:58
|
Thanks.
I have added this in my ant script to copy my blackberry to simulator.
<target name="deploy-to-simulator" description="Copy debug files to
simulator folder">
<copy todir="${simulator.dir}/">
<fileset dir="${staging.dir}">
<include name="*.cod" />
<include name="*.cso" />
<include name="*.debug" />
</fileset>
</copy>
</target>
But what do i need to do in 'use eclipse to connect to JDWP'?
I have installed this in my Windows XP environment:
*BlackBerry Java Plug-in for Eclipse v1.3 MR*
*
*
And i start my Blackberry simulator by doing 'Research In Motion->Blackberry
JDE 6.0->Device Simulator'.
I am not sure how to get eclipse to connect to the Blackberry simulator'
Thank you for any help.
On Mon, Jul 25, 2011 at 7:21 AM, Josh Kropf <jo...@sl...> wrote:
> I'm not sure if there is some way to make the simulator load your app
> while it's running. There is a command line tool that comes with the
> simulator called fledgecontroller.exe (or similar) which might be of
> interest.
>
> When I was doing blackberry dev I would typically use the JDWP program for
> launching the simulator. In my script I had a task for copying the compiled
> files over to the simulators directory and then I would use eclipse to
> connect to JDWP (and thus launch the simulator).
>
>
> On 11-07-22 3:12 PM, android user wrote:
>
> HI,
>
> Can you please tell me How can I use bb-ant-tools to launch the
> blackberry application on simulator?
> If I can't use bb-ant-tools to launch? what can I do to launch?
>
> Thank you.
>
>
>
> ------------------------------------------------------------------------------
> 10 Tips for Better Web Security
> Learn 10 ways to better secure your business today. Topics covered include:
> Web security, SSL, hacker attacks & Denial of Service (DoS), private keys,
> security Microsoft Exchange, secure Instant Messaging, and much more.http://www.accelacomm.com/jaw/sfnl/114/51426210/
>
>
>
> _______________________________________________
> Bb-ant-tools-general mailing lis...@li...://lists.sourceforge.net/lists/listinfo/bb-ant-tools-general
>
>
>
> ------------------------------------------------------------------------------
> Storage Efficiency Calculator
> This modeling tool is based on patent-pending intellectual property that
> has been used successfully in hundreds of IBM storage optimization engage-
> ments, worldwide. Store less, Store more with what you own, Move data to
> the right place. Try It Now!
> http://www.accelacomm.com/jaw/sfnl/114/51427378/
> _______________________________________________
> Bb-ant-tools-general mailing list
> Bb-...@li...
> https://lists.sourceforge.net/lists/listinfo/bb-ant-tools-general
>
>
|
|
From: Josh K. <jo...@sl...> - 2011-07-25 14:21:14
|
I'm not sure if there is some way to make the simulator load your app while it's running. There is a command line tool that comes with the simulator called fledgecontroller.exe (or similar) which might be of interest. When I was doing blackberry dev I would typically use the JDWP program for launching the simulator. In my script I had a task for copying the compiled files over to the simulators directory and then I would use eclipse to connect to JDWP (and thus launch the simulator). On 11-07-22 3:12 PM, android user wrote: > HI, > > Can you please tell me How can I use bb-ant-tools to launch the > blackberry application on simulator? > If I can't use bb-ant-tools to launch? what can I do to launch? > > Thank you. > > > > ------------------------------------------------------------------------------ > 10 Tips for Better Web Security > Learn 10 ways to better secure your business today. Topics covered include: > Web security, SSL, hacker attacks& Denial of Service (DoS), private keys, > security Microsoft Exchange, secure Instant Messaging, and much more. > http://www.accelacomm.com/jaw/sfnl/114/51426210/ > > > _______________________________________________ > Bb-ant-tools-general mailing list > Bb-...@li... > https://lists.sourceforge.net/lists/listinfo/bb-ant-tools-general |
|
From: android u. <tes...@gm...> - 2011-07-22 19:13:04
|
HI, Can you please tell me How can I use bb-ant-tools to launch the blackberry application on simulator? If I can't use bb-ant-tools to launch? what can I do to launch? Thank you. |
|
From: android u. <tes...@gm...> - 2011-07-21 18:22:16
|
okay. it works after I added the 'jdkhome' attribute to rapc.
On Thu, Jul 21, 2011 at 10:31 AM, android user <tes...@gm...> wrote:
> Thanks. I have tried that. But I still get the same error. I am running on
> Windows XP.
>
> Thank you for any more idea.
>
>
> On Thu, Jul 21, 2011 at 10:14 AM, Josh Kropf <jo...@sl...> wrote:
>
>> That's a lot of source files (235). Windows has problems with very long
>> command lines.
>>
>> Try telling rapc task to generate source list:
>>
>> <rapc [...] generatesourcelist="true">
>>
>>
>> On 07/21/2011 01:06 PM, android user wrote:
>>
>> Josh,
>>
>> Thank you. I have tried what you said. But I still get the same error. I
>> do have 'javac' installed and set in the %PATH% correctly.
>> Thank you for any more ideas.
>>
>> U:\MyProject_RIM_6.0>ant build
>> Buildfile: U:\MyProject_RIM_6.0\build.xml
>>
>> -init:
>>
>> build:
>> [rapc] Compiling 235 source files to MyProject.cod
>> [rapc] Error: Cannot run program "javac": CreateProcess error=2, The
>> system
>> cannot find the file specified
>>
>> BUILD FAILED
>> U:\MyProject_RIM_6.0\build.xml:48: Java returned: -1
>>
>> Total time: 49 seconds
>>
>> U:\MyProject_RIM_6.0>javac
>> Usage: javac <options> <source files>
>> where possible options include:
>> -g Generate all debugging info
>> -g:none Generate no debugging info
>> -g:{lines,vars,source} Generate only some debugging info
>> -nowarn Generate no warnings
>> -verbose Output messages about what the compiler is
>> doing
>> -deprecation Output source locations where deprecated APIs
>> are u
>> sed
>> -classpath <path> Specify where to find user class files and
>> annotati
>> on processors
>> -cp <path> Specify where to find user class files and
>> annotati
>> on processors
>> -sourcepath <path> Specify where to find input source files
>> -bootclasspath <path> Override location of bootstrap class files
>> -extdirs <dirs> Override location of installed extensions
>> -endorseddirs <dirs> Override location of endorsed standards path
>> -proc:{none,only} Control whether annotation processing and/or
>> compil
>> ation is done.
>> -processor <class1>[,<class2>,<class3>...]Names of the annotation
>> processors t
>> o run; bypasses default discovery process
>> -processorpath <path> Specify where to find annotation processors
>> -d <directory> Specify where to place generated class files
>> -s <directory> Specify where to place generated source files
>> -implicit:{none,class} Specify whether or not to generate class
>> files for
>> implicitly referenced files
>> -encoding <encoding> Specify character encoding used by source
>> files
>> -source <release> Provide source compatibility with specified
>> release
>>
>> -target <release> Generate class files for specific VM
>> version
>> -version Version information
>> -help Print a synopsis of standard options
>> -Akey[=value] Options to pass to annotation processors
>> -X Print a synopsis of nonstandard options
>> -J<flag> Pass <flag> directly to the runtime system
>>
>>
>> U:\MyProject_RIM_6.0>echo %PATH%
>> C:\Program
>> Files\Java\jdk1.6.0_26\bin\;U:\apache-ant-1.8.2-bin\apache-ant-1.8.2\
>> bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
>> Files\Win
>> dows
>> Imaging\;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\WINDOWS\system32\Win
>> dowsPowerShell\v1.0
>>
>>
>> On Thu, Jul 21, 2011 at 7:54 AM, Josh Kropf <jo...@sl...> wrote:
>>
>>> Sorry, this is the first time I've seen this happen.
>>>
>>> You might want to verify javac is in the PATH by simply trying to run it
>>> from the same command prompt you use to run ant. If you get a "command not
>>> found" you know where to start looking.
>>>
>>>
>>> On 11-07-20 8:17 PM, android user wrote:
>>>
>>> Hi,
>>>
>>> I have installed bb-ant-tools to build a blackberry project using ant
>>> But when I use the rapc target, I get a 'rapc can't start javac process'
>>> error.
>>> And I have added 'C:\Program Files\Java\jdk1.6.0_26\bin\' to the PATH
>>> System Variable but I still get the same error.
>>>
>>> Can you please tell me how to fix it?
>>>
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> 5 Ways to Improve & Secure Unified Communications
>>> Unified Communications promises greater efficiencies for business. UC can
>>> improve internal communications as well as offer faster, more efficient ways
>>> to interact with customers and streamline customer service. Learn more!http://www.accelacomm.com/jaw/sfnl/114/51426253/
>>>
>>>
>>>
>>> _______________________________________________
>>> Bb-ant-tools-general mailing lis...@li...://lists.sourceforge.net/lists/listinfo/bb-ant-tools-general
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> 5 Ways to Improve & Secure Unified Communications
>>> Unified Communications promises greater efficiencies for business. UC can
>>> improve internal communications as well as offer faster, more efficient
>>> ways
>>> to interact with customers and streamline customer service. Learn more!
>>> http://www.accelacomm.com/jaw/sfnl/114/51426253/
>>> _______________________________________________
>>> Bb-ant-tools-general mailing list
>>> Bb-...@li...
>>> https://lists.sourceforge.net/lists/listinfo/bb-ant-tools-general
>>>
>>>
>>
>>
>> ------------------------------------------------------------------------------
>> 5 Ways to Improve & Secure Unified Communications
>> Unified Communications promises greater efficiencies for business. UC can
>> improve internal communications as well as offer faster, more efficient
>> ways
>> to interact with customers and streamline customer service. Learn more!
>> http://www.accelacomm.com/jaw/sfnl/114/51426253/
>> _______________________________________________
>> Bb-ant-tools-general mailing list
>> Bb-...@li...
>> https://lists.sourceforge.net/lists/listinfo/bb-ant-tools-general
>>
>>
>
|
|
From: android u. <tes...@gm...> - 2011-07-21 17:32:01
|
Thanks. I have tried that. But I still get the same error. I am running on
Windows XP.
Thank you for any more idea.
On Thu, Jul 21, 2011 at 10:14 AM, Josh Kropf <jo...@sl...> wrote:
> That's a lot of source files (235). Windows has problems with very long
> command lines.
>
> Try telling rapc task to generate source list:
>
> <rapc [...] generatesourcelist="true">
>
>
> On 07/21/2011 01:06 PM, android user wrote:
>
> Josh,
>
> Thank you. I have tried what you said. But I still get the same error. I
> do have 'javac' installed and set in the %PATH% correctly.
> Thank you for any more ideas.
>
> U:\MyProject_RIM_6.0>ant build
> Buildfile: U:\MyProject_RIM_6.0\build.xml
>
> -init:
>
> build:
> [rapc] Compiling 235 source files to MyProject.cod
> [rapc] Error: Cannot run program "javac": CreateProcess error=2, The
> system
> cannot find the file specified
>
> BUILD FAILED
> U:\MyProject_RIM_6.0\build.xml:48: Java returned: -1
>
> Total time: 49 seconds
>
> U:\MyProject_RIM_6.0>javac
> Usage: javac <options> <source files>
> where possible options include:
> -g Generate all debugging info
> -g:none Generate no debugging info
> -g:{lines,vars,source} Generate only some debugging info
> -nowarn Generate no warnings
> -verbose Output messages about what the compiler is
> doing
> -deprecation Output source locations where deprecated APIs
> are u
> sed
> -classpath <path> Specify where to find user class files and
> annotati
> on processors
> -cp <path> Specify where to find user class files and
> annotati
> on processors
> -sourcepath <path> Specify where to find input source files
> -bootclasspath <path> Override location of bootstrap class files
> -extdirs <dirs> Override location of installed extensions
> -endorseddirs <dirs> Override location of endorsed standards path
> -proc:{none,only} Control whether annotation processing and/or
> compil
> ation is done.
> -processor <class1>[,<class2>,<class3>...]Names of the annotation
> processors t
> o run; bypasses default discovery process
> -processorpath <path> Specify where to find annotation processors
> -d <directory> Specify where to place generated class files
> -s <directory> Specify where to place generated source files
> -implicit:{none,class} Specify whether or not to generate class files
> for
> implicitly referenced files
> -encoding <encoding> Specify character encoding used by source
> files
> -source <release> Provide source compatibility with specified
> release
>
> -target <release> Generate class files for specific VM version
> -version Version information
> -help Print a synopsis of standard options
> -Akey[=value] Options to pass to annotation processors
> -X Print a synopsis of nonstandard options
> -J<flag> Pass <flag> directly to the runtime system
>
>
> U:\MyProject_RIM_6.0>echo %PATH%
> C:\Program
> Files\Java\jdk1.6.0_26\bin\;U:\apache-ant-1.8.2-bin\apache-ant-1.8.2\
> bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
> Files\Win
> dows
> Imaging\;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\WINDOWS\system32\Win
> dowsPowerShell\v1.0
>
>
> On Thu, Jul 21, 2011 at 7:54 AM, Josh Kropf <jo...@sl...> wrote:
>
>> Sorry, this is the first time I've seen this happen.
>>
>> You might want to verify javac is in the PATH by simply trying to run it
>> from the same command prompt you use to run ant. If you get a "command not
>> found" you know where to start looking.
>>
>>
>> On 11-07-20 8:17 PM, android user wrote:
>>
>> Hi,
>>
>> I have installed bb-ant-tools to build a blackberry project using ant
>> But when I use the rapc target, I get a 'rapc can't start javac process'
>> error.
>> And I have added 'C:\Program Files\Java\jdk1.6.0_26\bin\' to the PATH
>> System Variable but I still get the same error.
>>
>> Can you please tell me how to fix it?
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> 5 Ways to Improve & Secure Unified Communications
>> Unified Communications promises greater efficiencies for business. UC can
>> improve internal communications as well as offer faster, more efficient ways
>> to interact with customers and streamline customer service. Learn more!http://www.accelacomm.com/jaw/sfnl/114/51426253/
>>
>>
>>
>> _______________________________________________
>> Bb-ant-tools-general mailing lis...@li...://lists.sourceforge.net/lists/listinfo/bb-ant-tools-general
>>
>>
>>
>> ------------------------------------------------------------------------------
>> 5 Ways to Improve & Secure Unified Communications
>> Unified Communications promises greater efficiencies for business. UC can
>> improve internal communications as well as offer faster, more efficient
>> ways
>> to interact with customers and streamline customer service. Learn more!
>> http://www.accelacomm.com/jaw/sfnl/114/51426253/
>> _______________________________________________
>> Bb-ant-tools-general mailing list
>> Bb-...@li...
>> https://lists.sourceforge.net/lists/listinfo/bb-ant-tools-general
>>
>>
>
>
> ------------------------------------------------------------------------------
> 5 Ways to Improve & Secure Unified Communications
> Unified Communications promises greater efficiencies for business. UC can
> improve internal communications as well as offer faster, more efficient
> ways
> to interact with customers and streamline customer service. Learn more!
> http://www.accelacomm.com/jaw/sfnl/114/51426253/
> _______________________________________________
> Bb-ant-tools-general mailing list
> Bb-...@li...
> https://lists.sourceforge.net/lists/listinfo/bb-ant-tools-general
>
>
|
|
From: Josh K. <jo...@sl...> - 2011-07-21 17:15:03
|
That's a lot of source files (235). Windows has problems with very long
command lines.
Try telling rapc task to generate source list:
<rapc [...] generatesourcelist="true">
On 07/21/2011 01:06 PM, android user wrote:
> Josh,
>
> Thank you. I have tried what you said. But I still get the same error.
> I do have 'javac' installed and set in the %PATH% correctly.
> Thank you for any more ideas.
>
> U:\MyProject_RIM_6.0>ant build
> Buildfile: U:\MyProject_RIM_6.0\build.xml
>
> -init:
>
> build:
> [rapc] Compiling 235 source files to MyProject.cod
> [rapc] Error: Cannot run program "javac": CreateProcess error=2,
> The system
> cannot find the file specified
>
> BUILD FAILED
> U:\MyProject_RIM_6.0\build.xml:48: Java returned: -1
>
> Total time: 49 seconds
>
> U:\MyProject_RIM_6.0>javac
> Usage: javac <options> <source files>
> where possible options include:
> -g Generate all debugging info
> -g:none Generate no debugging info
> -g:{lines,vars,source} Generate only some debugging info
> -nowarn Generate no warnings
> -verbose Output messages about what the compiler
> is doing
> -deprecation Output source locations where deprecated
> APIs are u
> sed
> -classpath <path> Specify where to find user class files
> and annotati
> on processors
> -cp <path> Specify where to find user class files
> and annotati
> on processors
> -sourcepath <path> Specify where to find input source files
> -bootclasspath <path> Override location of bootstrap class files
> -extdirs <dirs> Override location of installed extensions
> -endorseddirs <dirs> Override location of endorsed standards path
> -proc:{none,only} Control whether annotation processing
> and/or compil
> ation is done.
> -processor <class1>[,<class2>,<class3>...]Names of the annotation
> processors t
> o run; bypasses default discovery process
> -processorpath <path> Specify where to find annotation processors
> -d <directory> Specify where to place generated class files
> -s <directory> Specify where to place generated source files
> -implicit:{none,class} Specify whether or not to generate class
> files for
> implicitly referenced files
> -encoding <encoding> Specify character encoding used by source
> files
> -source <release> Provide source compatibility with
> specified release
>
> -target <release> Generate class files for specific VM version
> -version Version information
> -help Print a synopsis of standard options
> -Akey[=value] Options to pass to annotation processors
> -X Print a synopsis of nonstandard options
> -J<flag> Pass <flag> directly to the runtime system
>
>
> U:\MyProject_RIM_6.0>echo %PATH%
> C:\Program
> Files\Java\jdk1.6.0_26\bin\;U:\apache-ant-1.8.2-bin\apache-ant-1.8.2\
> bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
> Files\Win
> dows
> Imaging\;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\WINDOWS\system32\Win
> dowsPowerShell\v1.0
>
>
> On Thu, Jul 21, 2011 at 7:54 AM, Josh Kropf <jo...@sl...
> <mailto:jo...@sl...>> wrote:
>
> Sorry, this is the first time I've seen this happen.
>
> You might want to verify javac is in the PATH by simply trying to
> run it from the same command prompt you use to run ant. If you get
> a "command not found" you know where to start looking.
>
>
> On 11-07-20 8:17 PM, android user wrote:
>> Hi,
>>
>> I have installed bb-ant-tools to build a blackberry project using ant
>> But when I use the rapc target, I get a 'rapc can't start javac
>> process' error.
>> And I have added 'C:\Program Files\Java\jdk1.6.0_26\bin\' to the
>> PATH System Variable but I still get the same error.
>>
>> Can you please tell me how to fix it?
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> 5 Ways to Improve& Secure Unified Communications
>> Unified Communications promises greater efficiencies for business. UC can
>> improve internal communications as well as offer faster, more efficient ways
>> to interact with customers and streamline customer service. Learn more!
>> http://www.accelacomm.com/jaw/sfnl/114/51426253/
>>
>>
>> _______________________________________________
>> Bb-ant-tools-general mailing list
>> Bb-...@li... <mailto:Bb-...@li...>
>> https://lists.sourceforge.net/lists/listinfo/bb-ant-tools-general
>
> ------------------------------------------------------------------------------
> 5 Ways to Improve & Secure Unified Communications
> Unified Communications promises greater efficiencies for business.
> UC can
> improve internal communications as well as offer faster, more
> efficient ways
> to interact with customers and streamline customer service. Learn
> more!
> http://www.accelacomm.com/jaw/sfnl/114/51426253/
> _______________________________________________
> Bb-ant-tools-general mailing list
> Bb-...@li...
> <mailto:Bb-...@li...>
> https://lists.sourceforge.net/lists/listinfo/bb-ant-tools-general
>
>
|
|
From: android u. <tes...@gm...> - 2011-07-21 17:13:38
|
That won't work, right? JRE does not have 'javac'. On Thu, Jul 21, 2011 at 10:08 AM, Daniel Baird <da...@sl...> wrote: > What happens if you point Java at a JRE...not a JDK. > Sent from my Slacker enabled BlackBerry > > -----Original Message----- > From: android user <tes...@gm...> > Date: Thu, 21 Jul 2011 10:06:54 > To: Josh Kropf<jo...@sl...> > Cc: <bb-...@li...> > Subject: Re: [Bb-ant-tools-general] rapc can't start javac process > > > ------------------------------------------------------------------------------ > 5 Ways to Improve & Secure Unified Communications > Unified Communications promises greater efficiencies for business. UC can > improve internal communications as well as offer faster, more efficient > ways > to interact with customers and streamline customer service. Learn more! > http://www.accelacomm.com/jaw/sfnl/114/51426253/ > > |