The question of command line CAP.

So I'm all new development of blackberry, but I found an inexhaustible amount of info (from this forum and experienced developers).  I read a lot of posts on the lines of command about the file randomly Googling rapc.exe.  My problem is that my .cod files are too big.  I understand the maximum number of bytes allowed in a .cod file is 64 KB, unfortunately my files have reached 90 KB in size.  I can't delete images and unused classes because they are all very functional and that it.

I heard the wind of a command line that can be introduced to rapc.exe which will set - slicesize = NNNN and datafull - NNNN = as a solution to my problem.  This seems perhaps too technical for my situation, I'm not using my head today.  The problem is I'm having trouble finding how to add these command lines, or what that means yet.  My blackberry app is that several weeks of deployment AppWorld I love just to test it on my blackberry like point and click does not create the same user as on a touchscreen phone experience.

I know there are a lot of great developers on this forum, and I understand that there are a lot of excellent programmers.  Can someone help me to conquer the sensation "noob" I'm feeling right now and guide me with a somewhat dummed down from the version of the technical explanation.

In short, how can I add the command lines above named rapc.exe preferably with output using 3 third party programs or modifying an output by the compuler file.  I want to implement the compiler to ignore the warnings of size for the .cod files, as long as it's not a bad practice.

Thanks in advance! -Andrew Mason

Ok.  I was average overhtinking this, I guess it's easy to limit the size of your .cod simply by making the additional source folders.  I made two additional folders res and split my resources evenly among them.  There was a lot of workarounds that appeared to be more work than they were worth.  It's a quick and easy solution.  Thanks for the link, it helped a bunch got my brain moving.

Tags: BlackBerry Developers

Similar Questions

  • Error when executing the ADF - BC command line Test Suite

    Hello

    I created a test project separate containing the Test Suite for the model of my ADF - BC application component.

    I need to run this test separately of jmeter project.

    The thin running tests of Jdev, but when I package the test project into a jar and try to run it from the command line, I get the following error:

    java.lang.NoClassDefFoundError: oracle/Houston/ApplicationModule

    to com.oracle.cs.cap.module.applicationModule.ServiceAMFixture. < init > (ServiceAMFixture.java:36)

    to com.oracle.cs.cap.module.applicationModule.ServiceAMFixture. < clinit > (ServiceAMFixture.java:15)

    to com.oracle.cs.cap.module.view.EntitlementReportDurationViewVO.EntitlementReportDurationViewVOTest. < init > (EntitlementReportDurationViewVOTest.java:11)

    at sun.reflect.NativeConstructorAccessorImpl.newInstance0 (Native Method)

    at sun.reflect.NativeConstructorAccessorImpl.newInstance (unknown Source)

    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance (unknown Source)

    the impossible (unknown Source)

    at org.junit.internal.runners.JUnit4ClassRunner.createTest(JUnit4ClassRunner.java:72)

    at org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:79)

    at org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51)

    to org.junit.internal.runners.JUnit4ClassRunner$ 1.run(JUnit4ClassRunner.java:44)

    at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)

    at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)

    at org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42)

    at org.junit.internal.runners.CompositeRunner.runChildren(CompositeRunner.java:33)

    to org.junit.runners.Suite.access$ 000 (Suite.java:26)

    to org.junit.runners.Suite$ 1.run(Suite.java:93)

    at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)

    at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)

    at org.junit.runners.Suite.run(Suite.java:91)

    at org.junit.internal.runners.CompositeRunner.runChildren(CompositeRunner.java:33)

    at org.junit.internal.runners.CompositeRunner.run(CompositeRunner.java:28)

    at org.junit.runner.JUnitCore.run(JUnitCore.java:130)

    at org.junit.runner.JUnitCore.run(JUnitCore.java:109)

    at org.junit.runner.JUnitCore.run(JUnitCore.java:100)

    at org.junit.runner.JUnitCore.runMain(JUnitCore.java:81)

    at org.junit.runner.JUnitCore.main(JUnitCore.java:44)

    Caused by: java.lang.ClassNotFoundException: oracle.jbo.ApplicationModule

    java.net.URLClassLoader to $1.run (unknown Source)

    at java.security.AccessController.doPrivileged (Native Method)

    at java.net.URLClassLoader.findClass (unknown Source)

    at java.lang.ClassLoader.loadClass (unknown Source)

    to Sun.misc.Launcher$appclassloader$ AppClassLoader.loadClass (unknown Source)

    at java.lang.ClassLoader.loadClass (unknown Source)

    ... more than 27

    The jar Test project is created as a file ADF library JAR with Model.jpr as the dependent project. This supports the project class dependencies

    All adf library dependencies are added to the Test project JAR manifest file, referring to a location lib / jars directory.

    I tried to create the ApplicationModule using the two class configuration (Configuration.createRootApplicationModule) as well as using the string of JDBC connection but both fail when I run the test cases regardless of jmeter.

    Everyone came across such an error? Help, please.

    Thank you

    Sapna

    Library in the manifest file references are NOT resolved as long as you do not use a special class loader that you do not.

    This isn't a problem of jdev but a java problem. Only the class in your jar files are picked up. A pot in a pot is not looked into. You must set your classpath pots needed or you have expand all the pots as classes and put classes into your jar (which will be huge after doing this).

    Timo

    PS you can look in (JCL) Jar class loader | Free software development on SourceForge.net downloads

  • Adobe Reader 11 (XI) will not open the file via command line

    Hello

    I posted this question probably inappropriate topic earlier today, so I am repeating again.

    I installed the new Adobe Reader XI today and when I tried to open some PDFs via command line, it reported a syntax error. Now, this syntax worked so far on versions 9 and 10 (I checked today with them and it does not), so my question is - where can I find new syntax, if there are? Google search did not help. Or what else could go wrong?

    In previous versions, I was able to open the pdf file (on page 5) like this (everything was taken from the help file 'Open settings')

    «Page "/A" CompletePathToAdobeReader = "CompletePathToPDF", 5"»

    That is to say

    "C:\Program Files (x 86) \Adobe\Reader.

    but now - not that it opens a specific page, but it won't open the file at all.

    Edit:

    Operating systems: Windows 7, Windows XP

    Thank you.

    Post edited by: v604

    Yes, he has correctly reported because there is a syntax error in your order. Try spaces between the /A switch and open the setting. Try this:

    "C:\Program Files (x 86) \Adobe\Reader" /A "page = 5" "d:\V2\DataSheet.pdf" "."

    I hope this helps.

    Sumit-

  • From server managed by using the Node Manager command line

    Hello

    I have configured the Node Manager and it is connected to the administrator of the server without problem. Now, I wanted to start the server managed through the console but it is a failure and my guess is that the syntax of the command line used is not correct.

    My question is, how do I change the command line used to start the Node Manager-managed server? I try to use the configuration tab start the server and it seems that does not. I also try to update the file .properties for the managed server.

    Whenever I look at the managed server logs, it gives me this line...

    NodeManager > < start WebLogic server with command line: <>...

    The command-line in newspapers aren't what I put in the .properties file or on the Server Start tab. She is from somewhere and I don't know where. I just want to set up the command line Node Manager uses to start a managed server.

    If all goes well, I'm clear with my problem and someone might be able to help. Thank you.

    You can try to follow the Option-2) mentioned in the link below: http://jaysensharma.wordpress.com/2010/03/26/nodemanager-based-managedservers-setting-mem_args/

  • 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.

  • W530 - activate the camera from command line?

    Hi guys,.

    I searched for a way to activate and capture and image of the camera integrated in the command line. Does anyone know how to do? I have a W530 with Windows 7 64 bit.

    Thank you!

    Lenovo is not a tool like this, but I did a quick search on google and found a few utilities in the sample and the code:

    http://batchloaf.WordPress.com/2011/04/06/Snapz-a-command-line-cam-image-grabber/

  • Read the output of command line

    Hello

    I am running a program of external command in my application CVI line. I use this code (that I found somewhere here):

    Char [command] = "test.exe";
    If STARTUPINFO;
    PROCESS_INFORMATION piProcess;
    BOOLEAN result;
    DWORD dwExitCode;
    int exitCode;

    ZeroMemory (& TR, sizeof TR);
    Si.CB = sizeof is;
    result = CreateProcess (NULL, NULL, NULL, FALSE, CREATE_DEFAULT_ERROR_MODE command |) DETACHED_PROCESS, NULL, NULL, & TR, & piProcess);
     
    If (result == TRUE) {}
    CloseHandle (piProcess.hThread);

    If (WaitForSingleObject (piProcess.hProcess, INFINITE)! = WAIT_FAILED)
    GetExitCodeProcess (piProcess.hProcess, & dwExitCode);
        
    CloseHandle (piProcess.hProcess);
     
    exitCode = dwExitCode;
    }

    It works as it should... Now I wonder how it is possible to record or to analyze the output of the command line app...

    See you soon

    I've made a few changes to the CreateProcess call and it seems to "work". Output has been redirected in test.txt, but a black console window appears while test.exe is running. I put si.dwX to-10000 so that it should be off the screen.

    Char [command] = "cmd.exe /c test.exe > test.txt ';
    If STARTUPINFO;
    PROCESS_INFORMATION piProcess;
    BOOLEAN result;
    DWORD dwExitCode;
    int exitCode;

    ZeroMemory (& TR, sizeof TR);
    si.dwFlags = STARTF_USEPOSITION;
    si.dwX = - 10000;
    Si.CB = sizeof is;
    result = CreateProcess(,command,,,TRUE,CREATE_DEFAULT_ERROR_MODE,,,&si,&piProcess);

    If (result == TRUE) {}
    CloseHandle (piProcess.hThread);
    If (WaitForSingleObject (piProcess.hProcess, INFINITE)! = WAIT_FAILED)
    GetExitCodeProcess (piProcess.hProcess, & dwExitCode);

    CloseHandle (piProcess.hProcess);

    exitCode = dwExitCode;
    }

    Michael

    NEITHER

  • The application's command line arguments get the path to the file in windows Explorer

    Hello

    I am trying to open a file with my labview application .exe, so I thought that windows was sending the file path double clicked in Explorer solutions in the form of argument, but all I get is the name of my exe file.

    Does anyone know how to set up windows or the application to get the double click path from the Explorer, which has the file extension has already been associated with my exe?

    Thank you!

    I'm not sure I understand, but I think you want your Labview program to open another file, as a file of perimeter?

    Have three basic choices.

    Hardcode the path with file name in your program http://zone.ni.com/reference/en-XX/help/371361K-01/glang/path_constant/

    Use the file open vi and for the user to select the file to open http://zone.ni.com/reference/en-XX/help/371361J-01/glang/file_dialog/

    Write your program to accept a http://digital.ni.com/public.nsf/allkb/17C3AD70493CE0208625666A00763364 command line argument

  • How to set address static IP for cisco APS to the controller via command line

    Hello

    in our project it 208 APS registered in a WISN-1 controller

    How do I assign a static ip address to this Aps via command line in a controller 4404

    Thanks to the Internet, it takes more time to assign the static ip address

    You don't mention what version of the code, you are on but on 7.0:

    ap static IP config activate

    You can also add

    ap static IP config add domain

    ap static IP config add nameserver

  • The file of the bar - descriptor.xml (and make the application of command line)

    I made a game with air and it is online for sale on Android and iOS. It is somewhat popular and I thought to put up on Blackberry for quite awhile now and with the Port of soon-to-start-A-Thon, this seems to be a great time to finally make it.

    BlackBerry is not very common that here where I live in Sweden, however it still looks like an interesting with a potential platform if I want to get the trip. Unfortunately I don't own a camera myself so I'll use the Simulator. With some graphic problems with the simulator when running in mode BB10DevAlpha (icons does not appear right) and the Simulator is very slow when running in mode BB10DevAlphaSafe (chart appears on the right, but it seems that updating them requires more CPU my computer are available).

    The game is built using nothing other than Adobe Flash Professional CS6 and a bunch of command line tools to build the package and sign. I've only got an old computer with Windows XP now since the death of my main PC, all at the time and since the Port-A-Thon is just a few days I do with what I got.

    Firstly I understand that only AIR 3.1 is supported by Blackberry 10, so I use the old AIR SDK 3.1 to create a SWF (flash) file.

    What I really need to do should be used in the exported SWF file of the game, then use the command line tools provided by RIM to build the package, right?

    Except that I did not count on bar - descriptor.xml to be so difficult to understand.

    I was brought to the documentation here: https://developer.blackberry.com/air/documentation/bb10/bar-descriptor_config_file.html

    It says Adobe AIR at the top, the platform selected is Blackberry 10 and the title says "bar-descriptor configuration file", so it must be in the right place!

    I start by trying the 'bar-descriptor configuration example file"on this page:

    ===========================================================



      
          None
          fake
      

     
      
       Name of the author
     
      
       gXXXxXXx ##XxXxXxxxXxXX #xxx
     
      
       Core.Games
     
      
       Icon.PNG
     
      
       HelloWorld - splash.png
     
      
       read_geolocation
       use_camera
     
      
       1

    ===========================================================

    Of course during the test I replaced a few things in the example above with the correct filenames for images etc, I just copied the example of right - off this time to you guys show what I mean.

    Firstly, I extract "blackberry-tablets-sdk - 3.0.0" in a folder on the disc, then I make sure as a full path to the "bin" in the SDK folder inside the path on the OS environment variable.

    Then I read on "Applications of Test using the command line": https://developer.blackberry.com/air/documentation/bb10/testing_your_application_cmd_ms_2010851_11.h...

    Now I run:

    BlackBerry - airpackager.bat - package installApp - blackberry-myappname - new.bar - launchApp myappname-blackberry-bar - descriptor.xml myappname.swf myappnameicon86.png bg splashscreen1024.png - device 192.168.8.128

    Note that "bg" is a folder with 500 images that must be accessible from the app. I hope that I can just add the folder like this and not type a path to each image file...

    What I get (in lib\adt.jar via the bat file):

    error 101: Namespace is missing
    Error: Validation of the AIR is not

    Okay, so the example did not straight on the box.

    Now, I've read all paragraphs in the first URL I linked above ("the bar-descriptor configuration file"). I start my own XML file and make sure to include everything that is marked as "necessary". That's what I'm left with:

    ===========================================================



        MyCompany
        
            
            com.mydomain.myappname
            My App name
            3.0.0
            
                splashscreen1024.PNG
            

            1.5.0
        

        run_native
        
            application
            
                bb.action.VIEW
                application/octet-stream
            

        

    ===========================================================

    I have no idea of what concerns the block whole call target, but it took, so he must be there.

    Now I launch (notice that myappnameicon86.png is gone since no icon is mentioned in the above XML code, it is not mandatory):

    BlackBerry - airpackager.bat - package installApp - blackberry-myappname - new.bar - launchApp myappname-blackberry-bar - descriptor.xml myappname.swf bg splashscreen1024.png - device 192.168.8.128

    Yet once, I get:

    error 101: Namespace is missing
    Error: Validation of the AIR is not

    Frustrated I get autour on the forums for answers, because the official documentation is nowhere getting me.

    I'm left with this:

    ===========================================================


    http://ns.Adobe.com/air/application/3.1">
        com.mydomain.myappname
        1.5.0
        
        My App name
        
        My App name
        
        
            myappname.swf
            standard
            fake
            true
            true
            landscape
            GPU
            fake
        

        
            myappnameicon36.PNG
            myappnameicon48.PNG
            myappnameicon72.PNG
        

        fake
        fake
        
            qnx.fuse.ui.skins.QNXDevice
            qnx.fuse.ui.skins.QNXNetwork
            qnx.fuse.ui.skins.QNXSensors

            qnx.fuse.ui.skins.QNXSkins
        

    ===========================================================

    Looks like the XML code that I use when I build for Android.

    First of all it doesn't have the tag root of qnx, but also nothing of the icons are of the required size (86 x 86). The tag required splashscreens and invoke target is also absent, to name a few. No idea of what the entire block of 'extensions' really do.

    Surely, this does not work:

    BlackBerry - airpackager.bat - package installApp - blackberry-myappname - new.bar - launchApp myappname-blackberry-bar - descriptor.xml myappname.swf QNXDevice.ane QNXNetwork.ane QNXSensors.ane QNXSkins.ane myappnameicon36.png myappnameicon48.png myappnameicon72.png bg-device 192.168.8.128

    Success in building the package BAR to my infinite surprise!

    He even managed to install on the Simulator. An icon for the game. However when it auto-couru the app went into landscape, thought for a second and then crashed (or you leave?) without a message.

    Perhaps because the required qnx tag was missing in the XML?
    Perhaps because images in the bg file could not be loaded?
    Perhaps because he had no permission to keep screen from dimming?

    I have no idea. I tried to add XML to qnx at the address previous to the bar - descriptor.xml, I thought that maybe he needed both the qnx block for when you run the application and the application block for when packaging. But now, he has complained of something like XML is not not clean ("' fatal error: markup in the document following the root element must be well-formed." ").

    So he came to it, I have to ask for help if I ever make the deadline of the Port-A-Thon.

    (1) how am I supposed to write the bar - descriptor.xml?
    (2) what command line starting by "blackberry - airpackager.bat" is OK to use?
    (3) all I have to do is build the SWF using Adobe Flash Professional CS6 and then pack it using the Blackberry SDK, right?

    First of all, there are two xml files that you need.

    One is called the manifesto, is to AIR and is called yourappname- app.xml. It is identical to the ones you use for Android and IOS, though some elements will be ignored. It's one you need to switch on the command line, and is probably causing the 'Namespace' missing error message. A file manifest a minimum is:

    
    http://ns.adobe.com/air/application/3.1">
    
        com.example.appname
        My Fabulous Game
        1.0.0
    
        FileNameOfYourSwfWithoutExtension
        YourCompanyName
        
            [This value will be overwritten by Flash Builder in the output app.xml]
            true
            false
            none
            cpu
            false
        
    
    

    Replace the text in red with your own stuff.

    The second xml file is called to the bar of descriptor. It is for App World and the installation process and is called bar - descriptor.xml. It contains information about signing code, icon, permissions etc. A simple bar - descriptor.xml is:

    
    
       
          none
          true
          landscape
          false
          cpu
       
    
       
       your-name-on-certificate
       your-id-on-certificate
    
       core.games
    
       
       1
    
       
       
          icon86x86.png
       
       splash-landscape.png
    
       
       2.1.0.1314
    
       
       access_shared
       access_internet
       play_audio
       set_audio_volume
    
    

    Make sure that you at least change the red dots.

  • How can I start using the netsh wlan command line ICS (microsoft virtual card)?

    I am using windows 7 Home premium SP1.

    I tried everything, but I can't able to start ICS?

    whenever I try, its gives me the error each time.

    give me any suggestions?

    Thank you.

    Hi JL,.

    You can start ICS (Internet Connection Sharing) / create a hosted in Windows 7 with Netsh wireless network by using the following command after you have enabled the functionality of Windows 7 (ICS, Internet Connection Sharing) network load balancing.

    How can I get a command prompt?

    http://Windows.Microsoft.com/en-us/Windows/command-prompt-FAQ#1TC=Windows-7

    Open the window network connections , right click on network adapter connected to the Internet and select Properties. Then select the sharing tab, check Allow other network users to connect through this computer's Internet connection, pick Microsoft Virtual WiFi Miniport Adapter network connection name in the drop-down list and click OK.

    Once you open command line successfully, you can run the following commands.

    Define the details of the network:

    netsh wlan set hostednetwork mode = allow ssid = YourVirtualNetworkName key = YourNetworkPassword

    Start the wireless hosted network:

    netsh wlan start hostednetwork

    To see details of hosted wireless network, including the MAC addresses of the users connected:

    netsh wlan show hostednetwork

    Let us know the status of the issue.

  • The tools of command line for applications Android download problem

    Hello

    I can't download 'Tools of command line for Android applications' Web of BlackBerry site. When I click on the blue download button with label 'Tools command line for Android applications' in the Tools section, browser updates the website tools and nothing more.

    ARO

    Maciek

    Hi again,

    Problem solved. A few hours later, I downloaded tools successfully.

    ARO

    Maciek

  • Extract the elements of the application via command line

    Hi all

    I can extract the application of the elements of the option extract-> elements of the application.

    Is it possible that I can automate this command line or any other method

    Thank you

    Kind regards

    TVMK

    Yes, LCM is a command line utility that can be fully automated for these elements of snapshot off. Take a look at the document of LCM

    http://docs.Oracle.com/CD/E17236_01/EPM.1112/epm_lifecycle_management.PDF

    As mentioned, the API is another way too but who can take over installation but doable.

    Thanos also gave some options you could look.

    If the information provided to the clarity/confirmation that you are looking for be sure to close the thread for the other members of the community may be able to find the solution at the appropriate time in the future.

  • How to disable the registry or command line network discovery / CMD?

    Hello

    We have 8 embedded windows.

    We don't want this popup about how to connect to a new network or router:

    There is no such GUI as shown here:

    http://Windows.Microsoft.com/en-us/Windows/enable-disable-network-discovery#1TC=Windows-7

    We need to turn it off via the command line or the registry, or both.

    Support and advice appreciated.

    Thanks in advance.

    You can still get the same GUI that allows you to turn it off.  Simply go to the network and sharing Center and the "change advanced Sharing Options" will be on the left.


    ↑ This still works in Windows 8

  • Check the battery via command line

    Is there a utility command line for battery check? I have hundreds of laptop computers to check the battery failure. I am able to deploy and install the HP Battery Check utility and then silently run the hbbc.exe/s but I don't see the newspaper. Is there another utility to do this?

    Thank you.

    So, I finally found the file that is used to produce the result of battery page.

    Run hpbc.exe/s

    After the second couple that xml file will be in the

    %ProgramData%\Hewlett-Packard\HP support Framework\Resources\Logs\BCResOut.xml

    That you can analyze and get the information you need - by comparing the result of MISTLETOE.

    ... and it took two calls to the support level 2 technique to find. They have not confirmed the existence of the /s switch and there is no docummentation.

Maybe you are looking for

  • Old problem - spell checker find 'panose '.

    After reading the questions and answers on this problem, I investigated further. I have a signature file that is used on all my outgoing message, replies or forwards. In the HTML source code of this file, there is an article defining what mentioned a

  • iPod touch 5 battery drains very quickly on iOS 9.1

    Hi, I've been on iOS9.1 for a whilewhile now and today that my iPod was dead. I put in charge and when I looked it was almost full, so I have it for two seconds and back on. When the screen came and said that he was in charge he said he had less than

  • iMac G5 Power PC OSX 10.5.8 upgrading?

    I have an iMac G5 PowerPC g5 (3.1) processor running OSX 10.5.8.  What is the highest OSX I can run on this machine and what is the upgrade path for to get me there?  Thank you!

  • Error code: 80073712 for the update failed

    Original title: Windows update problem. After trying to install the updates for my windows vista, whenever it says update failed with error code 80073712, when looking in it, he says the windows component store is damaged, how can I fix this plse. I

  • Everyone see additional logging to the console of the 9800 Simulator?

    Everyone sees a bunch of * beep * in the saved for 9800 Simulator console? Each action in the Simulator causes a large amount of what follows to be connected. Am I doing something wrong or should I run the Simulator in another case? [0,0] FileIO:info