Re: Need help: error message "reached end of file while parsing"

You are missing a closing brace "}" somewhere near the bottom half of your code.
Edit:
DrClap beat me to it.
Edited by: Jin on Oct 2, 2007 1:33 PM

well i just compiled the source that you have posted. it appears that you have declared a variable called "oper" within the Design method and tried to acces it from within the actionPerformed method (line 136). thats a scope error. one way to eliminate this error is to declare the oper var as global variable, i.e. along with the JButtons and stuff.
another error is at the same place , the last if block. you might wanna use only the equals method like oper.equals("minus"). another way is oper.compareTo.("minus")==0.
I believe this will hold for now. you may find the following stuff helpful, but probably you know this already.....
In order to view your applet you can use an html that looks something like this
<html>
<body>
<applet code="calc" width="400" height="400">
</applet>
</body>
</html>
to test it without a browser issue the command
java sun.applet.AppletViewer app.html
where app.html is the above html file and situated in same folder as calc.class file

Similar Messages

  • Reached end of file while parsing error

    I have a problem. It looks like my program has no errors but I get an error that says "reached end of file while parsing" (note: this is being developed in NetBeans). Can you help me?
    class LongNumbers {
        public static void main(String[] args) {
            long numbers = 12345678910L;
            int number = 2;
            switch (number) {
                case 1: System.out.println("One\nTwo\nThree\nFour\nFive\nSix\nSeven\nEight\nNine\nTen");
                case 2: System.out.println(numbers);
            int firstArg;
            if (args.length > 0) {
                try {
                    firstArg = Integer.parseInt(args[0]);
                } catch (NumberFormatException e) {
                    System.err.println("Argument must be an integer");
                    System.exit(1);
    }

    Oh, nevermind. I found the problem. The admins can delete this if they want.

  • Reached end of file whlie parsing

    Hello,
    I get the error message "reached end of file while parsing" when I try to compile the below program.
    Does anybody know why I am getting this message?
    I think my braces are all paired.
    Thanks.
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class DrawFillRect extends JApplet {
         private MyColorChooser chooser;
         private JButton paint;
         private RectPanel myPanel;
         public void init()
              chooser = new MyColorChooser();
              Container c = getContentPane();
              c.add( chooser, BorderLayout.WEST );
              myPanel = new RectPanel();
              paint = new JButton( "Paint" );
              paint.addActionListener(
                   new ActionListener() {
                        public void actionPerformed( ActionEvent e )
                             myPanel.draw( chooser.getCustomColor() );
              c.add( paint, BorderLayout.CENTER );
              c.add( myPanel, BorderLayout.EAST );
    }     

    The error is likely coming from code that you are not showing us. Look carefully at the error message to see what line of code is setting it off, then start debugging.
    edit: please see my message in your other thread. It is considered rude in all societies, including this one, to have received help and not to have acknowledged it. This may affect the willingness of members to help you in the future.
    Edited by: Encephalopathic on Aug 17, 2008 8:30 PM

  • NEED HELP error messages - cannot install iTunes upgrade

    I'm running Windows Vista.
    I've been using iTunes for about a year, no problem.
    When I went to download the iTunes latest version I have had nothing but problems. I keep getting this error message on trying to install the upgrade for iTunes, and now I cannot even use iTunes:
    iTunes could not be installed because Visual Basic Script (VBscript) is not installed or has been disabled. Make sure VBscript is installed, turn off script blocking in anti-virus and personal firewall software, re-register VBscript, and then install iTunes.
    I have no idea what that message means and I need step by step directions on how to find out of perform whatever that message means.
    Your help would be GREATLY appreciated.
    Dell Optiplex   Windows Vista   VISTA for Business

    even though the following document refers to XP rather than Vista, it's still worth a crack on a Vista box:
    iTunes and QuickTime for Windows cannot be installed without Visual Basic Script (VBScript)

  • Need Help: Error Message on MacBook Air

    Hello,
    My MacBook Air keeps showing the following error message after it is woken up from sleep:
    I do not have anything plugged in to the ports, and I have tried restarting and shutting down several times. I would appreciate any insight or solutions the community might have. Thank you!

    Hello S.W. Tyra
    That is interesting, especially since nothing is plugged in. I would start with resetting the SMC and NVRAM on your MacBook Air and then test it out. Let me know if this helps or if you are still having issues.
    Intel-based Macs: Resetting the System Management Controller (SMC)
    http://support.apple.com/kb/HT3964
    About NVRAM and PRAM
    http://support.apple.com/kb/ht1379
    Regards,
    -Norm G.

  • Need help, error messages

    Error messages. Warning: Unresponsive plug-in. Shockwave Flash may be busy, etc.  This keeps coming up more
    frequently.  It does it mainly on my Yahoo home page and on Facebook Games.  I've had 4 different tech specialists
    try to fix this, unsuccessfully.  Another error message says, Your Adobe Flash Plug-in  has crashed.  I have a laptop,
    Windows 8.1, use Mozilla Firefox. Have installed the latest version of the Flash Player. Can you help me? Thanks. Mary

    I have had this same issue on a laptop and desktop. i have uninstalled, reinstalled, everything but format my machines.  I dont think this is my problem I believe it is an adobe issue.   I cant play facebook games or log on yahoo pages, my bank.   This has been a bad week so far.

  • Need help: error message in Log.

    Hi,
    I got the following error in log file when I open form in LC ES2 workspace. Does anyone solve it before?
    WARN  [com.adobe.document.XMLFormService] ALC-XTG-029-217: [2800] Bad value: 'designer__defaultHyphenation.para.hyphenation' of the 'use' attribute of 'hyphenation' element ''. Default will be used instead.
    Thanks.

    I zeroed in on this same error message today.  I can't tell you exactly what was causing it, but I can tell you exactly the object that was causing the issue.  It was a 1-row, 2 column table.  In one cell was some text that included hyphenation ("in-process").  In another cell was a drop-down menu with only two options defined: pass and fail.
    I noticed that as I was scrolling through the document, as long as this particular table was visible, I would get the same "bad hyphenation" message continuously, line after line, and once the screen threw up 8 lines of this same message at once.  But once I deleted the object, the error no longer appeared, and when I re-created the same table sans hyphen, no error messages.
    I must note that once the error message appeared, when I tried to work with the table-cells, the object no longer functioned as a joined table but instead worked like individual fields.
    My suggestion is to go through your document and look for table cells with hyphenated text, delete them completely and then re-type them without the hyphen included, and see if that takes care of the problem.  That's how I got rid of my error.

  • Help - ERROR Message: No Movie In File

    I am attempting to play a project but it stops at the same spot on the timeline and shows the "No movie in file" error message.
    What does this mean?
    So far, I have: done a safe boot and repaired permissions; trashed the FCP preferenses, saved the project under a new name, copied the timeline and moved it to a new sequence.... nothing works. I have even created stills and replaced the video from the timeline hoping to remove a corrupted file.
    This project is due Monday and I have yet to encode it to m2v and burn the DVDs. The length of the project is 1h 45m. Other projects of similar length in this series are playing back properly.
    I am running FCP Studio on a Dual 2GHz G5 with 4.5 GB RAM on OS 10.3.9
    Any help is appreciated
    Paul
    Dual 2 GHz G5   Mac OS X (10.3.9)   PowerBook 1.67 GHz

    it stops at the same spot on the timeline and shows the "No movie in file" error message<<</div>
    Right-click on the problem clip in the Timeline and let us know what it's properties are. Where did this clip come from? Have you tried re-rendering that section of the Timeline? Does the clip play OK in other apps (QT Player, etc)?
    -DH

  • Error message: unexpected end-of-file in Photoshop CS4

    "could not complete the command because an unexpected end-of-file was encountered"I just started getting them tonight. It happened when I opt-doubled clicked on an image in Dreamweaver to edit in Photoshop. Now it pops up on every image. I just reinstalled Photoshop CS4 and Bridge today. Help!

    Check your scratch disks for fragmentation ( use something like disk warrior ) and available space.  Sounds like the files are not getting completely saved.

  • PDF Generation Error Message:Couldn't open File while generating PDF from a Frame (7.2 Version) book

    Hi,
    I'm trying to convert a book into PDF and I get the error message Couldn't open a file (... <filename>.fm) and the unavailable Fonts dialog box also appears. The tricky thing is I've converted the same book into PDF just a couple of days ago. Now when I tried to do it again, I get the above mentioned error message. I tried unselecting the File > Prefrences > General > Remember Missing Fonts checkbox too. However, it didn't help in generating the PDF. I will be thankful if anyone suggests a suitable workaround for this issue. Thanks in advance.

    Usually, deselecting Remember missing fonts works.
    The missing fonts message displays when you or FrameMaker opens the file. The workaround is to open all the files in the book, or at least those with the "missing" font, clearing the message for each file. Now print the book to PDF, while keeping the files open. This usually works because you have already cleared any missing fonts messages.

  • Need help-Error Message in HP Deskjet F4288 All-in-One

    Please help why I am getting an 'E' in the 'Start Copy' Panel. The Power/Start button light is on and it is not blinking. The Colour Cartridge has red blinking light though it is almost full. The moment I switch on my Printer, I get 'E' and red blinking light only in Colour Print Cartridge. The Black Cartridge is showing its ink level. I had got my Colour Cartridge replaced just some time back. It's level should correctly display being higher than the Black one.
    Troubleshooting : I have tried removing the Cartridge and reinstalling them. Though it showed the correct levels in both cartridges- Colour one being nearly double that of the Black, the moment I tried to print, it showed 'E' and again the red blinking light.

    this is happening to me i have tried 3 new coour ink cartridges

  • Need help error message -42404

    Its saying something didn't download right but i dont know how to fix it. It took me 3 times to get the download to finish, help

    Could you post some minimal diagnostics for us please? (The list of installed components can sometimes give us a heads up on which component hasn't been installing.)
    In iTunes, go "Help > Run Diagnostics". Uncheck all four boxes, as per the following screenshot:
    ... and click "Next".
    When you get through to the final screen:
    ... click the "Copy to Clipboard" button and paste the diagnostics into a reply here.

  • Need help correcting message error number

    Hello, i need help correcting message number for running archiving test runs.
    05.08.2011 08:31:42 Message number 999999 reached. Log is full                                BL           252          E
    05.08.2011 08:31:42 Job cancelled after system exception ERROR_MESSAGE                        00           564          A
    Any help wopuld be appreciated.
    Regards.

    Summary
    Symptom
    One or several database tables of the application log contain too many entries.
    The following database tables belong to the application log:
    - BALHDR (all releases)
    - BALHDRP(< 4.6C)
    - BALM   (< 4.6C)
    - BALMP  (< 4.6C)
    - BALC   (< 4.6C)
    - BALDAT  (>= 4.6C)
    - BAL_INDX (all releases)
    Other terms
    RSSLG200,
    RSSLGK90,
    SLG2,
    application log,
    log
    delete,
    performance
    Reason and Prerequisites
    The application log is a tool to collect, save and display logs.
    Many different applications collect messages in the application log which contain information or messages for the end user. The application automatically log serves as a temporary storage for messages. The logs are written on the database but they are not automatically deleted.
    There is no general procedure for switching the application log on or off. Some applications provide this option or they offer the option of reducing the number of entries created. (See Notes 91519, 183960, 141244).
    The expiration date of application logs
    A log usually has an expiration date, which is set by the application, that calls the 'Application log' tool. If the application log does not set an expiration date, the 'Application log' tool sets the expiration date as 12/31/2098 or 12/31/9999,depending on the release, which allows the logs to stay in the system for as long as possible. The end user cannot set the expiration date. The expiration date does not mean that logs which have reached that date will automatically be deleted. It is used to control the deletion of logs when you call the Deletion report. The DEL_BEFORE flag in the BALHDR table determines whether or not the log can be deleted even before the expiration date is reached.
    DEL_BEFORE= SPACE means that the log can be deleted before the expiration date is reached. (Default value)
    DEL_BEFORE='X' means that the log can only be deleted after the expiration date.
    Solution
    Deleting the logs of the application log.
    Releases >= 4.6A:
    =====================================================================
    In Releases >= 4.6A, use Transaction SLG2.
    On the selection screen you can restrict the amount of logs to be deleted:
    The 'Object' and 'Subobject' fields specify the application area in which the logs were written (see F4 Help).
    The 'External Identification' field specifies the number which was          provided for this log by the application.
    o  If you also want to delete logs which have not reached the expiration date you must set the option "Also logs which can be deleted before the expiration date".
    Select 'Help with application' in Transaction SLG2 for further explanation of the procedure for deleting.
    SLG2 is a report transaction. The corresponding report is SBAL_DELETE. At regular intervals, this can be scheduled as a background job.
    Releases < 4.6A:
    =====================================================================
    For Releases < 4.6A, note the following instructions:
    In general, the deletion of application logs can be carried out in two steps:
    1. Report RSSLG200: Deletion of all logs which expired:
    Use report RSSLG200 to delete all logs whose expiration date is reached or exceeded. (This report is not yet available in the standard in Release 3.0F. In this case, the report can be installed in advance; see corrections attached to this note).
    As of Release 3.1H, Report RSSLG210 is also available. This report allows the definition of a job that runs regularly and deletes such logs.
    2. Report RSSLGK90: Deleting all logs for which a deletion is allowed before expiration:
    Sometimes, step 1 does not delete enough logs. The reason for this might be that the expiration date of the logs is too far in the future or that no expiration date has been defined at all (in this case, depending
    on the release, the assumed expiration date is 12/31/2098 or 12/31/9999)
    Use report RSSLGK90 for these logs.
    When you execute this report, you can restrict the logs to be deleted in a selection screen:
    The fields 'Object' and 'Subobject' specify the application area which wrote the logs (see F4 help).
    The field 'External number' indicates the number which was assigned by the application for this log.
    Field 'Log class' indicates the importance of the log.
    NOTE: By default, this field contains the value '4', this means only logs with additional information. If you want to delete all logs, enter the value '1' in this field. All logs with log class '1' or higher will then be deleted.
    The fields 'To date' and 'Until time' refer to the creation date of a log.
    If you enter 12/31/1998 and 23:59:59, you get all logs created in and before 1998
    NOTES:
    Client-dependency:
    Note that the application log tables are client-dependent. Therefore, you must delete data in each client.
    Which applications create entires in the application log:
    To determine which applications create the logs, look in Table BALHDR to see which objects the logs were created for ( Transaction SE16, Table BALHDR, Field OBJECT). You can find the text description for the object in Table BALOBJT. The application is usually derived from the name and text of the object. The log is displayed in Transaction SL61. The display is restricted to certain objects, among other things.
    Database error:
    If very many data exists on the DB, Report RSSLGK90 might cause problems. In this case, implement Note 138715.
    In very rare cases a dump is created even after Note 138715 was implemented:
        ABAP/4 runtime error  DBIF_RSQL_SQL_ERROR
        SQL error 1555 occurred accessing table "BALHDR "
        Database error text...: "ORA-01555: snapshot too old
    If you cannot correct the error by means of database utilities, Note 368700 provides a way to bypass this error.
    Report RSSLG200 can also run into problems. In this case, use the correction for Report RSSLG200 attached to this Note.
    Expiration date in Report RSSLGK90:
    There are logs on the database which may only be deleted explicitly after the expiration date (flag DEL_BEFORE = 'X' in table BALHDR). These logs are not deleted in advance by report RSSLGK90. Since, however, this flag is used very rarely, you can ignore this data.
    Restriction of the quantity of log data by the application:
    To avoid large quantities of logs from different applications, also refer to the following notes:
    - 91519
    - 183960
    - 141244
    Archiving logs:
    As of Release 6.20, it has been possible to archive logs.
    The logs are archived via archiving object BC_SBAL.
    The archiving programs are started via Transaction SARA (archive administration).
    Via Support Packages, the archiving of application logs has been made available for Releases 4.6C (SAPKB46C27), 4.6D (SAPKB46D17), and 6.10 (SAPKB61011) as well.
    Header Data
    Release Status: Released for Customer
    Released on: 04.08.2005  13:55:45
    Master Language: German
    Priority: Recommendations/additional info
    Category: Consulting
    Primary Component: BC-SRV-BAL Basis Application Log
    Affected Releases
    Software
    Component Release From
    Release To
    Release And
    subsequent
    SAP_APPL 30 30F 31I  
    SAP_APPL 40 40A 40B  
    SAP_APPL 45 45A 45B  
    SAP_BASIS 46 46A 46D X
    SAP_BASIS 60 610 640 X
    Corrections Instructions
    Correction
    Instruction Valid
    from Valid
    to Software
    Component Last
    Modifcation
    158903 30F 30F SAP_APPL 16.05.2000  07:13:08
    162069 31H 45B SAP_APPL 16.05.2000  07:16:07
    Related Notes
    1009281 - LAW: Runtime error CONNE_IMPORT_WRONG_COMP_TYPE
    856006 - Mass processing saves unnecessary logs
    737696 - Add. info on upgrade to SAP R/3 Enterprise 4.70 Ext. 2 SR1
    706478 - Preventing Basis tables from increasing considerably
    637683 - Add info about upgrade to SAP R/3 Enterprise Core 4.70 Ext 2
    587896 - Add. info on upgrade to SAP R/3 Enterprise Core 4.70 SR1
    540019 - Report RJBTPRLO does not work correctly
    400687 - Delete application log: DBIF_RSQL_INVALID_CURSOR
    390062 - Additional information about upgrading to 4.6C SR2
    370601 - Composite SAP note: APO 3.0 and 3.1 performance
    365602 - M/AM: Sales agent determination log - perf.
    327285 - Additions to upgrade to 4.6C SR1
    183960 - ALE: Deactivating application logs for data transfers
    141244 - Deactivating the application log during data transfer
    138715 - RSSLGK90: Too many lock entries in the database
    118314 - Installing the interface to a separate EH&S
    91519 - Deleting logs of the application log
    Print Selected Notes (PDF) 
    Attributes
    Attribute Value
    Transaction codes BALC
    Transaction codes BALM
    Transaction codes CLEAR
    Transaction codes HIER
    Transaction codes SARA
    Transaction codes

  • Help with error message: Expected end of line but got identifier

    The following is a calculated applescript step in a Filemaker script. It tells iCal to go to the date of an iCal event that the script has previously created from Filemaker. The code below keeps generating an error message: "Expected end of line but got identifier." Note: "ACTIVITY::Date" below is Filemaker's way of indicating the file name (ACTIVITY) and the field in question (date). Help appreciated.
    "tell application \" iCal\" ¶
    activate ¶
    switch view to month view ¶
    set theDate to date \"" & ACTIVITY::Date & "\" ¶
    view calendar at theDate ¶
    end tell"

    It's not clear exactly what you're aiming for here, so it's not easy to tell you how to fix it.
    At first glance I'd say you're missing a quote symbol or two, but even then it doesn't make a lot of sense without more context - for example, 'ACTIVITY::Date' isn't valid as an AppleScript variable name (you can't have a : in a variable name), and your code isn't within a Filemaker block, so it doesn't appear to relate to Filemaker, either.
    In either case the only thing that looks remotely valid to me would be:
    set theDate to date "\"" & ACTIVITY::date & "\""
    but without knowing the context of ACTIVITY::Date it's impossible to tell if this is valid, or how it differs from:
    set theDate to date ACTIVITY::Date
    (i.e., why the quotes are needed at all)

  • Can't save=Error -39 Logical End Of File Reached

    Hi whenever I try to re-save a .jpg file, I get the "Error -39 Logical End Of File Reached."
    I have tryed everything I can think of: Copy/Pasting; Importing, etc. with no success. Any help would be greatly appreciated!
    Thanks.

    DamonGrant wrote:
    Thanks for those suggestions Erik...
    It's been happening for a month I guess and I don't think that anything new's been installed. I will try recording to the start up disc and to maybe to some USB discs I have.
    It seems to happen after working on a project for some time.
    After say tracking takes for 45 mins or so. Maybe it's just coincidence, but do you think that might indicate a hardware issue?
    Now there might be a clue. What happens when you then quit Logic, reboot your Mac, and reopen the active session? It might be that your disk has become a bit messy from all the traffic, and it just needs to 'settle' in OS X again. Click on the *Spotlight icon* top right of your screen and see if any indexing is taking place. Wait for it to finish before launching Logic.
    Alternatively, you could exclude your recording disk from Spotlight indexing alltogether, by dragging the disk to the Privacy field in the Spotlight Sysprefpane.
    One other thing to do: turn off Journaling , using *Disk Utility.* Select your recording volume in Disk Utility, hold the alt key while dropping down the File menu. Choose *Disable Journaling.*
    On the other hand, it might also point to a RAM issue. Do you ever suffer Kernel panics (=the darkening 'curtain' and the message "You need to restart your Mac... etc")? or 'unexplained' crashes? If not or very rarely, I'ld rule out a RAM issue. If daily, it could be. What you can try in this case is to turn of your Mac and physically take out and reinsert your RAM.
    And when you trash (=eject/unmount), physically disconnect and reconnect your recording disk? Does that help? (Logic should not be running when you do this)

Maybe you are looking for

  • Error while collecting files in AE CS3 - You do not have permission to open this file (-54)

    I've got a rather large project that I'm attempting to collect.  35,000+ files to collect (lots of image sequences as footage), totaling near 80GB.  The collect process starts and copies files for a while, but inevitably errors out during the copy pr

  • Master-Detail commit problem

    I have master detail scenario. I have two forms. First one for the master and the second for the detail. I am first inserting the master data and then i navigate to the other form to insert the detail data. If i make commit from the second form it wo

  • RadioButton Inside Datatable, Getting Undefined Error

    Hello, I have a JSF page with datatables and in each row I have radiobutton. I would like to deselect radiobutton when user select the next row radiobutton. To achieve this I have the following code. function radioButton(radio) {     var id = radio.n

  • HTML error during active download

    Anyone having an issue with HTML buttons not working during an active download?  I called AppleCare about this and they couldn't answer me.  When I have a long download in progress that may be several MB or a GB in size....all the HTML buttons and sc

  • How can I downgrade from Acrobat Pro 10.1.x to 10.0.x?

    We received the Acrobat 10.1 Reader/Pro installation software that was intended to be used with a corporate software system for publishing purposes.  However, the software is only compatible with Acrobat 10.0.x.  Is there a way to downgrade Acrobat e