What kind of error is this

C:\source>java Average1
Assertion failed: offset < fFileSize, file ..\..\..\..\src\share\native\sun\awt\
font\fontmanager\fontobjects\fontObject.cpp, line 240
abnormal program termination
the above source code can be compiled
but when i run java it occurs above error
ive tried to install back my java jdk 1.3 on windows 2000 but it still has the same result
its weird that at my friends computer it can run well
my email [email protected]

import javax.swing.JOptionPane;
public class Average1 {
public static void main( String args[] )
int total, // sum of grades
gradeCounter, // number of grades entered
gradeValue, // grade value
average; // average of all grades
String grade; // grade typed by user
// Initialization Phase
total = 0; // clear total
gradeCounter = 1; // prepare to loop
// Processing Phase
while ( gradeCounter <= 10 ) {  // loop 10 times
// prompt for input and read grade from user
grade = JOptionPane.showInputDialog(
"Enter integer grade: " );
// convert grade from a String to an integer
gradeValue = Integer.parseInt( grade );
// add gradeValue to total
total = total + gradeValue;
// add 1 to gradeCounter
gradeCounter = gradeCounter + 1;
// Termination Phase
average = total / 10; // perform integer division
// display average of exam grades
JOptionPane.showMessageDialog(
null, "Class average is " + average, "Class Average",
JOptionPane.INFORMATION_MESSAGE );
System.exit( 0 ); // terminate the program

Similar Messages

  • What kind of error is this? Can't find answer

    I loaded up an H.264 file into FCP X. I did my edits and everything looks fine on my primary storyline, no issues with playback at all. Video played back with my edits. My edits are basic edits (cutting of clips). And I have background rendering set to on
    I go to share, export to compressor 4. In side of compressor I click on preview and I get this. Nothing is showing up in the preview.
    I found this strange but I went and did the encode anyway thinking maybe it just couldn't show me a preview. The video output was the same as the preview.
    I don't know what I am doing wrong as everything looks correct in FCP X. Not sure why Compressor 4 can't see the video

    export to compressor 4
    You mean Send to Compressor?
    Try trashing your project render files and don't re-render.
    Is playback set to proxy or original/optimized?

  • General question: what kind of error is this

    This has happened to me a couple times now. I'm in Apple Motion, working on projects that aren't too intensive, when everything but the mouse freezes. I can still move it around but I can't click on anything or change applications (not even with the keyboard). I hesitate to call this a "crash" since the app doesn't quit and the computer doesn't completely lock up. Would you call this a freeze, kernel panic, what?
    This may be related to using a Matrox MXO device with my video card, as it was turned on in both cases. Trying to work with their tech support to figure out if this is the culprit...

    Oh yes, the Console log. I know it well.
    Here's what I found in system.log at the time of the freeze:
    ATIRadeon::waitfor_rbspace: Overflowed block waiting for FIFO space. Have 2, need 5. RBBM_STATUS 0xb803c100
    ** ASIC Hang Log Start **
    (followed by lots of kernel messages)
    So yeah, definitely a graphics card issue, although maybe not the Matrox? Hard to say.
    I've had this setup (ATI Radeon x1900, Dual Apple 23" monitors, Matrox MXO) for a couple months now and it was running great under Tiger 10.4.11. It wasn't until I installed Leopard that this started happening. FWIW, I didn't upgrade, I installed it on a brand new drive that's in drive slot #4, ran all the system and Quicktime updates afterwards. Everything seems to run OK except for this occasional glitch. I ran First Aid and Repaired permission afterwards but I do regular maintenance anyway so I don't think that's going to fix anything.

  • What kinds of error iCloud symbol with ! inside?

    added song purcahsed outside of iTunes to library. iCloud symbol shows cloud with ! inside. what kind of errors produce this symbol? how to correct?

    See http://support.apple.com/kb/ts4124.

  • I cannot reactivate my e-reader with my existing Adobe ID and password which are both correct. I alwayss get the message "activation server error, Code: E_AUTH_NOT_READY" What kind of problem is this and what is most important, how can I solve it quickly.

    I cannot reactivate my e-reader with my existing Adobe ID and password which are both correct. I alwayss get the message "activation server error, Code: E_AUTH_NOT_READY" What kind of problem is this and what is most important, how can I solve it quickly. I am on holiday and want to read. Thanks for speedy reply.

    Yes, actually I talk about Digital editions. Do you know how to solve the problem as described in my first mail for Digital Editions? Thanks for your  kind assistance.

  • "What kind of file is this" Loop Browser error

    Hi there,
    I just re-installed Logic after doing an erase & install of my system. Seems okay so far, except that when I open the Loop Browser and click on a loop to hear it, I get the error message:
    "Club Dance Beat 002 [or whatever the loop name is].caf" - what kind of file is this?
    And then there's an 'Abort' button, but no other options. The file won't preview, nor will it drop into my Arrange window when I try to drag it over. This happens with both green & blue (midi & audio) loops in the browser.
    Odd. Any thoughts? Thanks!

    Sorry so long to respond to this. Apparently my 'Subscribe to this Topic' notification thing isn't working, and I didn't realize there had been any responses....
    I've re-installed from the Logic content disc, but still no change. From the other discussions I've read, it looks like most folks encountered this when they installed GB08 AFTER Logic was already on their system. After I did my erase & install, I installed iLife 08 BEFORE I installed Logic Pro. Would that be causing this weirdness?
    Odder still is that the ONLY loops I'm finding on my computer are the GB08 Loops (and iLife sound effects), but then maybe I'm not looking in the right place for the Logic loops? Further, in my GB08 loops folder, there seem to be .caf and.aiff versions of each loop, but no matter what I try to use in Logic's Loop Browser, I get the same error about the caf file....
    Perplexed.

  • 'what kind of error 'plzzz help

    hi all
    plz check the following code and error which it is givn 2 me. how shld i rectify it? not able to get what kind of error it is.
    *& Report  ZNBS_FI_FS10N
    REPORT  ZPRAC_FI_VENDORSTATEMENT.
    Report Title          : Display Line item balances for VENDORs with opening balances
    Functional Consultant : Mr ShreeHari
    ABAPER                : Sanjay K, NBS
    TYPE-POOLS slis.
    DATA   :   fcat               TYPE slis_t_fieldcat_alv WITH HEADER LINE,
               ls_event               TYPE slis_alv_event,
               repid                  LIKE sy-repid.
    DATA   :   b_layout               TYPE slis_layout_alv.
    DATA   :   gt_events              TYPE slis_t_event WITH HEADER LINE.
    DATA   :   lt_list_commentary     TYPE slis_t_listheader,
               l_logo                 TYPE w3_qvalue.
    TABLES : BSAK, ska1, bsis, bkpf, thead, t003, t003t, LFA1, skat.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
    SELECT-OPTIONS pbukrs FOR bsis-bukrs default '1000'.
    SELECT-OPTIONS pLIFNR FOR LFA1-LIFNR  default '410028'.
    SELECT-OPTIONS pbudat FOR bsis-budat OBLIGATORY default '20060401' to '20061219'.
    SELECTION-SCREEN END OF BLOCK b1.
    DATA : BEGIN OF itab OCCURS 0,
           belnr LIKE bsis-belnr,
           bukrs LIKE bsis-bukrs,
           gjahr LIKE bsis-gjahr,
           blart LIKE bkpf-blart,
           bldat LIKE bkpf-bldat,
           budat LIKE bkpf-budat,
           LIFNR LIKE LFA1-LIFNR,
           dmbtr LIKE BSAK-dmbtr,
           wrbtr LIKE BSAK-wrbtr,
           shkzg LIKE BSAK-shkzg,
           ltext LIKE t003t-ltext,
           END OF itab.
    DATA TEXT(60). " LIKE t003t-ltext.
    DATA jtab LIKE itab OCCURS 0 WITH HEADER LINE.
    DATA : BEGIN OF final OCCURS 0,
            belnr LIKE bsis-belnr,
           bukrs LIKE bsis-bukrs,
           gjahr LIKE bsis-gjahr,
           blart LIKE bkpf-blart,
           bldat LIKE bkpf-bldat,
           budat LIKE bkpf-budat,
           LIFNR LIKE LFA1-LIFNR,
           debit LIKE BSAK-dmbtr,
           credit LIKE BSAK-wrbtr,
           shkzg LIKE BSAK-shkzg,
           balance LIKE BSAK-dmbtr,
           ltext LIKE t003t-ltext,
           END OF final.
      DATA : BEGIN OF output OCCURS 0,
             belnr LIKE bsis-belnr,
             bukrs LIKE bsis-bukrs,
             gjahr LIKE bsis-gjahr,
             blart LIKE bkpf-blart,
             bldat LIKE bkpf-bldat,
             budat LIKE bkpf-budat,
             LIFNR LIKE LFA1-LIFNR,
             ddebit LIKE BSAK-dmbtr,
             ccredit LIKE BSAK-wrbtr,
             shkzg LIKE BSAK-shkzg,
             balance LIKE BSAK-dmbtr,
             ltext LIKE t003t-ltext,
             hkont LIKE bsis-hkont,
             bschl LIKE bsis-bschl,
             TXT50 LIKE SKAT-TXT50,
             END OF output.
    ********FOR OPENING BALANCE.
    DATA : BEGIN OF open OCCURS 0,
           wrbtr LIKE BSAK-wrbtr,
           dmbtr LIKE BSAK-dmbtr,
           bukrs LIKE BSAK-bukrs,
           shkzg LIKE BSAK-shkzg,
           END OF open.
    DATA clear LIKE open OCCURS 0 WITH HEADER LINE.
    DATA: BEGIN OF bal OCCURS 0,
          dbal LIKE bsis-wrbtr,
          cbal LIKE bsis-dmbtr,
          shkzg LIKE bsis-shkzg,
          END OF bal.
    DATA date TYPE sy-datum.
    MOVE pbudat-low TO date.
    date = date - 1.
    DATA: BEGIN OF balance OCCURS 0,
          debit LIKE bsis-wrbtr,
          credit LIKE bsis-dmbtr,
          total LIKE bsis-dmbtr,
          END OF balance.
    DATA : BEGIN OF line OCCURS 0,
           belnr LIKE bsis-belnr,
           dmbtr LIKE bsis-dmbtr,
           wrbtr LIKE bsis-wrbtr,
           hkont LIKE bsis-hkont,
           gjahr LIKE bsis-gjahr,
           bukrs LIKE bsis-bukrs,
           shkzg LIKE bsis-shkzg,
           budat LIKE bsis-budat,
           blart LIKE bsis-blart,
           bschl LIKE bsis-bschl,
           TXT50 like skat-txt50,
           END OF line.
    TOP-OF-PAGE.
      PERFORM top_of_page.
    START-OF-SELECTION.
    *perform integrate.
      PERFORM fetch.
      PERFORM build_catalog.
      PERFORM layout.
    END-OF-SELECTION.
      PERFORM display .
    *&      Form  Fetch
          text
    -->  p1        text
    <--  p2        text
    FORM fetch .
      SELECT * FROM BSIK INTO CORRESPONDING FIELDS OF open WHERE bukrs IN pbukrs AND budat LE date  AND LIFNR IN pLIFNR.
        COLLECT open.
      ENDSELECT.
      SELECT * FROM BSAK INTO CORRESPONDING FIELDS OF clear WHERE bukrs IN pbukrs AND budat LE date AND LIFNR IN pLIFNR.
        COLLECT clear.
      ENDSELECT.
      LOOP AT open.
        MOVE : open-dmbtr TO bal-dbal,
               open-wrbtr TO bal-cbal,
               open-shkzg TO bal-shkzg.
        IF open-shkzg = 'H'.
          open-dmbtr = open-dmbtr * -1.
          open-wrbtr = open-wrbtr * -1.
        ENDIF.
        COLLECT bal.
      ENDLOOP.
      LOOP AT clear.
        MOVE : clear-dmbtr TO bal-dbal,
               clear-wrbtr TO bal-cbal,
               clear-shkzg TO bal-shkzg.
        IF clear-shkzg = 'H'.
          clear-dmbtr = clear-dmbtr * -1.
          clear-wrbtr = clear-wrbtr * -1.
        ENDIF.
        COLLECT bal.
      ENDLOOP.
      CLEAR bal.
      LOOP AT bal.
        IF bal-shkzg = 'H'.
          MOVE  : bal-dbal TO balance-debit.
          CLEAR bal-dbal.
        ELSE.
          MOVE        bal-cbal TO balance-credit.
          CLEAR bal-cbal.
        ENDIF.
        COLLECT balance.
        CLEAR balance.
      ENDLOOP.
    ********FOR LINE ITEMS
      SELECT * FROM bkpf INTO CORRESPONDING FIELDS OF itab WHERE bukrs IN pbukrs AND budat IN pbudat .
        SELECT * FROM BSAK INTO CORRESPONDING FIELDS OF itab WHERE bukrs IN
        pbukrs  AND belnr = itab-belnr AND gjahr = itab-gjahr.
          IF itab-shkzg = 'H'.
            itab-dmbtr = itab-dmbtr * -1.
            itab-wrbtr = itab-wrbtr * -1.
          ENDIF.
          SELECT ltext FROM t003t INTO itab-ltext WHERE spras = 'EN' AND blart = itab-blart.
            APPEND itab.
          ENDSELECT.
        ENDSELECT.
      ENDSELECT.
      SELECT * FROM BSIK INTO CORRESPONDING FIELDS OF itab WHERE bukrs IN pbukrs AND budat IN pbudat AND LIFNR IN pLIFNR.
        IF itab-shkzg = 'H'.
          itab-dmbtr = itab-dmbtr * -1.
          itab-wrbtr = itab-wrbtr * -1.
        ENDIF.
        SELECT ltext FROM t003t INTO itab-ltext WHERE spras = 'EN' AND blart = itab-blart.
          APPEND itab.
        ENDSELECT.
      ENDSELECT.
      DELETE itab WHERE LIFNR NOT IN pLIFNR.
    <b>Error: <%_L002> IS NOT AN INTRNAL TABLE-THE OCCURS SPECIFICATION IS MISSING)</b></b>
    error at delete statement.
    its urgent.
    thanks all in advance.
    appropriate reward will b given.

    hi gaurav,
    u created internal table itab with out header line and u r trying to delete it from internal body itself which isn't possible.
    so do like this,
    create workarea [wa_itab] of same structure of itab [internal table] and give delete statement as
    delete wa_itab from itab where condition.
    if helpful reward some points.
    with regards,
    suresh babu aluri.

  • [32282.000367] firefox:2114 freeing invalid memtype c02f2000-c0302000 I get this from system log using latest version of Firefox: What kind of problem is this?

    I get this from system log using latest version of Firefox:
    [32282.000367] firefox:2114 freeing invalid memtype c02f2000-c0302000
    What kind of problem is this?
    Anyway Firefox seem to be working correct. I would like to be sure that it'snt a security problem.

    Thanks a lot for your swift response. And sorry if it was a bit too hectic to go through my detailed query (which I did because it was misunderstood when I asked previously). As I've mentioned above, I was informed that updating to 5.0.1 would '''require''' me to '''delete''' the current version and then install the new one. And doing so will involve losing all my bookmarks. I guess I should have been more specific and detailed there. By losing, I didn't mean losing them forever. I'm aware that they're secured in some place and deleting and installing the software doesn't harm its existence. What I meant that if I install the new version, I'd have to delete the old one. And after installing the new version, I'd have to transfer them (bookmarks) back from wherever they are. Get it? When it updated from 3.6.9 to 3.6.13, and from 3.6.13 to 3.6.18, I didn't need to follow that process. They were already present on their own.
    BTW, I'm having no problems with 3.6.18 but after learning about the existence of version 5.0.1, I'm a bit too eager to lay my hands over it.
    Thanks for your help; hope this wasn't extremely long.

  • When i open firefox it runs in background but does not open. if i disable the internet connection immediately it opens. each and every time i do this when i start work. what kind of problem is this

    i am using windows xp profession sp3 os
    when i open firefox it runs in background but does not open(see through task manager or one message "firefox is already running in background" when i again click the icon.)
    if i disable the internet connection, immediately it opens. each and every time i do this when i start work. what kind of problem is this
    == This happened ==
    Every time Firefox opened
    == i every time starts firefox

    I had the same problem and it was because of my firewall settings, which I had set to block all activity and forgot to reset it.

  • It said ont he box I was buying an iTouch 3G and now I can't upgrade to iOS5 because it's really a 2G, what kind of BS is this?

    It said ont he box I was buying an iTouch 3G and now I can't upgrade to iOS5 because it's really a 2G, what kind of BS is this?  I'm starting to hate Apple if the only way to upgrade is to buy a newer iTouch.

    Bring the appropriate paperwork to the place yur purchased the iPod and demand compensation for the misrepresentation.

  • "What kind of file is this?" message

    When I try to open GB projects (created in GB3 and stored on a hard disk) now in GB 08 I get the message "RecordingXXX. What kind of file is this?" and the only option I have is "Abort." Then I get a message that some of the regions are 8-bit. When the GB file opens, several regions will not play/are not there.
    Any help?
    RS

    I'm getting the same thing in Logic Express.

  • I have an apple Iphone 5s and i'm facing a problem. Sometimes when i unlock my phone with passcode or finger tip my screen goes white around the corners. Please advice what kind of issue is this.

    I have an apple Iphone 5s and i'm facing a problem. Sometimes when i unlock my phone with passcode or finger tip my screen goes white around the corners. Please advice what kind of issue is this.

    Sounds like a hardware issue.  Bring the phone to Apple for evaluation.

  • HT201257 Does anybody know what hardware test error code this is 4SNS/1/40000001: TCOH -1.704

    Does anybody know what hardware test error code this is 4SNS/1/40000001: TCOH -1.704
    Trying to track down fast running fan that will not reset and this error came up.

    only apple techncians have access to what those codes mean.  It is sensor related, but as it is a hardware problem, you need to bring it into an Apple store or AASP to have it correctly diagnosed and fixed.

  • HT2736 I'm trying to send my sister who lives in the UK, a birding app, but when she tries to load it onto her iPhone, it complains and says it was purchased in the US, and cannot be loaded in the UK.  What kind of nonsense is this?  What's the solution?

    I"m trying to gift my sister who lives in the UK a birding app, but when she tries to load it onto her iPhone, it complains and says a US purchased app cannot be loaded into a UK iPhone account.  What kind of nonsense is this?  what's the solution?

    You can currently only gift content (apps, music, gift certificates) to people whose account is based in the same country as yourself - so if you and your account are not UK-based then you can't gift to a UK account holder. You can either try resending it to somebody who is in the US with a US account (resending) or try contacting iTunes support and see if they will refund or credit you : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • What kind i do with this issue on this iphone

    what kind i do with this issue on this iphone any recomendation

    Well, you have encountered the activation lock on the phone and there is absolutely nothing you can do about this.
    Where did you get the phone from?  You need to contact the previous owner of the phone to get this information and if you can't, then the phone is useless to you and you will never be able to use this phone again.
    Congratulations on owning a very expensive paperweight.

Maybe you are looking for

  • How to add a caption to photo in shared photo stream?

    Hi @all, I hope I am not right but there is no option of using the description/caption for a photo in my iPhoto library when I share it with other people in a photo stream? All I found was that you can use the comment field to add a caption-like text

  • VF01/VF04 user exit

    Heloo Gurus, I have a scenario where I need to copy some fields from shipment document (VT03N) into EIKP table at the time of Invoice creation. Transaction VF04/VF01 Can you gurus help me with the appropriate user exit to be used? The process in as f

  • Incorrect IP address on roaming clients

    I have a network of about 30 ap1220b access points. Each is on a seperate subnet with an associated DHCP server. Everything was working perfectly for several years until I replaced one ap1220b with an ap1231g. Clients have no problem connecting to an

  • T CODE  FOR BLCKED /UNBLOCKED  IN THE COST CENTERS

    hI, i WANT TO SEE ALL CSOT CENTERS WHICH IS BLOCKED /AND  UNBLOCKED  PLEASE  TELL ME THE T.CODE FOR THAT

  • Sending Videos by email/online?

    Hello everyone, Im trying to put this long video birthday card together for my buddies 30th bday. I want to have 30 of our friends wishing him happy bday and Im gonna put it on a DVD and send it to him in Africa where he's doing some humanitarian wor