JDE 4.7 CAP question?

I I have a problem with a JDE 4.7 code signing application and it seems that it is apparent to the CAP JDE 4.7 compiler.

Basically I modified HelloWorld.java that comes with JDE 4.7 examples to add an API call control (see below for more details). Then, I compiled and generated the jad and jar files. After that, I used the following command line to generate the .cso, .csl and .cod files JDE 4.2 and 4.7 JDE environment respectively with exactly the same file jad and jar file:

CAP import = net_rim_api.jar = HelloWorldSigning = HelloWorldSigning.jad HelloWorldSigning.jar jad codname

However, I found that HelloWorldSigning.cso generated under 4.7 environment does not have entry "52525400 = RIM Runtime API" in it compared with that generated under environment 4.2. (The HelloWorldSigning.csl files are the same). As a result, the signed HelloWorldSigning.cod less 4.7 will get "attempts to access a secure API" error loading on devices of the storm, then the HelloWorldSigning.cod signed under 4.2 has no problem. If I manually fix the file cso by adding the missing entry under 4.7, it will solve the problem.

No idea what's wrong with him?

PS:

HelloWorldSigning.csl under 4.2 and 4.7 as follows:

52525400 = RIM API implementation

HelloWorldSigning.cso less than 4.7:

33000000 = RIMAPPSA2
52424200 = RIM Blackberry Apps API
52434300 = RIM API Crypto - Certicom
52434900 = RIM Crypto API - internal
52435200 = RIM API Crypto - RIM

HelloWorldSigning.cso minus 4.2:

3000000 = RIMAPPSA2
52434300 = RIM API Crypto - Certicom
52434900 = RIM Crypto API - internal
52435200 = RIM API Crypto - RIM
52525400 = RIM API implementation
52424200 = RIM Blackberry Apps API

Code source HelloWorld.java:
/**
*
* HelloWorld.java
* The sentinal sample!
*
* Copyright © 1998-2008 Research In Motion Ltd.
*
* Note: For simplicity, this sample application cannot operate
* resource bundles and resource strings.  However, it is STRONGLY recommended
* that make application developers use available location functions
in the development platform BlackBerry to ensure uniform application
* experience in a variety of languages and geographies.  For more information
* on the location of your application, please refer to the BlackBerry Java Development
* Environment Development Guide associated with this version.
*/

package com.rim.samples.device.helloworlddemo;

Import net.rim.device.api.notification.NotificationsConstants;
Import net.rim.device.api.notification.NotificationsManager;
Import net.rim.device.api.ui.UiApplication;
Import net.rim.device.api.ui.container.MainScreen;
Import net.rim.device.api.ui.Field;
Import net.rim.device.api.ui.component.Dialog;
Import net.rim.device.api.ui.component.LabelField;
Import net.rim.device.api.ui.component.RichTextField;

/*
* BlackBerry applications that provide a user interface must extend
* UiApplication.
*/
class HelloWorldDemo extends UiApplication
{
/**
* Entry point for application.
*/
event object public final static = new Object() {}
public String toString() {}
return to "sing";
}
};
Public Shared Sub main (String [] args)
{
Create a new instance of the application.
NotificationsManager.registerSource (0x8f8c19257ffbb06fL, event, NotificationsConstants.CASUAL);
PAP HelloWorldDemo = new HelloWorldDemo();
       
To apply to enter the event thread and the beginning of message processing,
We invoke the enterEventDispatcher() method.
theApp.enterEventDispatcher ();
}

/**
*

The default constructor. All RIM user interface components creates and runs a push of the
screen of the application root in the user interface stack.
*/
HelloWorldDemo() private
{
Push the instance main screen user interface for rendering stack.
pushScreen (new HelloWorldScreen());
}
}

/**
Create a new screen that covers the screen, which offers default standard
* BlackBerry applications behavior.
*/
/ * package * final class HelloWorldScreen extends screen
{

/**
* Manufacturer HelloWorldScreen.
*/
HelloWorldScreen()
{
Add a field to the title area of the screen. We use a simple LabelField
here. the SELECTION option truncates the text of the label with «...» "If the text
It is too long for the space available.
LabelField title = new LabelField ("Hello World Demo", LabelField.ELLIPSIS |) LabelField.USE_ALL_WIDTH);
setTitle (title);

Add a text field read-only (RichTextField) on the screen.  The RichTextField
is active by default.  In this case, we provide a style to make the field
non-focusable.
Add (new RichTextField ("Hello World!", Field.NON_FOCUSABLE));
}

/**
* Show a dialog box to the user with "Goodbye!" when the application
* is closed.
*
* @see net.rim.device.api.ui.Screen #close)
*/
public void close()
{
Display a farewell message before closing the application.
Dialog.Alert ("Goodbye!");
System.Exit (0);
       
Super.Close ();
}
}

Mark Merci for the quick reply.

I have added the work around my build script, it seems to works fine.

Tags: BlackBerry Developers

Similar Questions

  • CAP order for 3rd-party libraries building?

    Hello

    This question comes back to haunt me. I have 3 jars of party (library, not apps from cldc) which are built according to the specifications of cldc/midp J2ME who should have no difficulty in supporting a cldc app on a blackberry. How the hell do I get the jar to compile a working cod and a pot I have referred to in my bb eclipse project?

    I managed to work around this problem before, when I have the source code. But I don't have it this time. I am ready to run the CAP and if necessary preverify command line!

    I am also aware of the approach of BlackBerry JDE to create a project of library with just the pot inside:

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800901/How_To_-_Compi...

    But it does not work for me (I have tried several times with a different couple part 3 pots), the jar is either damaged or the Simulator cannot find the classes in the files of part 3.

    I know the official line is that third-party libraries are not supported by the eclipse plugin yet... But even the JDE must run Cap calls to build. If anyone can help me understand these commands, I'll build it manually. It's just a jar of third... Once it is built, I don't have to build it again.

    Thanks in advance for your time, I appreciate it greatly.

    It worked:

    http://supportforums.BlackBerry.com/Rim/Board/message?board.ID=java_dev&thread.ID=22240

  • Question of Caps Lock Notification? Vista problem? or Dell Inspiron Issue?

    Sorry if this is in the wrong forum; but I don't know who it is.

    I have a Dell Inspiron 1545 running Vista Home Premium 64 Bit.

    The question is when ever I type in another Forum, such as this one; or an email or even a Word document and I activate the "Caps" lock - it will get the sentence I type and I have the mouse to where I was.

    I know that I get a notification "on the screen", but what the hell is happening? It shouldn't start me the sentence when I type.

    I searched for hours and finally comes to join this community. So is it a Vista problem or a problem of Dell?

    Thanks in advance!

    You have Dell Quickset, installed on your system? Have you looked inside for a parameter disable the notification?

    EDIT: According to this thread, it is certainly a matter of quick adjustment... They solved by uninstalling QuickSet, but there may be a QuickSet setting to disable the notification...

    http://Forum.NotebookReview.com/showthread.php?t=253825

  • El cap and iphoto vs photo questions

    How to keep the prior book and project iPhote forms config to jordane when I've already updated to El Cap... and iPhoto requires a missing update.

    Books and other projects do migrate well to iPhoto to Photos, because the themes have been completely redesigned.  Finish your books in iphoto, if you can.

    To run iPhoto on El Capitan updated to the iPhoto version 9.6.1.

    See this tip for user: cannot be updated iPhoto because it is not available in the App Store

  • Caps lock question

    I have a new HP PC Envy 23 Touchmart with wireless keyboard, there is no light showing when shift caps lock is enabled. What I have to do something or is it a default? I'm frustrated not knowing if shift caps lock is enabled or disabled.

    Thanks for your reply. I got assistance from Best Buy local and solved the problem. I have windows and there's a rocking application that you can use which will beep. Your top is caps lock shift and down is tiny. It works OK. Wireless keyboards have no lights to save the battery. The rocking application can be applied by going into Control Panel and selecting keyboard easier to use. It will also give you a warning of the screen when you are ready to type a password if your caps lock is enabled. Maybe it will be useful to someone.

  • Questions Microsoft sculpt an ergonomic keyboard - cannot press Caps Lock shift-space-E at the same time. The E key does not work.

    Hello

    Just like the title says, when I try to press a combination of: caps lock shift + space + E, E key is not broadcast.

    Pressing any other key (Q, W, R, T, Y, U) works very well.

    I noticed this only happens with the space bar on the left side, the right one to work properly.

    Any idea what goes wrong? and why the two spacebars feature is not the same thing?

    Thank you.

    Hello

    Thank you for your response.

    Because Israel is not listed in the list of countries for the hardware support, please contact the establishment from which you obtained your Microsoft product.

    Hope this information helps. Please do not hesitate to contact us if you have problems with Windows in the future.

  • Dummy question: add several files to the project to JDE

    Hello

    I try to use JDE (standard single application, not the eclipse plugins).

    I try to search through all the menu of this software and I can't find a way to add many source files in a project. I can only add a single file each time with "add a file to the project feature.

    I create a project in Eclipse plugin with a large amout of source file, and I want to import in to the JDE environment (for testing with the component pack 4.2).

    Is there a good way to do that than to add a single file to add the file to the project feature?

    Thank you

    You can copy the jdp (project) of your plug-in in eclipse. Open it in a text editor (notepad ++ for example) and change the paths for source files, if necessary.

  • Simple question on building projects in the JDE

    I open a few sample tests in the JDE.  When I Isaiah to compile a project, it gives an error "i/o error: cannot run program"javac": CreateProcess = 2 error, the system cannot find the file specified. '.  Can someone explain what I need to do?

    Apppend this to your PATH variable:

    C:\Program Files\Java\jdk1.5.0_18\bin

    That should do the trick.

  • Question of JDE 5.0

    I'm having a problem with blackberry jde 5.0. Every time I load the program it says loading class information, then the program closes. No idea why this would happen?

    too bad I guess I just opened it wrong. It works now

  • API of OS, JDE and the current storm and a few questions

    Hello.. can someone tell me what is the

    current operating system

    Current blackberry JDE

    and for touchscreen there API and additional details?

    who is the first JDE that supports touch screen.

    Thanks in advance.

    "4.7 is the first that has support for display of taouchs or there is also a precedent?" - 4.7 is the first.

    "If I develop any application on 4.7 while it will be compatible with 4.5?"-No. forwards is supported, not backward.

  • question about Signtool (JDE 4.2.1)

    Hi guys!

    Is it possible to sign my application from command line (like the command line compilation)? I need to do without Signtool UI interaction (without file without typing password selection and etc...).

    I tried this command:

    javaw-jar signaturetool.jar - a - c MyApplication.cod MyApplication.cod

    .. but just run signtool application.  How can I register my application automatically without having to type a password and etc... ? Is this possible?

    I thank in advance.

    Vlad.

    Hi Svat,

    You can use signature of JDE 4.6 tool. It does not affect what id target you BONES for the application.

    Thank you

    Eugen

  • Question of drop cap

    I have a beginning of a sentence:

    "T.J. Peterson" is his name...

    I want to make the T a drop cap, but not the quotation mark in front of her.

    How is it possible. I only am not an expert on the styles nested for would appreciate an explanation.

    Thank you.

    Nested styles

  • Questions and the Quiz Question box misalignment Cap 7

    I work in the latest version of Captivate 7.0.1) subscription version and added a question true/false quiz at the course. The inserted question aligns the selection 'box' (circle) correctly for the first response, but not for the second. This is true for the multiple choice questions as well.

    The master looks very good, there is no extra space in the text of the question (it occurs without the addition of content), there is no way to close the gap of space. If I move the text, the misaligned selection box moves with it and keeps the difference.

    I imported a question of another master, and it works very well, so I have a workaround, but I would like an answer to what is the cause, so I don't inadvertently re-create the problem if it's my fault. And if it's a bug, then Adobe should jump on this one.

    Images - example misaligned

    misalign.jpg

    and aligned example imported from another master

    misalignnot.jpg

    Uncheck the Auto size legends in Preferences > by default.

    Anthony

  • Questions of performace driver JDBC Type 3 of JDE (interoperability)

    Hi all

    We have a scenario where we need to read the data of the company (JDE E1 (9.0)) of the other java application.
    We thought to read data from JDE E1 Application Java using a driver of connectivity of database using Java (e1jdbc.jar) as described in the guide to interoperability.

    However, we are about to give up this idea because one of the engineer installation of JDE E1 suggested that we could address seriously the performance issue with TYPE 3 driver suggested in the connectivity guide.

    I would like to know if anyone in this forum experienced serious performance with the driver of JDBC Type 3 JDE issues.

    An experienced Java programmer, I'm sure that Type-3 pilots gives great flexibility and quite a point of view as well performance. However, I'm not very experienced with JDE E1 so forum suggestions/input are appreciated.


    NOTE: Both applications are (JDE and Java Applcaiton) still in the development stage (5 more months to go on Production).

    Best regards
    Fitted

    Hi khadija

    The link above works fine for the me... Please try again. You can also search for document 814163.1 on the Support of Oracle.

    In addition, you can download the driver from the site of delivery of Oracle. The file you need is:

    JD Edwards EnterpriseOne 8.98.3 data access driver V20876-01

    It's in JD Edwards EnterpriseOne Tools Update 3 8.98 Media Pack for Microsoft Windows (32-bit). It comes in the form of nominal file that needs to be installed via Server Manager. You might be able to install it on the DEMO by extracting the nominal file and the DADriver_EAR.jar who is that it contains, but I can't guarantee it.

    Dave

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

Maybe you are looking for