About the biggest size of array

I am writting a applet for big data management.
I need a array such as
pkeydata=new byte[(short)15000];
Is it possible?
I have been asked the technical support of oberthurcs,
He give the answers:
//=======================================================
The applet isn't written in a standard way for JavaCards.
An example is the allocoation of 15000 bytes of memory.
I think you should rethink the applet design and no
allocate memory like that.
//=========================================================
Is that true? If that is true ,could you tell me the biggest
size of array I can allocat?
TKS

I am writting a applet for big data management.
I need a array such as
pkeydata=new byte[(short)15000];
Is it possible?It should be possible. Here is a citation from the Javacard VM spec:
2.2.4 Limitations of the Java Card Virtual Machine
The limitations of resource-constrained hardware prevent Java Card programs from
supporting the full range of functionality of certain Java platform features. The
features in question are supported, but a particular virtual machine may limit the
range of operation to less than that of the Java platform.
To ensure a level of portability for application code, this section establishes a
minimum required level for partial support of these language features.
The limitations here are listed as maximums from the application programmer?s
perspective. Applets that do not violate these maximum values can be converted
into Java Card CAP files, and will be portable across all Java Card implementations.
From the Java Card virtual machine implementer?s perspective, each maximum
listed indicates a minimum level of support that will allow portability of applets.
2.2.4.2 Objects
Arrays
Arrays can hold a maximum of 32767 fields. That means: if your applet's code and data requirements are within the given EEPROM range and the used card is specification compliant, the allocation of a byte-array holding 15000 elements should work.
I have been asked the technical support of
oberthurcs,
He give the answers:
//=====================================================
The applet isn't written in a standard way for
JavaCards.
An example is the allocoation of 15000 bytes of
memory.
I think you should rethink the applet design and no
allocate memory like that.
//=====================================================
[..]Afaik there are other card manufacturers e.g. Orga Card Systems, that are supporting the allocation of arrays in that way. Your kind of allocation as described above is according to the spec.
Hope that helps
Carsten

Similar Messages

  • I am getting an error message about the bit size on my computer. How can I find out this information

    Hi I am having difficulty installing adobe pro on my computer. I am getting an error about the bit size on my computer. How do I find that information?

    You have not provided any proper system info nor any info on what program you are trying to install nor the exact warning, so this is utterly pointless.
    Mylenium

  • What is the biggest size of compatible memory card...

    Hi,
    when I bought my E90 one year ago, I read somewhere (can't remember where) that there are problems if you use a memory card bigger then 2GB. If I remember correctly, there was a allegation that a bigger memory card would slow down the performance of the phone and would even freeze the phone from time to time.
    So, what memory card do you use with your E90?
    Please also mention what software you have installed, because this could be related with how it handles the additional memory!!!
    I recently updated my software to version 300.34.84
    Thanks in advance for your reply.
    Solved!
    Go to Solution.

    16GB cards works well but surely it slows down the phone as hell and the phone tends to hang a lot..........
    also during my six days alteast twice a day my phone would refuse to recognize this card........
    I tried installing my all apps on the phone memory but still the **bleep** was not repairable...........
    So i wud definitely advise not to experiment with the 16 GB card rather go for 8 GB either by Toshiba, kingston or even scandisk .......
    wat the hell nokia centers do also have made in Japan nokia branded 8GB cards..........
    Articles posted courtesy engadget
    keep us updated about the progress.... if u like wat I have to offer then click on khudos.

  • About the sort method of arrays

    Hi,
    I found that for primitive types such as int, float, etc., algorithm for sort is a tuned quicksort. However the algorithm for sorting an object array is a modified merge sort according to the java API. What is the purpose of using two different sorting strategy?
    Thanks.

    The language knows how to compare two ints, two doubles, etc. For Object arrays, however, it's not a simple matter of comparing two reference values as ints or longs. We're not comparing the references. We have to compare the objects, according to the class's compareTo() method (if it implements Comparable) or a provided Comparator. The size of an int is known, fixed, and small. The size of an object is unknown, variable, and essentially unbounded. I don't know for sure that that difference is what drove the different approaches, but it is a significant difference, and mergesort is better suited to use cases where we can't fit the entire array into memory at one time. It seems reasonable that we'd get better locality of reference (fewer cache misses, less need to page) with an array of ints than with an array of objects.
    Edited by: jverd on Mar 18, 2011 3:16 AM

  • About the file size of Default.png

    Hallo forum members,
    Is there a 2 MB restriction on [email protected]  as there is on normal JPEG pictures?
    When I save the [email protected] for a widget the filesize goes up to more than 2 MB, as I save the png with 24 Bit.
    Using 8 bit depth to save file size the images show artefacts and color banding.
    Ulrike

    Book Cover Art
    ● The book’s cover art that appears on the iBooks Store (also known as the marketing image) is the image
    delivered alongside the book asset and does not refer to the cover image included in the book asset. The
    pixel limit for the interior cover, as with all interior book images, has been increased to 3.2 million pixels.
    ● The book’s cover art must use RGB color mode and should be at least 1400 pixels along the shorter axis.
    For best results, a good rule of thumb is to use an image that is a minimum of 300 dpi.
    ● The book’s cover art file must be a high-quality JPEG with .jpg or .jpeg extension or PNG with .png
    extension.
    ● The 3.2 million pixel limit on interior book images does not apply to the external cover/marketing image
    that is sent alongside the book asset.
    ● It is important that you do not increase the size of a smaller image to meet the minimum image size
    dimension standard. Excessively blurry or pixelated images will be rejected.
    Screenshots
    You can provide up to five screenshots per book.
    ● Full-sized iPad 1/2 images (1024 x 768 or 768 x 1024) in PNG (.png) or JPEG (.jpg) format.
    ● Full-sized new iPad images (2048 x 1536 or 1536 x 2048) in PNG (.png) or JPEG (.jpg) format.
    ● For a cleaner look, you can optionally remove the status bar (making the images 1004 x 768 or 748 x 1024
    for iPad 1/2, or 2028 x 1536 or 1536 x 2028 for the new iPad).
    Perhaps the engineers should take time to read  the Assett guide.  As yet I have not found any engineers posts  advising other than the assett guuide.. do you have a link for any?
    Its always better to have higher resolution images  than not, and as long as the end product comes with the 3.2 meg limit for all except the cover, its good for those not over familar with image ediiting.
    The iPad retina screen resolution is 2048 x 1536 @164 DPI/PPI

  • About the img size

    how can i export my work in freehand with spefic size ..or
    how can i resize it to spefic size

    quote:
    Originally posted by:
    firstpharaon
    how can i export my work in freehand with spefic size ..or
    how can i resize it to spefic size
    Also, if you need a specific raster size for the preview (for
    say InDesign, Quark XPress, etc.), adjust the Raster Effects
    Settings under the File menu --> Document Settings --> Raster
    Effects Settings (near bottom of File menu).
    There you can set the dots-per-inch (D.P.I.) to whatever you
    need for printing. The Default is 72 D.P.I., so if you need to
    print at say a minimum of 200 lines-per-inch (L.P.I.) then set the
    Raster Effects Setting to 300 D.P.I.
    Any more than 300 D.P.I. and the file gets huge and may crash
    FreeHand.
    By the way, how large do you need to scale the vector image?
    And what is the final output size? Is it for the Web, a
    newspaper, a magazine, a billboard sign? That will determine your
    Raster Effects Settings...

  • Why are the backups to iCloud much smaller than those to my PC?  I subscribed to extra iCloud space expecting for the backups to be the same size.  Now I have more unused iCloud space I don't need, can I get a refund?

    Backups to my PC were almost 30 G bytes each time,  backup to the Icloud is only 1.4 G bytes.  Expecting the backups to be about the same size I subscribed to extra Icloud space.  Can I stop my Icloud pace subscription amd get a refund?  I have all this extra space and have no use for it.  It does not appear there is a way to use this space for other storage purposes.

    You can't merge iCloud backups.  You could create a current backup of your phone, then restore the backup of your old phone to it and save any data you want to keep, the restore it again to the current backup.  Some of your old recovered data could then be synced back to your new phone (such as photos), but other data cannot (such as text message conversations).  You may not want to save any of your old data but restoring the backup would be the only way to see what's there.

  • How to set the minimum size of app window?

    Hi JavaFX experts :)
    Is it possible to limit the minimum size of application window? What would be the JavaFX equivalent of the following SWING code?
            JFrame frame = new JFrame("Application Title");
            frame.setMinimumSize(new Dimension(320, 240));
            frame.setPreferredSize(new Dimension(640, 480));Preferred or initial size was easy (width/height), but what about the minimum size?
    Stage {
        title: "Application Title"
        width: 640
        height: 480
        scene: Scene {
            content: [
                // some content
    }Thanks!

    var stage: Stage;
    var stageWidth = stage.width on replace
        if (stageWidth < 640) stageWidth = 640;
    var stageHeight = stage.height on replace
        if (stageHeight < 400) stageHeight = 400;
    stage = Stage {
        title: "Application Title"
        width: bind stageWidth with inverse
        height: bind stageHeight with inverse
        scene: Scene {
            content: [
                // some content
    }It doesn't prevent resizing to smaller dimensions but it restores to minimal dimension if done.

  • What about the "Foreach" of Java

    public class LotteryArray {
    * @param args
    * @param args
    public static void main(String[]args)
         final int MAX=10;
         int[][]odds=new int[MAX+1][];
         for(int n=0;n<=MAX;n++)
              odds[n]=new int[n+1];
         for(int n=0;n<odds.length;n++)
              for(int k=0;k<odds[n].length;k++)
                   int lotteryOdds=1;
                   for(int i=1;i<=k;i++)
                        lotteryOdds=lotteryOdds*(n-i+1)/i;
                   odds[n][k]=lotteryOdds;
         for(int[]row:odds)
              for(int odd:row)
                   System.out.printf("%4d", odd);
              System.out.println();
    }I don't Know about below
    for(int[]row:odds)
              for(int odd:row)
                   System.out.printf("%4d", odd);
              System.out.println();
         }if every element of odds will fill in row?
    and so the element of row will copy to odd?
    pls pay attention to odd dosn't equal odds

    okay,Got it
    Thanks
    but what i ask is about the Multidimensional ArraysA multidimensional array is just an array of arrays. I've never use the enhanced for loop with one, but I imagine it would be like this: // Old way
    int[][] arr = ...;
    for (int ix = 0; ix < arr.length; ix++) {
        int[] innerArray = arr[ix];
        for (int jx = 0; jx < innerArray.length; jx++) {
            int value = innerArray[jx];
            // do stuff with value
    // Enhanced for loop
    int[][] arr = ...;
    for (int[] innerArray : arr) {
        for (int value : innerArray) {
            // do stuff with value
    }

  • Preview: Save as PDF while approximately keeping the file size ?

    Hello!
    I know that several good discussions took place about the way to reduce the file size when saving (as) a PDF from the application Preview.
    I tried:
    • the default poor quality "Reduce File Size" preset filter,
    • the additional filters provided by Jérôme Colas (http://discussions.apple.com/thread.jspa?messageID=6250289)
    • the "Compress PDF Workflow 4.0" that reenables feature for Leopard (http://www.apple.com/downloads/macosx/automator/compresspdfworkflow.html)
    Has anyone come across a method to _keep in about the *original size*_ of the original Adobe PDF ?
    When saving a 3 MB PDF with Preview, I see it increase to 80 MB, so that dramatically reducing it to 40MB is not really satisfying, is it?
    Thank you in advance for any suggestion !

    Bernd, thank you for your attempt to help but the option dialog windows do not contain the same options.  There are numerous other posts on this forum about this issue and there is no answer.  Clearly, there is an issue.  I have submitted this issue to our internal help desk.

  • What's the biggest .tiff size fill that Version 10 can manage

    What's the biggest .tiff size fill that Version 10 can manage, since Version 9 does'nt like anything over 27.MB

    MTSTUNER,
    I remember us talking about Adobe documenting the maximum file sizes, and I just found this while browsing on the Photoshop Developer's site (http://www.adobe.com/devnet-apps/photoshop/fileformatashtml/).  It's a description of the PSD file header information:
    File Header Section 
    The file header contains the basic properties of the image.
    Length
    Description
    4
    Signature: always equal to '8BPS' . Do not try to read the file if the signature does not match this value.
    2
    Version: always equal to 1. Do not try to read the file if the version does not match this value. (**PSB** version is 2.)
    6
    Reserved: must be zero.
    2
    The number of channels in the image, including any alpha channels. Supported range is 1 to 56.
    4
    The height of the image in pixels. Supported range is 1 to 30,000.
    (**PSB** max of 300,000.)
    4
    The width of the image in pixels. Supported range is 1 to 30,000.
    (*PSB** max of 300,000)
    2
    Depth: the number of bits per channel. Supported values are 1, 8, 16 and 32.
    2
    The color mode of the file. Supported values are: Bitmap = 0; Grayscale = 1; Indexed = 2; RGB = 3; CMYK = 4; Multichannel = 7; Duotone = 8; Lab = 9.
    So it's not surprising that PSE's max is 30K x 30K.
    Ken

  • To whom do I complain about the calendar on the iPad 2 with iOS 7? I can no longer read my appointments. Is there an adjustment I can make? Larger text size doesn't help.

    To whom do I complain about the OS 7 calendar on the iPad 2? I used to be able to read my appointments. The new small font is horrible. Text size doesn't seem to change it. Can I change it?

    Try this  - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.) No data/files will be erased. http://support.apple.com/kb/ht1430http://support.apple.com/kb/ht1430
     Cheers, Tom

  • I have 4 equal oblong shape created with borders How do I go about knowing what size the selection area is so that I can crop an image to fit. I don't want to use paste in then adjust the bounding box to suit

    I have 4 equal oblong shape created with borders How do I go about knowing what size the selection area is so that I can crop an image to fit. I don't want to use paste in then adjust the bounding box to suit

    What do you mean a moderator

  • HT5639 I am attempting to install windows 7 ultimate on a mid2012 production macbook pro using Bootcamp 5 in Mountain Lion. Whenever I set the partition size and tell it to continue, the program quits unexpectedly. I have done this about 5 times now. Sugg

    The lead-in above pretty much states the problem. I am attempting to install Windows 7 from a disk, but that is not the issue. Boot Camp 5 just quits and reopens. I then repeat. Help.

    I am about to run specialized GIS software that may or may not need the full machine resources. I am an attorney who uses QuickBooks for my accounting. The Mac version does not do as much as the Windows version. This is from both Apple and Quick Books professionals. I am using Parallels Desktop version 8 at this time. It does not support QuickBooks Windows version per Parallels. Any other questions? I am a highly competent PC user who is new to Macs. I am entitled to my own configuration choices. That said, I know when I need help which is now.
    As to the free space issue I have 665.18 GB free space out of 749.3 GB on the drive. I am not trying to run the 32 bit version. I know that it requires the 64 bit version. Besides, it does not get that far in the process. As I said Boot Camp asssitant terminates unexpectedly as soon as you hit the continue button after setting the partition size. Therefore I conclude that it does not have a chance to see which version of Windows that I am using. I am using Windows 7 Ultimate 64 bit version in the virtual engine (to use Parallels speak), but again Boot Camp would not see that since it is not running. It can't run at the momenet because Apple just installed a new hard drive and I have just restored the data from TIme Machine and Parallels needs reactivated, which I have not done yet deliberatley. With all of this addtiional information do you have any further suggestions? Thanks for your time and interest my issue.

  • My iPhone 5 has a grey-ish blue splodge on the screen. What is it and how can I get rid of it? The place that has the spot is about the size is about 2cm,it still works where the spot is. I haven't sat on my phone or hit it to hard, not that I remember.

    The place that has the spot is about the size is about 2cm,it still works where the spot is. I haven't sat on my phone or hit it too hard, not that I remember.  I  noticed a while ago. Will it disappear? I can see the things that should be where the spot is eg it's on the keyboard and I can see the keys. Will this spread to the whole screen? How can u get rid of this?

    If you own an iPhone that is ineligible for warranty service but is eligible for Out-of-Warranty (OOW) Service, Apple will service your iPhone for the Out-of-Warranty Service fee listed below.
    iPhone model
    Out-of-Warranty Service
    iPhone 5s, iPhone 5c,
    iPhone 5
    $269
    iPhone 4s
    $199
    iPhone 4, iPhone 3GS,
    iPhone 3G, Original iPhone
    $149
    A $6.95 shipping fee will be added if service is arranged through Apple and requires shipping. All fees are in U.S. dollars and are subject to local tax.

Maybe you are looking for