Error in the program

I'm a new learner in java...hoping someone could help me in this language...
by the way i have a problem of this program it says that: Year.java:11: '(' expected.
Bufferedreader in= new Bufferedreader(new InputStream Reader(System.in)); ^
1 error
need your understanding and help....thanks in advance...
import java.io.*;
class Year{
public static void main(String args[])
string year;
int y=0;
Bufferedreader in= new Bufferedreader(new InputStream Reader(System.in));
System.out.println("Input a year");
try{
Year=in.readLine();
y=Integer.parselnt(year);
catch(Exception e){
System.out.println("Not a year");
}

its still error...i made one word the: InputStreamReader
and now i have 4 errors...
Year.java:11: Class Bufferedreader not found.
Bufferedreader in= new Bufferedreader(new InputStreamReader(System.in));
^
Year.java:11: Class Bufferedreader not found.
Bufferedreader in= new Bufferedreader(new InputStreamReader(System.in));
                       ^
Year.java:12: Undefined variable or class name: reader
String input = reader.readLine();
               ^
Year.java:18: Method parselnt(java.lang.String) not found in class java.lang.Integer.
y=Integer.parselnt(year);
                  ^
4 errors

Similar Messages

  • On Mac OS 10.9.5 : impossible to initialize Photoshop because of an error of the program

    I downloaded Adobe PhotoShop CC and Lightroom 5 (paid version). Lightroom 5 seams to work but Adobe PhotoShop gives an error message "impossible d'initialiser Photoshop en raison d'une erreur du programme" (sorry it's in French, in English this could be "impossible to initialize Photoshop because of an error of the program". Not any additionnal error code or comment.
    I tried to uninstall, dowload and install again, but I still get the same message after the new install.
    Has anybody experimented this problem ? Thanks for your kind help.

    Thanks for tour suggestion, but unfortunately  it does not work. I get a dialog box about virtual memory and the disks I want to choose for, but I cannot trash the prefs. I changed the disks to see and I still get the same message.

  • HT1349 I am unable to install iTunes. I'm receiving an error message: "The program can't start because MSVCR80.dll is missing from your computer. Try reinstalling the program to fix this problem." I've unistalled and attempted to reinstall several times.

    I am unable to install iTunes. I'm receiving an error message: "The program can't start because MSVCR80.dll is missing from your computer. Try reinstalling the program to fix this problem." I've unistalled and attempted to reinstall several times.  I keep getting the error message to reinstall to fix the problem.

    See if this post from turingtest2 fixes it : https://discussions.apple.com/message/24620553#24620553

  • I ran an iTunes update.  It failed with the message  System Error.  The program can't start because MSVCR80.DLL is missing from your computer.  Try reinstalling the program to fix this problem.   I tried reinstalling but get the same message.

    I ran an iTunes update.  It failed with the message  "System Error.  The program can't start because MSVCR80.DLL is missing from your computer.  Try reinstalling the program to fix this problem."   I tried reinstalling but get the same message.  I looked in my Recycle Bin for that file name but there is none there.  Is this a new file that iTunes wants?

    Click here and follow the instructions. You may need to completely remove and reinstall iTunes and all related components, or run the process multiple times; this won't normally affect its library, but that should be backed up anyway.
    (99683)

  • Can't download itunes update.  Keep getting this error message:  THe program can't start because MSVCR80.dll is missing from your computer.  Try reinstalling the program to fix this problem

    Can't download itunes update.  Keep getting this error message:  THe program can't start because MSVCR80.dll is missing from your computer.  Try reinstalling the program to fix this problem

    I researched the advice on the link provided by b noir as well as very similar advice from apple support: http://support.apple.com/kb/TS5376. It worked for me (for now).
    Some things of note:
    I did all of the things requested by the link I provided
    My computer WOULD NOT uninstall Apple Mobile Device Support. I had to manually remove the folder (also as instructed by the url)
    I also uninstalled MobileMe. Was a little different than removing the other apps. Follow instructs provided here: http://support.apple.com/kb/HT2992
    I did not uninstall iCloud
    I have to admit it was a bit scary removing all those things. Is important to note that when re-installing Apple, follow steps to do so as Administrator (the right-click thingy and whatnot).
    Hope this helps!

  • Hpqdirec.exe – System error. The program can't start because ATL90.DLL is missing from your compute

    Hello,
    The following has only transpired recently. It concerns Windows 7 and my C6380 All-In-One.
    It appears to be a registry issue. I am experienced and have tried even more than that listed below.
    On launching the "HP Solution Centre", I receive the following error message:-
    “Hpqdirec.exe – System error.  
    The program can’t start because ATL90.DLL is missing from your computer. Try reinstalling the program to fix this problem."
    Are you able to advise on how I can resolve this issue. Clearly, I want to avoid a complete clean install of my PC.
     What I have tried
    - Complete Install, Reboot, Install of the HP Software
    - Restore points
    - Running virus scanners
    - Windows "Start-up Repair"
    , - Running RegZooka

    I can think of a couple of possibilities here.
    One, if this was an upgrade from XP or Vista, then it is possible that the file is just not there in the operating system. Or if some other uninstallation removed it unknowingly. Not likely but possible.
    More likely, some sort of security software (firewall/antivirus/malware) blocked part of the installation. This could result in missing HP items and/or missing linkage to operating system necessities. You might try reinstalling with the security software disabled or off completely. At the minimum, with options to allow the HP installation full access during the install.
    Hope that helps.
    007OHMSS
    I was a support engineer for HP.
    If the advice resolved the situation, please mark it as a solution. Thank you.

  • Syntax error in the program SAPLSYMB

    Hi
    I have installed ECC6 on windows 2003 server  sqlserver 2005 as database. We are getting error at the time applying basis patch. The patch process is stopped at import_proper stage.
    When i try to execute any transaction , the error is "syntax error in the program SAPLSYMB". I have cleard the transaction log, still  the errro is same.
    When I try to relogin the error is same, I am unable to execute any transaction.
    Please do the needful
    Regards
    Prasanna.B.S

    Hellow,
    I have the same error, and I executed this command for 12 hours
    tp r3i SAPKB70017 ITP pf=/usr/sap/trans/bin/TP_DOMAIN_ITP.PFL tag=spam -Dclientcascade=yes -Drepeatonerror=8
    the message in cmd is
    earth\sapmnt\trans\tmp\SLOG0914.ITP.LOC is already in use (14474), I'm waiting
    2 sec (20090401065221). My name: pid 4188 on earth (dministrator)
    But this file (SLOG0914.ITP.LOC ) is in 0 kb, is this normally ?
    Please Help me
    Regards
    Graciela

  • Every time i try to start itunes it trys to backup my ipad and says an error stopped the program working and closes down??

    Every time i try to start itunes it trys to backup my ipad and says an error stopped the program working and closes down??

    Certain Firefox problems can be solved by performing a ''Clean reinstall''. This means you remove Firefox program files and then reinstall Firefox. Please follow these steps:
    '''Note:''' You might want to print these steps or view them in another browser.
    #Download the latest Desktop version of Firefox from http://www.mozilla.org and save the setup file to your computer.
    #After the download finishes, close all Firefox windows (click Exit from the Firefox or File menu).
    #Delete the Firefox installation folder, which is located in one of these locations, by default:
    #*'''Windows:'''
    #**C:\Program Files\Mozilla Firefox
    #**C:\Program Files (x86)\Mozilla Firefox
    #*'''Mac:''' Delete Firefox from the Applications folder.
    #*'''Linux:''' If you installed Firefox with the distro-based package manager, you should use the same way to uninstall it - see [[Installing Firefox on Linux]]. If you downloaded and installed the binary package from the [http://www.mozilla.org/firefox#desktop Firefox download page], simply remove the folder ''firefox'' in your home directory.
    #Now, go ahead and reinstall Firefox:
    ##Double-click the downloaded installation file and go through the steps of the installation wizard.
    ##Once the wizard is finished, choose to directly open Firefox after clicking the Finish button.
    Please report back to see if this helped you!

  • Error Message: "The program can't start because QTCF.dll is missing....."

    Full error message: "The program can't start because QTCF.dll is missing from your computer. Try reinstalling the program to fix this problem." I can't start iTunes because of this error. Any advice on what to do?

    I have discovered the reason this occurs. It is because the PATH in the environment settings no longer has the path to C:\Program Files (x86)\QuickTime\QTSystem which is where the .dll lives on a Windows 7 computer. Close the application giving you this warning if it is still open and use the following 10-step process to fix this:
    1. Search for the path to the QTCF.dll and upon finding it, copy it (Highlight it in the explorer address bar and press CTRL + C.)
    2. Open the control panel.
    3. Choose System and Security from the left.
    4. Choose Advanced system settings from the left and a dialog window pops up with the Advanced tab selected.
    5. Click the Environmental Variables... button near the bottom of the dialog box.
              (This opens a dialog box with 2 sections: User variables and System variables.)
    6. Scroll down through the  System variables section so that you can select (highlight) the Path variable in the left column.
    7. Click the Edit... button which opens a small dialog box and highlights the entire Variable value.
    8. Click once in the Variable value (to deselect the value so you don't mess it up) and then press the end key on your keyboard (to move your cursor to the last character of the very very long string in the text box).
    9. Paste (keyboard combination CTRL + V) the path to the QTCF.dll you copied earlier, and add a semi-colon, for example:
                         C:\Program Files (x86)\QuickTime\QTSystem;
    (Note that you don't need a trailing / or the actual .dll name in the path, but be sure to add a semicolon to the end of the path name you paste.)
    10. Click OK on each of the 3 open dialog boxes.
    There is no need to reboot your computer. You only need to restart the application and ensure that it starts without the warning that the .dll can not be found.

  • I get an error stating the program can't start because FileGDBAPI.dll is missing from my computer. How do I fix this?

    I get an error stating the program can't start because FileGDBAPI.dll is missing from my computer. How do I fix this?

    Hi bethh31640887,
    As already asked by Sara, can you let us know the following information:
    1. What application are you trying to launch? Acrobat or Reader and which version?
    2. What is the OS that you are using?
    3. Can you try launching the application after repairing the product once?
    Thanks,
    Shitiz

  • When I open Firefox I have to try several times because a Runtime Error with the program C:\Windows\System32\regsvr32.exe

    when I open Firefox I have to try several times because a Runtime Error with the program C:\Windows\System32\regsvr32.exe

    '''Try the Firefox Safe Mode''' to see how it works there. The Safe Mode is a troubleshooting mode, which disables most add-ons.''
    ''(If you're not using it, switch to the Default theme.)''
    * You can open the Firefox 4.0+ Safe Mode by holding the '''Shift''' key when you use the Firefox desktop or Start menu shortcut.
    * Or use the Help menu item and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    ''Don't select anything right now, just use "Continue in Safe Mode."''
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut (without the Shift key) to open it again.''
    '''''If it is good in the Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one.
    Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''

  • My Itunes won't open. When I click on it I get error message:  The program can't start because MSVCR80.dll is missing from your computer.

    The first error message is: itunes.exe-System Error:  the program can't start because MSVCR80.dll is missing from your computer. Try reinstalling the program to fix the problem.
    The second error message says: itunes:  itunes was not installed correctly.  Please reinstall itunes Error 7 (Windows error 126)
    I have reinstalled several times and the same thing keeps happening.  Does anyone know what to do?

    Ralph, both links you've posted point to the same place!
    Ah, I see the second one is meant to lead to Tony's tip: https://discussions.apple.com/docs/DOC-6571
    That one applies for certain launch errors that can occur when iTunes has otherwise installed successfully. I've addressed the same issue in the first box of my tip.
    What would be interesting to know is if Aswim does indeed have QTMovieWin.dll in their Program Files\iTunes folder, and if removing it allows iTunes to launch? It would seem that different error messages may be thrown up by different versions of the file on different versions of the OS. Perhaps many more people have been doing a complete rebuild than needed to.
    tt2

  • Errors in the program

    Hi all,
    Im doing the extension of controller by adding additional functionality of submitting a concurrent program from OAF page. but im getting following errors .pls help
    Code:
    package petrofac.oracle.apps.ota.admin.enrollment.webui;
    import com.sun.java.util.collections.Vector;
    import oracle.apps.fnd.cp.request.ConcurrentRequest;
    import oracle.apps.fnd.cp.request.RequestSubmissionException;
    import oracle.apps.fnd.framework.OAException;
    import oracle.apps.fnd.framework.server.OADBTransaction;
    import oracle.apps.fnd.framework.server.common.OAApplicationModule;
    import oracle.apps.fnd.framework.webui.OAPageContext;
    import oracle.apps.fnd.framework.webui.beans.OAWebBean;
    import oracle.apps.ota.admin.enrollment.webui.LrnrEnrollmentMassUpdateCO;
    import oracle.jbo.ApplicationModule;
    public class ExtLrnrEnrollmentMassUpdateCO extends LrnrEnrollmentMassUpdateCO {
    public ExtLrnrEnrollmentMassUpdateCO() {
    * @param pagecontext
    * @param webbean
    public void processRequest(OAPageContext pagecontext, OAWebBean webbean)
    super.processRequest(pagecontext, webbean);
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    if (pageContext.getParameter("Apply") != null)
    String status = pageContext.getParameter("Enrollment Status");
    String CRname = pageContext.getParameter("Course Name");
    String CLname = pageContext.getParameter("Class Name");
    OAApplicationModule am = (OAApplicationModule)pageContext.getApplicationModule(webBean);
    OADBTransaction tx = am.getOADBTransaction();
    java.sql.Connection pConncection = tx.getJdbcConnection();
    ConcurrentRequest cr = new ConcurrentRequest(pConncection);
    if (status.equals("Attended"))
    public int submitCPRequest(String CRname,String CLname) {
    try {
    String applnName = "OTA"; //Application that contains the concurrent program
    String cpName = "XXCERT"; //Concurrent program name
    String cpDesc = "Certifcate Program"; // concurrent Program description
    Vector cpParams = new Vector();
    cpParams.addElement(CRname);
    cpParams.addElement(CLname);
    int requestId = cr.submitRequest(applnName, cpName, cpDesc, null, false, cpParams);
    tx.commit();
    return requestId;
    catch (RequestSubmissionException e)
    OAException oe = new OAException(e.getMessage());
    oe.setApplicationModule((ApplicationModule)this);
    throw oe;
    else if (status.equals("Enrolled"))
    public int submitCPRequest(String CRname,String CSname)
    try {
    String applnName = "OTA"; //Application that contains the concurrent program
    String cpName = "XXJOINDTL"; //Concurrent program name
    String cpDesc = "Joining Details Program"; // concurrent Program description
    Vector cpParams = new Vector();
    cpParams.addElement(CRname);
    cpParams.addElement(CSname);
    int requestId = cr.submitRequest(applnName, cpName, cpDesc, null, false, cpParams);
    tx.commit();
    return requestId;
    catch (RequestSubmissionException e)
    OAException oe = new OAException(e.getMessage());
    oe.setApplicationModule((ApplicationModule)this);
    throw oe;
    Errors:
    Error(42,12): modifier public not allowed here
    Error(42,31): ; expected
    Error(14,49): Constants not found in interface oracle.apps.ota.common.Constants in interface oracle.apps.ota.admin.common.Constants in interface oracle.apps.ota.shared.enrollment.common.Constants in class oracle.apps.ota.shared.enrollment.webui.EnrollmentCO in class oracle.apps.ota.shared.enrollment.webui.EnrollmentUpdateCO in class oracle.apps.ota.admin.enrollment.webui.LrnrEnrollmentMassUpdateCO

    Ankit wrote:
    hi all i have a program which is written in the book but when i am writing it in Netbeans IDE then the program is showing lots of errors. Here is the program
    Please tell me what is the problem why it is creating an error.
    Package declaration missing here
    import java.util.Scanner;
    // Gradebook class that contains a courseName instance variable and methods to get and set its value.
    public class GradeBook
    private String courseName; // course name for this grade book
    // method to set the course name
    public void setCourseName(String name)
    courseName = name; // store the course name
    }//End method setCourseName
    //Method to retrieve the courseName
    public String getCourseName()
    return courseName;
    }//End method getCourseName
    //display a welcome message to the gradeBook user
    public void displayMessage()
    //This statement calls getCourseName to get the
    //name of the course this gradebook represents
    System.out.printf("Welcome to the gradeBook for\n%s!\n", getCourseName());
    package declaration/required imports missing here
    public class GradeBookTest
    public static void main(String []args)
    Scanner input = new Scanner( System.in );
    GradeBook myGradeBook = new GradeBook();
    System.out.printf("Initial course name is:%s\n\n",
    myGradeBook.getCourseName());Extra curly brace
    }//prompt for and read course name
    System.out.println("Please enter the course name:");Typo in method name. Its nextLine, not nextline
    String theName = input.nextline();Typo here, it should be myGradeBook (as instantiated above) and not myGradebook
    myGradebook.setCourseName(theName);
    System.out.println();
    myGradeBook.displayMessage();
    }Next time, try reading the errors the compiler throws, it has all the information you need to fix errors in your program.
    Edited by: maheshguruswamy on Dec 9, 2011 8:52 AM

  • Despite unistalling and reinstalling iTunes, I can't load the program. The error message "the program can't start because MSVCR80.dll is missing from your computer."

    Despite trying to unistall and reinstall iTunes, I continue to get the message "the program can't start because MSVCR80.dll is missing from your computer. Try reinstalling the program to fix this problem."

    Click here and follow the instructions. You may need to completely remove and reinstall iTunes and all related components, or run the process multiple times; this won't normally affect its library, but that should be backed up anyway.
    (99385)

  • Error in the program RM06BB30

    Hi Experts,
    When we run the Program>RM06BB30 in Background with Variant>
    YWCD_PO CREATE two pos are created from one sales order
    (From sales order to PR then to PO)
    Sales order u2013 PR -PO
    132667 (Line item 120 to 140) 1000842850 4700043916 and 4700043917
    How is it possible that there are 2 identical Purchase Orders are
    created in connection with 1 Sales Order?
    How can we avoid this from happening in the future?
    Thanks for you in advance...
    Regards
    Prashanth

    Hi,
    This might be due to thePurchase requisitions are  blocked while purchase orders are created with reference to a
    purchase requisition. Please, see note 18128 for details. To avoid this please see not to block PR during PO creation. Thanking you.

  • "Waiting for real-time target (RT PXI target) to respond" error when the program waits interrupts

    Hi there,
    I have developed an application to detect interrupts generated by a electronic card and act in consequence. The program has been developed in labview but it calls a dll; that was created with labwindows. The dll is programmed to open the visa communication, enable events and install the interrupt handler and when an interrupt is detected, it reads the value of the different registers of the card and returns it to labview to visualize them. 
    The problem is that when the program waits for an interrupt, a prompt appears with the message "Waiting for real-time target (RT PXI target) to respond" and the only option I have is to click on the button to disconnect from the pxi or just wait. If I wait and I generate an interrupt, the prompt disappears and the application visualize the data like it was expected. 
    To wait for the interrupt the following code has been programmed in the function:
                    while (flag == 0)
                                    Sleep (1000);
    When an interrupt occurs, the value of flag changes to 1 and the function continue without any problem. I am not really sure, but probably here is the problem and probably this is not the best way to wait for an interrupt because the sleep function suspends the thread for the configured time, but at least the computing load in the PXI is between 0% and 1%. I was wondering if somebody knows how to wait for an interrupt without "lost" the communication with the PXI and if there is a better way to do it. 
    Any answer will be welcome and thanks for them,
    Jaime
    Solved!
    Go to Solution.

    Hello Naity,
    First of all, in which thread runs the waiting process? Is it scheduled in another thread than the function setting the flag?
    It scheduled in the same thread that I use to configure the communications and configure the card. Anyway, here is the pseudo code of the function interrupt that I programmed under labwindows,.
    char* interrupt(void)
    1. Open visa communications
    2.Install handler interrupt --> status = viInstallHandler (instr, VI_EVENT_PXI_INTR, IntrHandler, VI_NULL);   // the function IntrHandler will be called when an interrupt occurs
    3. Enable event PXI interrupt
    4. Wait
    while (flag == 0)
                  Sleep (1000);
    5. Visualize the data coming from the interrupt (registers and values measured with the card)
    6. Uninstall handler interrupt
    7. Close visa session
    The interrupt handler function IntrHandler is called immediately when an interrupt occurs and the pseudo code is like this
    ViStatus _VI_FUNCH IntrHandler(ViSession instr, ViEventType etype, ViEvent event, ViAddr userhandle)
    1. Disable some functions of the card to avoid damages. 
    2. Read registers and put them in a buffer
    3. Change the value of flag ---> flag = 1;
    In labview, I call the function interrupt with a call library function node (see the capture attached) and the program reads and saves the data from returned from the function.
    Secondly, I am not sure this method is the most elegant. You could for example register an event with the function and, insteand of setting a flag to 1, trigger the event and schedule it in another thread (if the function is thread safe). This could reduce your CPU Load even more and seem a bit cleaner to me.
    I've never used events before in labwindows but I will try to do it in this way. But anyway, I suppose that I should; somehow, wait the event to occurs in labview while the waiting for the event is programmed inside the dll...and probably the same prompt that i am trying to avoid is going to appear again, because I am not returning the "control" to labview (I mean, labview executes the dll and waits for the event to occur. Then the execution of the labview program is stopped in the call library function node executing the dll)
    Third point, which environment of development are you using?
    I am working with LV 2010 sp1 and Labwindows cv 10.0.1 and with the real time module.
    I did also another test, I divided the program in different functions, one to initialize the communication, another to wait until a interrupt has been detected and the other to obtain the data from the interrupt and close communications. With labview I call first with the call library function node the function to initialize, later I call inside a while loop the wait function like this
    int waitAseconds (double seconds, short stop_waiting)
    if(flag==1 || stop_waiting == 1)
    flag = 1; //to detect the stop_waiting button
    printf("flagAA =1 stop waiting = %d time = %d\n", stop_waiting, clock());
    return flag;
    else
    SleepUS(seconds*1000000);
    //a++;
    printf("flag a= %d stop waiting = %d time = %d\n", flag, stop_waiting, clock());
    return flag;
     and when the program detects an interrupt, the function returns to labview the flag and stops the loop. Finally, it reads the values and close communications. 
    In this way, the prompt appears but after running the application for 10 or 20 minutes and also i checked that there is a time gap between the executions in the loop.
    Thanks for your reply and your help,
    Jaime
    Attachments:
    capture.png ‏40 KB

Maybe you are looking for

  • How to restrict inbound delivery creation by incomplete log

    Guru's I have a requirement of not to create an Inbound delivery if the filed in the "means of trans id " in the delivery header is 'BLANK".If i create an incomplete log for the field LIKP-TRAID (Warning message enabled) for Delivery header in transc

  • Clean install of Windows 7 Ultimate 64-bit on Qosmio X870

    When I received my laptop (Qosmio x870) I immediately uninstalled its OS since it was filled with bloatware and installed a clean version of windows 7 ultimate 64 bit. After my install I have been trying to install the drivers on my laptop, but some

  • Guidance on KMC scenarios

    Hi All, Im making an attempt to pick up some basic knowledge on KMC and could really use some help from all you experts out there. I've been going through the Wiki pages, blogs and how-tos but I'm unable to get an overall picture of how KM and Collab

  • Unable to set tooltip for item (sap.ui.core.Item)

    sap.ui.core.Item does not have the property 'tooltip'. But it borrows 'tooltip' property and setTooltip( ), getTooltip( ) methods from sap.ui.core.Element. Still, if I set the tooltip for item, it is not reflected. What might be wrong? Consider the f

  • Iphoto crashes after editing (saving) after update to iphoto09 and 10.6.1

    Hi, i have trouble with iphoto 09 on Mac Book Air. After update from iphoto 08 to 09 and after update to osx 10.6.1, i can not edit any photo. Every time i modify a photo and iphoto want to save it, iphoto crashes. I have tried several repairs with i