Command line compilation / build and signature

I'm having a problem minor building my application in the command line.

Lets take this Simple application:

import net.rim.blackberry.api.browser.*;
import net.rim.device.api.ui.UiApplication;

final class AppLaunch extends UiApplication
{
    public static void main(String[] args)
    {
        // Create a new instance of the application.
        AppLaunch theApp = new AppLaunch();

        // To make the application enter the event thread and start processing messages,
        // we invoke the enterEventDispatcher() method.
        theApp.enterEventDispatcher();
    } 

    private AppLaunch()
    {
        // do stuff
        System.exit(0);
    }
}

I use the following to compile the command line application.

rapc import=net_rim_api.jar codename=D:\AppLaunch\AppLaunch\AppLaunch -midlet D:\AppLaunch\AppLaunch\AppLaunch.jad D:\AppLaunch\AppLaunch\src\AppLaunch.java

a COD, Jar and the rest of the files that all seem to be "compiled" but I get the following compiler error - and the software will not work on Blackberry - although the files are generated and they seem installs successfully on the BB, there is no 'Icon' that is created, and I suppose it has something to do with the compiler could not find the main method :

...

Resolving
Optimizing
D:\AppLaunch\AppLaunch\src\AppLaunch.java:9: Warning!: method 'AppLaunch.main(St
ring[])' not invoked.
Populating
Warning!: No definition found for exported string: com.rim.resources.AppLaunchRI
MResources._description
Warning!: No definition found for exported string: com.rim.resources.AppLaunchRI
MResources._appNames
Warning!: No definition found for exported string: com.rim.resources.AppLaunchRI
MResources._appArgs
Warning!: No definition found for exported string: com.rim.resources.AppLaunchRI
MResources._appFlags
Warning!: No definition found for exported string: com.rim.resources.AppLaunchRI
MResources._appPosition
Warning!: No definition found for exported string: com.rim.resources.AppLaunchRI
MResources._appIcons
Warning!: No definition found for exported string: com.rim.resources.AppLaunchRI
MResources._appNameResourceBundles
Warning!: No definition found for exported string: com.rim.resources.AppLaunchRI
MResources._appNameResourceIds
Warning!: No definition found for exported string: com.rim.resources.AppLaunchRI
MResources._languageResources
Warning!: No definition found for exported string: com.rim.resources.AppLaunchRI
MResources._securityVendorIds
Warning!: No definition found for exported string: com.rim.resources.AppLaunchRI
MResources._securityDescriptions
Warning!: No definition found for exported string: com.rim.resources.AppLaunchRI
MResources._securityKeys
Warning!: No definition found for exported string: com.rim.resources.AppLaunchRI
MResources..UNDF
Warning!: No definition found for exported string: com.rim.resources.AppLaunchRI
MResources._additionalOptions
No errors.

When I have this build inside the Eclipse, everything works fine and the app works well on the Blackberry.

Did I miss something specific in the command line for compiling?

And to save everybody a headache reading this, this is the command to sign the application from the command line (which seems to work):

 java -jar "SignatureTool.jar" -a -c -p  D:\AppLaunch\AppLaunch\AppLaunch.cod

I'm sure I thought about her.

I had to change - midlet to-CLDC

rapc import=net_rim_api.jar codename=D:\AppLaunch\AppLaunch\AppLaunch -CLDC D:\AppLaunch\AppLaunch\AppLaunch.jad D:\AppLaunch\AppLaunch\src\AppLaunch.java

Tags: BlackBerry Developers

Similar Questions

  • Strange error with RHCL RH10 and RH11 command-line compilation

    Hello once again, RoboHelp gurus!

    I feel a strange error using the compilation process command-line rchl in RoboHelp 10 and 11 of RoboHelp.

    Here is the command I use:

    CD "C:\Program Files (x 86) \Adobe\Adobe RoboHelp 10\RoboHTML.

    RhCl "C:\folder\project.xpj"-l "SSL_Name" o "c:\outputfolder" g "C:\log\folder\logfile.txt".

    When I generate the log of the cmd file, I see an error "LILo: BIBCientInit could not initialize" twice in the window of cmd prompt while compiling is the treatment.  The cmd prompt window looks like this:


    C:\Program Files (x 86) \Adobe\Adobe RoboHelp 10\RoboHTML > RhCl "C:\projectfolder\project.xpj"-l "SSL_Name" o "c:\outputfolder" g "C:\logfolder\logfile.txt" [press ENTER]

    LILo: Could not initialize BIBCientInit

    LILo: Could not initialize BIBCientInit

    C:\Program Files (x 86) \Adobe\Adobe RoboHelp 10\RoboHTML >


    The created FichierJournal.txt has no mention of ""LILo: BIBCientInit could not initialize "it contains."  Compiling builds without problem, as far as I can tell.


    The same thing happens when I do not create the log during the cmd file and it errors record right "compensation output folder.  But, it seems to me that the output folder does not actually get disabled.


    This allows the viewing of the compilation process line by line in the cmd prompt window.  When the compiler indicates "output Compensation folder...". ', the ' LILo: BIBCientInit failed to initialize "error message appears twice, and then the process continues.

    Here's the command:

    CD "C:\Program Files (x 86) \Adobe\Adobe RoboHelp 10\RoboHTML.

    RhCl 'C:\folder\project.xpj'-l 'SSL_Name' o 'c:\outputfolder '.

    The cmd prompt window looks like this:


    C:\Program Files (x 86) \Adobe\Adobe RoboHelp 10\RoboHTML > RhCl 'C:\projectfolder\project.xpj'-l 'SSL_Name' o 'c:\outputfolder"[press ENTER]

    Adobe (R) RoboHelp version 10.0.0.287 Project command line compiler

    Copyright (C) 2006-2007 Adobe Systems Incorporated and its licensors. All rights reserved.

    Project: C:\folder\project.xpj

    Page layout: SSL_Name.

    Output: c:\outputfolder.

    Scanning for the compilation project...

    Review completed.

    ATTENTION: No luggage description of the file.

    From compilation...

    HTMLHELP 10.0.0.287 preprocessor

    Compilation C:\folder\! chm_tmp_folder_0\project.xpj ...

    Preparation create HTMLHELP...

    Compensation output folder...

    LILo: Could not initialize BIBCientInit

    LILo: Could not initialize BIBCientInit

    Preparation of the HTML Help files...

    Copying files...

    ...

    It's okay if it's a HTMLHelp or WebHelp output.  Any thoughts on what is this error and what is the cause?

    I've been away from RoboHelp for about 9 months, but I'll be back on the same projects and the same version of RoboHelp 10 and the same compilation process.  The difference is that I have a new laptop.

    Thank you very much in advance for your time!

    EA

    Adobe was able to recreate this issue on their end, and a bug was created for her.

  • Flash command line compiler

    Since flash became a complex environment and application are often part of the huge and difficult to maintain projects is very very important for us and many of them like us (as I see hundreds forums) to have a .fla of external command line compiler. Because the building, automation of tests could be achieved simply if we have such an "exe" command to call. We tried using the macro recording system, but it's a really disaster beacause compile time is always different.

    It seems that JSFL could help automate the compilation. He opens the ide and can launch the build action according to the instructions in JSFL. It could also be done on a .fla fileset.
    Some interesting posts about this:

    http://www.mikechambers.com/blog/2003/09/11/executing-JSFL-files/
    http://www.ActionScript.org/forums/showthread.php3?t=148946
    http://www.gskinner.com/blog/archives/2004/08/jsfl_fla_batch_1.html

  • Visual c# command line compiler

    Greetings,

    About 14 days ago I received an error message at startup 'command line compiler Visual c# has stopped working. A problem caused the blocking of the program works correctly. Windows will close the program and notify you if a solution is available. "I click on 'Close' and after a few more screens (same message), the laptop is now running.

    I studied this during two weeks at three sites including two Microsoft sites. No one has an answer. However, when I searched Microsoft technical support I have referred me to the Sony because of the OEM license. So, I find myself in this forum.

    I found according to my research it is a file associated with this - csc.exe. I don't know if it is the cause or not. From research it is a component in C++ and associated with .NET. When I stop I get another error "the application could not initialize properly (0xc0000142). Click OK to close the application. »

    I have tried to use sfc but only get to 96% and received the message "Windows Resource Protection found violations of integrity." BTW, I'm under sfc since a high cmd prompt. I also ran check and looked at the newspapers. Because the paper is too large, but neither the newspaper for analysis or check all the items close to what I feel, I am enclosing details of the sfc.

    I have Norton 360 with virus update subscriptions and also ran CCleaner and SpyBot (I do it each month).

    I don't know what to do. I'm not a programmer and most of the Visual c# sites are for programmers, and told me that if my post is specific, in writing, or debug code, I need to ask for help from someone else.

    I also did the clean boot, add services, and startups. I can't find the program or the offending service. I am at a loss. I need help. Any ideas or suggestions are appreciated.

    Thank you

    Hello Legman,
    Thank you for your message
    It is quite possible that you may encounter a hardware problem if you have a C drive recovery and that you always encounter the error.
    Try to run the hidden partition hardware diagnostic software.

    to access the partition hidden startup cold.
    Spam [F10] several times from the VAIO logo
    Press ENTER to "Edit boot options".
    Once the recovery tools launch hardware diagnostics select.

    If the hard drive test fails to contact alternative service.
    www.sonyrepairservices.com

  • "Several times I am receving the dialog box with" visual basic command-line compiler.

    "Several times I am receving the dialog box with" visual basic command-line compiler.

    Hello

    1. This occurs when you use a specific application or all applications?

    2 did you a recent software or changes to the material on the computer?

    3. have you installed all versions of Visual studio?

    4. What is the finished message, that you have found?

    You can try to perform a clean boot and see if it helps.

    A clean boot to check if startup item or services to third-party application is causing this issue.

    You can read the following article to put the computer in a clean boot:

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    After the troubleshooting steps, please refer to clean the boot link to put the computer to normal startup mode.

    Hope this information is useful.

  • How can I use the clang of command-line compiler?

    It is said in the new update clang is a command line tool.

    Do you have, or wish to develop, C, C++, Objective-C or Objective-C++ code you want to compile it on the command line with the clang compiler? It is a facility that is optional and not included with OS X.

  • Element of command line compile error

    I have a folder 'CTL' in there I have a file called "Email.as" and looks like:

    the CTL package
    {
    Import mx.controls.TextInput;
    import flash.events.Event;
    Import mx.validators.EmailValidator;

    Email/public class extends {TextInput
    public void Email() {}
    ....
    ....

    When I try to make it a component with the compc compiler command line
    I get the following error:

    C:\_tmp_\test_swc\ctls\Email.as: Error: a file in a source path must have
    the same package structure ", as the definition,"CTL"package


    The comand line I run is:
    CompC-source-path += CTL-debug = false - Email o = bin/mylib.swc

    How can I solve this?

    Thanks in advance


    So here's my setup:

    Home directory = c:\flex\bugs\foobar
    Here, I have a directory called 'CTL' which contains a simple class
    called Emails.as (c:\flex\bugs\foobar\ctls\Email.as), which is located in the CTL
    package.

    $ cd c:/flex/bugs/foobar
    $ c:/flex/143452/gmc/bin/compc-source-path +=. -debug = false - o = foo.swc
    CTL. E-mail
    C:\flex\143452\gmc\frameworks\flex-config.xml loading configuration file
    C:\flex\bugs\foobar\foo.swc (1023 bytes)

    "ddanone" wrote in message
    News:e9j64b$T57$1@forums. Macromedia.com...
    > If I use C:\_tmp_\test_swc\compc.exe-source-path +=.-debug = false
    > - o = bin/mylib.swc
    > CTL. E-mail

    > then I get the same error: error: source not found for the class
    > CTL. Messaging.

    >
    > I don't get crazy! On textbooks, it's easy, but Adobe does not source
    > samples to test the compc compiler.
    >

  • Command Line Extension Builder 2.1 gives a blank white plate

    I build my extension with a build script using the sdk Flex 4.5.0 supplied with EB2.1. The extension is compiled and worked well with the previous sdk. I'm packing with the ucf.jar. My libraries are included here:


    < arg value="-external-library-path+=${flex.dir}\cslibs\apedelta.swc"/ >

    < arg value="-external-library-path+=${flex.dir}\csarlibs\CSXSLibrary-3.0-sdk-4.5-public.swc"/ >

    < arg value="-external-library-path+=${flex.dir}\cslibs\csaw_premiere.swc"/ >

    < arg c value = "-external-library-path += ${sdk.dir}\Flex-Sdk-4.5.0\frameworks\libs\air\airglobal.sw" / >

    < arg value="-external-library-path+=${flex.dir}\as3corelib\as3corelib.swc"/ >

    am I missing something? Thank you

    The manifest Editor created an invalid path to the swf file.

    I edited the XML to change the swf path of ".". / « à ».. "/" and now it works.

    It looks like a bug in the manifest Editor.

    M

  • SDK Beta 3 command line compile errors with code QNXStageWebView

    Any help appreciated: this code compiled perfectly with Beta 2:

    import flash.display.Sprite;
    import flash.events.MouseEvent;
    import flash.filesystem.File;
    import flash.geom.Rectangle;
        
    Import qnx.media.QNXStageWebView;
    Import qnx.ui.buttons.LabelButton;
       
    [SWF (width = "1024" height = "600", backgroundColor = "#333333", frameRate = "30")]
    SerializableAttribute public class extends Sprite Complete
    {
            
    private var webView:QNXStageWebView = null;
            
    public void Rollback()
    {
                
              
    webView = new QNXStageWebView();
    webView.stage stage =;
    webView.autoFit = true;
    webView.viewPort = new Rectangle (0,0,stage.stageWidth,stage.stageHeight-50);
    webView.enableJavascript = true;
    webView.enableScrolling = true;
    webView.useCache = true;

    ..... }

    but with the beta 3, we get a lot of errors like this:

    amxmlc Complete.as

    Col: error 12: property may not set auto adjustment through a reference with static type qnx.media:QNXStageWebView.

    webView.autoFit = true;

    and once again for each of the other properties webView.  What should do?

    The QNXStageWebView class previously entirely undocumented has changed (as everyone should have expected).  Fortunately, there are actually the documentation for it now in new documents online.  First check here and update your code and see if it works again (it did for me).

  • Command line compilation?

    Anyone know if this feature is available in Robohelp Office 2002r2?

    If so, advice?

    Thank you

    It is not available in this version. It was added in Adobe RoboHelp 6, i.e. several versions on.

    See www.grainge.org for creating tips and RoboHelp

    @petergrainge

  • Como hacer Visual c# command line compiler as funcionar h. dejo

    Firma con problemas:
    Number del problema event: APPCRASH
    The application number: csc.exe
    Application version: 4.0.30319.1
    Marca of tiempo of the application: 4ba20a1b
    Number del modulo con errores: bitguard.dll
    Version del modulo con errores: 2.6.1673.238
    Tiempo del modulo Marca con errores: 523a9ee3
    Exception code: c0000005
    Exception offset: 001793a 8
    Led operating system version: 6.1.7601.2.1.0.768.2
    ID of regional config: 3082
    Additional information 1: 0a9e
    Additional information 2: 0a9e372d3b4ad19135b953a78882e789
    Additional information 3: 0a9e
    Additional information 4: 0a9e372d3b4ad19135b953a78882e789
    LEA nuestra declaracion privacy online:
    http://go.Microsoft.com/fwlink/?LinkId=104288&clcid=0x0C0A
    If the declaracion of privacy online not available esta, lea the declaracion of sin conexion Privacy:
    C:\Windows\system32\es-ES\erofflps.txt
    Please select your language in the drop-down list at the bottom of the page to post your question in the language of your choice.
    The Forum in which you've posted is for English only.
    If you can't find the desired language, support for additional international sites options are by following the link below:
     

    Please, select su idioma in her lista desplegable anterior to send you in el idioma of choice su pregunta. El foro Québec ha published're para frances only. If usted no encuentra el idioma no desee por encima of las options para support otros destinos international themselves can find following el siguiente enlace:

    http://support.Microsoft.com/common/international.aspx

  • Is it possible to "build" a custom component using a command line script?

    Hi all

    From time to time to replicate our environment in instances of development/sandbox sandbox, we need the current generation of custom components production.

    What we do in general is - Component Wizard allows you to "build" each component one & then download the ZIPs. \

    I wonder if there is some sort of command line to "build" a custom component?

    That would allow me to write a script to quickly create all my custom components in a go, whenever necessary.

    Kind regards
    Prateek

    To answer the original question, Yes, there is a command line tool to build, activate, deactivate and install the components (even with the preferences), her right here:

    / Data/Oracle/user_projects/Domains/my_domain/UCM/CS/bin/ComponentTool

    Usage: ComponentTool [v |-vv] [t trace_section]--enable |-disable name

    ComponentTool [v |-vv] [t trace_section]... - sync

    ComponentTool [v |-vv] [t trace_section]... [- Install] path.hda: path.zip [-path.hda Preferences]

    ComponentTool [v |-vv] [t trace_section]--check-depends name

    ComponentTool [v |-vv] [t trace_section]... - name of the package

    ComponentTool [v |-vv] [trace_section]...--list-enabled|--list-disabled|--list|--interact|--help t

    The only thing is to compile the Java classes for you. For this you will need to an ANT script or something.

  • Build errors from command line in the newspaper. How can I fix it?

    Version: RH 9 (latest version)

    OS: Windows 7, 64-bit

    Output: CHM

    I have a batch file that uses features of generation of HR command line to generate our CHMS regularly.

    The command line works for my other projects. But I have a project that has three different CHMS issued, and each chm of the project always fails.

    Each three generated log file contains information to that effect.

    Adobe (R) RoboHelp version 9.0.0.228 project command line compiler

    Copyright (C) 2006-2007 Adobe Systems Incorporated and its licensors. All rights reserved.

    Project: d:\hg\pcdmisqa\pcdlrn\help\toolkitmodules\PC-DMIS Toolkit Modules.xpj

    Presentation: Toolbox Modules - various.

    Output: D:\DocProjects\Outputs\common_chm\toolkitmodules.chm.

    Scanning for the compilation project...

    Error: Impossible to analyze all project files. Please use RoboHelp to recover the project.

    Unexpected error: failed to prepare the data of the single source for RHCL. Please try to compile in RoboHTML.

    Any ideas? Moreover, these AIDS compile fine with HR itself.

    Okay, deleting the CPD and reimport the file HHP to recreate the XPJ and all other project files fixed this problem for me. They seem to be build by using the command line now.

    But he created a LOT of work: build all the page layouts should be recreated and all conditional compilation tags had to be regenerated.

    If you go this route, be sure to make a backup of your project first you may have to refer to him to get things back the way they were after the import process.

  • Command line and Resource Manager

    When you use the command line to compile a Robohelp project, is it possible to update the resources shared within the project before generation?

    For example, you have Project1 and uses snippet1 in this project. However, snippet1 has been changed in the Resource Manager (just say, for the sake of argument, that snippet1 is also used in Project2, and you changed the extract it and it synchronized to the Resource Manager). When you do a regular command line compilation, the extract is not updated.

    Is it possible to synchronize the excerpts and images from the resource manager in the project before proceeding with compiling from command line (other than opening the project and sync manually)? After all, if I have to open the project, there is no reason for the compilation command line since I was already there and can just compile the project.

    Thank you!

    I found a way around this!

    RoboHelp does not care if the files are updated through the application or through Windows Explorer (such as copying the latest file in the project folder).

    I created a simple batch file copies and replace any file that is older than the file that is located in the resource manager. This allows RoboHelp pull into the updated files in a command-line compilation. There is always a way!

    However, I found something problematic with the command line compilation. I started a new thread to ask about it.

    http://forums.Adobe.com/thread/1011261

  • Go (argc and argv) command line argument to a LabVIEW built the shared library.

    Hello

    I correctly use this trick to create a LabVIEW application that runs on Linux without X display.

    http://digital.NI.com/public.nsf/allkb/5D6EC36DCF43343786257449006919E6

    I would like to know if it is possible to pass command line arguments (. / TEST A B C D) directly in the library shared without having to pass arguments using an array of strings that would need to write code using DSNewHandle, DSSetHandleSize, extract arguments and... (I'm not proficient in C, but if I don't have the choice, I'll do and improve my skills of C).

    int main(int argc, char *argv[])
    {
            Test(argc, argv);
            return 0;
    }
    

    Thank you

    Michel

    Well, you can always flatten it into a single string separated by a space and pass like that. Reverse basically what made the operating system, when he calls your main function with command line parameters. And while the first element of the array is always the name of the program itself you can just ignore that here, but then put shaped everything in a single string.

Maybe you are looking for

  • How to disable the database 64 MB of memory on Satellite Pro 4270?

    Hello! On my own SP4270 Win2000Pro install case that I came to the conclusion that the problem reside on the base 64 MB of memory on the motherboard, which had deserted somehow 1.1 MB, and so more big programs will not load and the installation proce

  • Save as dialog box

    When I try to save a document in the dialog box "save under" opens. In the "" Save as type:' section, it only lists "pdf" rocket "as a type of file or"all files". He says is no longer 'Adobe pdf' as a type of file that is what I want. I uninstalled"p

  • Windows updates break the computer

    I have Windows 7 and it did its updates during the shutdown and departure to the top of the computer. But this time there not even to get to the part at the start when applying updates, it just went to Windows Startup Repair. He has done this before,

  • Login Facebook integration

    Hello In my application, I need to allow users who have the FB connect. Like many of my findings, little speech as (1) must add the field of browser and call the URL based on that. (or) (2) install BB FB SDK and the code to connect to FB. My requirem

  • Issues of protection antiviruss and gadgets

    I have a few questions about security in my Windows 7 computer: 1. is gadgets in Windows 7 safe to use? I've heard people and websites said gadgets should be disabled for security reasons (for example, in this Web site: http://forums.malwarebytes.org