Have a "runtime error"

I can no longer open itunes after it did an automatic update.  I get a "runtime error", program:c:\program files (x86)\itunes\itunes.exe, R6034, app has made attempt to load C runtime library incorrectly, please contact app support team for more info. After clicking "ok" on this message I get another stating that itunes was not installed correctly,please reinstall itunes, error 7(windows error 1114).  I tried to uninstall & reinstall itunes & received same message. Program worked fine until it tried to update.

Hi blackdogvt,
Thanks for visiting Apple Support Communities.
To resolve this error, I recommend completely removing and reinstalling iTunes and all of its related components using these steps:
Check for .dll files
Go to C:\Program Files (x86)\iTunes and C:\Program Files\iTunes and look for .dll files.
If you find QTMovie.DLL, or any other .dll files, move them to the desktop.
Reboot your computer.
Note: Depending on your operating system, you may only have one of the listed paths.
Uninstall and reinstall iTunes
Uninstall iTunes and all of its related components.
Reboot your computer. If you can't uninstall a piece of Apple software, try using the Microsoft Program Install and Uninstall Utility.
Re-download and reinstall iTunes 11.1.4.
You can find the article with these steps and more information here:
iTunes 11.1.4 for Windows: Unable to install or open
http://support.apple.com/kb/TS5376
Best,
Jeremy

Similar Messages

  • I have a Runtime Error-Program C:\Program Files (x86)\iTunes\iTunes.exe- an application has made an attempt to load the C Runtime Library incorrectly-How do I fix this?

    I have a Runtime Error. Program C:\Program Files (x86)\iTunes\itunes.exe. An application has made an attempt to load C Runtime Library incorrectly. I have robooted and even attempted to uninstall iTunes but neither has worked.  When I attempt to uninstall I get a message saying that a program is being installed so I must wait. My OS is Windows 7. How do I fix this?

    Hello Richard,
    Thank you for the details of the issue you are experiencing with installing the latest iTunes update.  I recommend following the steps below:
    Resolution
    Follow these steps to resolve the issue:
    Check for .dll files
    Go to C:\Program Files (x86)\iTunes and C:\Program Files\iTunes and look for .dll files.
    If you find QTMovie.DLL, or any other .dll files, move them to the desktop.
    Reboot your computer.
    Note: Depending on your operating system, you may only have one of the listed paths.
    Uninstall and reinstall iTunes
    Uninstall iTunes and all of its related components.
    Reboot your computer. If you can't uninstall a piece of Apple software, try using the Microsoft Program Install and Uninstall Utility.
    Re-download and reinstall iTunes 11.1.4.
    I understand that you have already uninstalled iTunes, but when you get to this step, it is important to uninstall iTunes and the related components in the order listed in the link for that step.
    You can find the full article here:
    iTunes 11.1.4 for Windows: Unable to install or open
    http://support.apple.com/kb/TS5376
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • I have a runtime error R6034 when i try to log in to itunes so i unistalled itunes prog from my pc and tried to download itunes prog again but no luck still keep getting this error

    I am having major problem. a while ago i downloaded a programm from the internet and there was an error so i uninstalled as i was unable to use it. Since this application, Everytime i log on i get dialogue box opens up Microsoft visual runtime library, Runtime Error R6034. An application has been made an attempt to load the C runtime library incorrectly.please contact the application support team for more info.and every time i tried to open itunes on my desktop i receive this message.So i have just unistalled itunes logged on to apple to try and download the itunes prog ,but it dont seem to have downloaded.can anyone help me please.

    So i have just unistalled itunes logged on to apple to try and download the itunes prog ,but it dont seem to have downloaded.can anyone help me please.
    Could you walk us through what happened when you tried to do the download, please?

  • I have a runtime error and cannot start Photoshop elements 8

    Hi,
    i have been getting this errror for the past few days.  I have uninstalled and reinstalled the program and still get the error.  Any suggestions?
    Thanks!
    Dawn

    See if anything here helps any:
    http://helpx.adobe.com/x-productkb/global/troubleshoot-c-runtime-errors-products.html

  • How to have a runtime error or failure cause all executions to stop and cleanup

    I am using batch parallel mode.  It's easy enough to terminate or abort all executions from SequenceFilePostStepRuntimeError using IEngine.TerminateAll() and .AbortAll(), but I would like to be able to set an error on all my running executions and cause them to run cleanup when I encounter an error on ANY of the test socket executions.
    Anyone have an example of how I might do this?
    Thanks,
    Jake

    I did something like this for a failure handler once... and looking through my code I think the biggest headache is to realize that one execution socket has no easy way of seeing the execution references for other sockets.  These things are kept by the process model's top level execution... which you also don't have a super easy time accessing without tweaking some logic in your Model file.
    (1)Somehow or another you want to get access to the "TestUUTs"/"SinglePass"  Fileglobals.TestSocketExecutions[] array and make use of it in your classic RuntimeError callback.  The easiest solution (but not the most elegant) would be to edit your model to copy/clone the file global into someplace more convenient... ie "TestUUTs - TestSocketEntrypoint".
    (2) in your error callback, handle your error as usual i.e. tell top level sequence to go to cleanup etc. but also loop through the other execution references and do some variation on GetSequenceContext() and setting Runstate.sequenceErrorCode and the rest.  The example api calls below are probably overkill...
    Locals.currentExeContext=Locals.currentexecution.AsExecution.GetThread(0).GetSequenceContext(0, Nothing) 
    Locals.currentExeContext.AsSequenceContext.SequenceErrorCode=Locals.RecievedError.Code,
    Locals.currentExeContext.AsSequenceContext.SequenceErroroccurred=Locals.RecievedError.Occurred,
    Locals.currentExeContext.AsSequenceContext.SequenceErrorMessage=Locals.RecievedError.Msg,
    Locals.currentExeContext.AsSequenceContext.ErrorReported =True, Locals.currentExeContext.AsSequenceContext.GotoCleanup =True
    I'm using "Locals.RecievedError" as my error buffer in this case because it made sense to me to modifiy the error text to include which socket actually had the error (since now it's propigated to all sockets).
    Locals.RecievedError.Msg=Parameters.Step.Result.error.msg+" Occurred on Socket#"+Str(RunState.TestSockets.MyIndex)
    or something like that...
    Was this what you were looking for?  If you're really stumped and can tell me what version of TS you're using, I'll try and extract an example from my old code that you can use, but hopefully this helps.
    Cheers,
    Elaine R.
    www.bloomy.com

  • I also have a Runtime Error since itune update this week, which would not complete. Im on Vista.

    As the title sugests there is a problem with the latest itunes update. I cant run anything. Have tried to repair, uninstal itunes. How do I get itunes to open without loseing all my libaries and playlists.
    Help please.

    See Troubleshooting issues with iTunes for Windows updates.
    tt2

  • TS2363 Why do I get a runtime error R6034 message when installing iTunes 11.1.4.62 on my WIn XP (SP3) system?

    iTunes prompted me to download and install the newest version of iTunes (11.1.4.62). I followed all on-screen prompts. iTunes installation gets to the very end, then I get a popup stating that I have a Runtime Error # R6034 "an application has made an attempt to load the C runtime library incorrectly. Please contact the application's support team for more information. Okay, I am doing that. FYI, I am runnning Windows XP (SP3). Oh, and BTW, now iTunes is COMPLELETY unusable, and I cannot synch any of my multiple iOS devices. Help please!

    Go to Control Panel > Add or Remove Programs (Win XP) or Programs and Features (Later)
    Remove all of these items in the following order:
    iTunes
    Apple Software Update
    Apple Mobile Device Support
    Bonjour
    Apple Application Support
    Reboot, download iTunes, then reinstall, either using an account with administrative rights, or right-clicking the downloaded installer and selecting Run as Administrator.
    See also HT1925: Removing and Reinstalling iTunes for Windows XP or HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8
    Should you get the error iTunes.exe - Entry Point Not Found after the above reinstall then copy QTMovieWin.dll from:
    C:\Program Files (x86)\Common Files\Apple\Apple Application Support
    and paste into:
    C:\Program Files (x86)\iTunes
    The above paths would be for a 64-bit machine. Hopefully the same fix with the " (x86)" omitted would work on 32-bit systems with the same error.
    tt2

  • Tried to install the most recent update and now my ITUNES won't load. Getting an error message that says there is a "runtime error" and that I need to reinstall INTUNES. Help!!!

    Tried to install the latest ITUNES update, but now it won't open my ITUNES at all. Saying I have a "Runtime error" and that I need to reinstall ITUNES. Tried a "repair" in Programs on my computer, but that didn't work either.

    Hello joeydak,
    We've an article that provides troubleshooting steps which can help get iTunes back up and running.
    iTunes 11.1.4 for Windows: Unable to install or open
    http://support.apple.com/kb/TS5376
    Cheers,
    Allen

  • Itunes  for windows runtime error

    On the last update for itunes an error happend. Now I have an runtime error. I deinstall itunes but now every time i boot my PC and windows startet I got an runtim error. In the Task Manager I see it is applephotostream.exe. I see that the apple folder is not completly empty. Sure I will have itunes on my PC again. What can I do.
    Thanks

    Go to Control Panel > Add or Remove Programs (Win XP) or Programs and Features(Later)
    Remove all of these items in the following order:
    iTunes
    Apple Software Update
    Apple Mobile Device Support (if this won't uninstall press on)
    Bonjour
    Apple Application Support
    Reboot, download iTunes, then reinstall, either using an account with administrative rights, or right-clicking the downloaded installer and selecting Run as Administrator.
    See also HT1925: Removing and Reinstalling iTunes for Windows XP or HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8, some users may need to follow the process recommended here which includes some additional manual file and folder deletions not mentioned above.
    In this instance you may also need to remove and then reinstall the iCloud Conrol Panel.
    tt2

  • Runtime error not notified, it's a Bug of TestStand 4.2.1?

    Hi All,
    I found an issue during setting the precondition of a steps in Teststand 4.2.1
    I have a Statement Step named "Cleanup if WRONG barcode"
    AnyOf(
    RunState.Sequence.Main["ID#:NPMo1DuN+0KuxglET/DQiD​"].Result.Status == "Error",
    RunState.Sequence.Main["ID#:gv4JwcInbU2jx2Ek6SsJ2A​"].Result.Status == "Error",
    RunState.Sequence.Main["ID#:nUMiG7Q3Q0mOkCtVRok26C​"].Result.Status == "Error",
    RunState.Sequence.Main["ID#:5KBfxx3r+ki+2TaRkv0Z3D​"].Result.Status == "Error",
    Parameters.Socket_Data.Product.OrderNumber < 8)
    the last argument is Parameters.Socket_Data.Product.OrderNumber that contain the string of the Order number.
    The error is the following:
    But When I execute the code the Runtime error is not notified, as expected.
    Note: in the station Option I have On Runtime error notification "Show Dialog".
    Could you please tell me why ?
    Thank you very much
    Attachments:
    AnalyseBarcode.seq ‏7 KB

    It's because Parameters.Socket_Data.Product.OrderNumber is a string value that is empty so it cannot be coerced to a number so the expression:
    Parameters.Socket_Data.Product.OrderNumber < 8
    gives the error you are seeing, but at runtime, the string is set to a number which can then be coerced to an actual number so the expression succeeds at runtime.
    You can see this same issue if you create a local variable in a sequence that's a string that's empty and create statement step as follows:
    Locals.string < 8
    If you do, you will get the same error you are seeing. Then edit the local variable and set it to 10 and look at your expression again. The error is now gone.
    You can avoid the error in the statement by either setting the string to an initial value that contains a number (e.g. 0) or change the data type of that variable to a number rather than a string.
    Hope this helps,
    -Doug

  • Getting a runtime error in ContainerController

    Using SDK 4.5.0.20967
    The error is thrown on line 3182:
    while (containerListIndex == -1 && floatIndex > 0)
         floatIndex--;
         floatInfo = _composedFloats[floatIndex - 1];
         containerListIndex = _floatsInContainer.indexOf(floatInfo.graphic);
    floatIndex is 1 when it enters the loop,
    then it is decresed to 0,
    then null gets assigned to floatInfo - when it is looking for:  _composedFloats[-1]
    Then it throws an error when it tries to access a property on floatInfo - which is set to null
    Here is the error:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
         at flashx.textLayout.container::ContainerController/http://ns.adobe.com/textLayout/internal/2008::updateGraphics()[C:\Vellum\branches\v2\2.0\d ev\output\openSource\textLayout\src\flashx\textLayout\container\ContainerController.as:318 2]
    I am not sure exactly how I am triggering this - I am trying to discern that - but if you have any thoughts - please let me know.

    Here is an example of the bug, the yellow box in the TextFlow is an InlineGraphicElement.
    Click the red box at the bottom of the flow to start adding text.
    It crashes once the InlineGraphicElement is pushed out of the visible area of the container.
    http://www.theyrule.net/test/tlf_images/SingleContainerTest.swf
    This was published using the SDK 4.5.0.20967
    Here is the same file published with HERO - which still has the other inlineGraphic alignment problem - but does not have the runtime error:
    http://www.theyrule.net/test/tlf_images/SingleContainerTestHero.swf
    Here is the source:
    package
    import flash.display.Sprite;
    import flash.display.StageAlign;
    import flash.display.StageScaleMode;
    import flash.events.Event;
    import flash.events.MouseEvent;
    import flash.system.System;
    import flash.text.TextField;
    import flash.text.TextFormat;
    import flashx.textLayout.container.ContainerController;
    import flashx.textLayout.container.ScrollPolicy;
    import flashx.textLayout.edit.EditManager;
    import flashx.textLayout.elements.DivElement;
    import flashx.textLayout.elements.InlineGraphicElement;
    import flashx.textLayout.elements.ParagraphElement;
    import flashx.textLayout.elements.SpanElement;
    import flashx.textLayout.elements.TextFlow;
    import flashx.textLayout.formats.TextLayoutFormat;
    import flashx.textLayout.formats.VerticalAlign;
    import flashx.textLayout.tlf_internal;
    import flashx.undo.UndoManager;
    use namespace tlf_internal;
    [SWF (width="500", height="700", backgroundColor="#FFFFFF")]
    public class SingleContainerTest extends Sprite
    protected var tf:TextFlow;
    protected var em:EditManager;
    protected var um:flashx.undo.UndoManager
    protected var _bg:Sprite;
    protected var _spr:Sprite;
    protected var _cc:ContainerController
    protected var _init_fmt:TextLayoutFormat;
    protected var _btn:Sprite;
    protected var _playing:Boolean = false;
    protected var _count:int = 0;
    protected var _graph:Sprite;
    protected var _print_out:TextField;
    protected var _last_time:Date = new Date();
    protected var _last_five:Array = [];
    public function SingleContainerTest()
    stage.scaleMode = StageScaleMode.NO_SCALE;
    stage.align = StageAlign.TOP_LEFT;
    var cw:Number = 200; // the container width
    var ch:Number = 600;  // the container height
    _bg = new Sprite();
    _bg.graphics.lineStyle(.25, 0);
    _bg.graphics.drawRect(0,0,cw,ch);
    addChild(_bg);
    _spr = new Sprite();
    addChild(_spr);
    _graph = new Sprite();
    _graph.x = cw + 10;
    _graph.y = 250;
    addChild(_graph);
    _print_out = new TextField();
    var fmt:TextFormat = _print_out.defaultTextFormat;
    fmt.font = "_sans";
    _print_out.wordWrap = true;
    _print_out.multiline = true;
    _print_out.width = stage.stageWidth - (10 + _graph.x);
    _print_out.x = _graph.x;
    _print_out.y = _graph.y + 10;
    addChild(_print_out);
    //define TextFlow and manager objects
    tf = new TextFlow();
    um = new UndoManager();
    em = new EditManager(um);
    tf.interactionManager = em;  
    //compose TextFlow to display
    _cc = new ContainerController(_spr,cw,ch);
    //_cc.verticalAlign = VerticalAlign.BOTTOM;
    //_cc.verticalScrollPolicy = ScrollPolicy.ON;
    tf.flowComposer.addController(_cc);
    tf.flowComposer.updateAllControllers();
    //make a button to add Inline Graphic elements
    _btn = new Sprite();
    _btn.graphics.beginFill(0xFF0000,1);
    _btn.graphics.drawRect(0,0,120,30);
    addChild(_btn);
    _btn.addEventListener(MouseEvent.CLICK, btnClicked);
    _btn.y = 600;
    addMessage("1");
    addMessage("2");
    addMessage("3", true);
    public function addMessage(msg:String, add_image:Boolean = false):void {
    //define elements to contain text
    var d:DivElement = new DivElement();
    var p:ParagraphElement = new ParagraphElement();
    var s:SpanElement = new SpanElement();
    s.text = msg;
    //add these elements to the TextFlow
    p.addChild(s);
    d.addChild(p);
    if(add_image){
    var sp:Sprite = new Sprite();
    sp.graphics.beginFill(0xFFCC00);
    sp.graphics.drawRect(0,0,100,20);
    var i:InlineGraphicElement = new InlineGraphicElement();
    i.source = sp;
    i.width = 100;
    i.height = 20;
    p.addChild(i);
    tf.addChild(d);
    tf.flowComposer.updateAllControllers();
    _cc.verticalScrollPosition = _cc.getContentBounds().height;
    tf.flowComposer.updateAllControllers();
    protected function btnClicked(e:MouseEvent):void {
    _playing = !_playing;
    removeEventListener(Event.ENTER_FRAME, onEnterFrame);
    if(_playing){
    addEventListener(Event.ENTER_FRAME, onEnterFrame);
    protected function onEnterFrame(e:Event):void {
    _count++;
    if(_count > 100){
    tf.removeChildAt(0);
    addMessage("Message Number: " + _count + " " + randomString());
    printOut()
    protected function printOut():void {
    var now:Date = new Date();
    var tm:Number = (now.getTime() - _last_time.getTime());
    _last_five.push(tm);
    if(_last_five.length > 10) _last_five.shift();
    var avg_tm:Number = 0;
    for(var i:int = 0; i < _last_five.length; i++) avg_tm += _last_five[i];
    avg_tm = Math.round(avg_tm/_last_five.length);
    var elapsed_str:String = "message: \t\t\t"+_count
    + "\ntime: \t\t\t\t" + tm + "ms"
    + "\navg of last 10:\t\t" + avg_tm +"ms";
    //trace(elapsed_str );
    _print_out.text = elapsed_str;
    _last_time = now;
    drawGraph(tm);
    protected function drawGraph(tm:Number):void {
    if(_count % 5 == 0){
    _graph.graphics.beginFill(0x0);
    _graph.graphics.drawRect(_count/10,-Math.round(tm/10),1,1);
    _graph.graphics.beginFill(0xFF0000);
    _graph.graphics.drawRect(_count/10,-Math.round(System.totalMemory/1000000),1,1);
    protected function randomString():String {
    var chars:String = "abcdefghijklmnopqrstuvwzyz                    ";
    var chars_len:Number = chars.length;
    var random_str:String = "";
    var num_chars:Number = Math.round(Math.random() * 100);
    for (var i:int =0; i < num_chars; i++){
    random_str = random_str + chars.charAt(Math.round(Math.random() * chars_len));
    return random_str;

  • Runtime Error After Installing Quick Time 7.2 Without Itunes Option

    First I could not open my Itunes b/c I had an application error. So I uninstalled Quick Time and reinstalled Quick Time 7.2 (w/o Itunes). Now I have a "Runtime Error: This Application has requested the Runtime to terminate it in an unusual way. Please contact applications support team for more information." I noticed somebody else had this message but I don't know how to uninstall itunes and quick time and try and start all over. Any thoughts??

    Okay. let's first try making sure you've removed iTunes and QuickTime completely, as per the following document:
    Removing iTunes and QuickTime for Windows
    Then once that has been completed, let's try another QuickTime standalone install. (Download and save the QuickTime installer to your desktop. We'll run the install from there rather than online.)
    Quicktime 7.2.0 Installers … get the one that doesn’t mention iTunes
    Does that install go through okay? if so, do you still get the error message when you try launching QuickTime?

  • RunTime Error and Xml Source

    Hi,
    When I try to view the xml source of my form, I have a runtime error c++ and Designer crashes. It doesn't happen on all my forms. Has my form to many scripts or objects ? Or Is my development environment not appropriate to work correctly ?
    I develop with Windows XP 2GO ram, Livecycle ES JBOSS Turnkey installation.
    Thanks for any advice.

    Hello Paul,
    Thank you for your help, but the project that I'm working on I'm unable to send to you the PDF file, for security policies reason.
    The form has 11 pages and trying to solve the problem I deleted 10 pages. So now I can see the XML Source but I found a weird thing:
    in a Decimal Field, I found up to 65.000 occurrences of
    instead of just one. What is it mean?
    Is there another way to see the XML source?
    Diego

  • How to show the detail information of web dynpro runtime error

    hi,
    I'm a java developer,During i 'deploy and run ' a web dynpro application on server-1,if the application have some runtime errors. there are displayed many infomation about the runtime error,such as exception track,etc.
    But when i do the same on server-2,there just show something like:
    500 Internal Server Error
    SAP NetWeaver Application Server 7.00/Java AS 7.00
    Failed to process request. Please contact your system administrator.
    but the server-1 will stop the j2ee engine.
    how can do i make server-2 show detail error message as server-1. when i debug web dynpro application need these infomation.
    Appreciate your inputs...
    (Note:server-1 and server-2 have same software version, i have setup the 'developmode' value is 'true' in VA)
    Edited by: BingLin Zhong on Feb 18, 2008 2:22 AM

    Follow SAP note - Note 962319 - Detailed error messages with stack trace in Web Dynpro
    Thanks,
    Praveen
    PS.Dont forget to reward points

  • GUI Quiz - cannot get it to work (runtime error)

    i have a runtime error that says "Exception in thread "main" java.lang.NoClassDefFoundError: Quiz" can anyone tell me whats wrong with my code?
    the code is the following and i need to read in a question and display it graphically so the user can answer...
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.*;
    import java.io.*;
    public class Quiz implements ActionListener
         // To use JRadioButtons effectively, you need a ButtonGroup.  See Section
         // 5.12 in the text for more details on JRadioButtons.
         private ButtonGroup [] theGroups;
         // Note that the choices, counts and labels are all arrays.  These arrays
         // will allow us to more easily access the data, and will allow us to have
         // an arbitrary number of each of these.  The size of the arrays are
         // determined in the constructor.
         private JRadioButton [] theChoices;
         private int [] guessedAnswer;
         private JLabel [] answerLabels;
         private String greeting = "Welcome to the Music Poll!  Please select your favorite band";
         private JFrame theWindow;
         private JLabel intro;
         private JPanel radioPanel;
         private static Font font1 = new Font("Times", Font.BOLD, 16);
         private static Font font2 = new Font("Times", Font.ITALIC, 20);
         private JButton reset;
         public Quiz(String [] data)
              // Much of the initialization below are things we have seen before.
              theWindow = new JFrame("Quiz v. 1.0");
              Container c = theWindow.getContentPane();
              intro = new JLabel(greeting);
              intro.setFont(font2);
              theGroups = new ButtonGroup[numQuestions];
              theChoices = new JRadioButton[data.length];
              theCounts = new int[data.length];
              countLabels = new JLabel[data.length];
              radioPanel = new JPanel();
              radioPanel.setLayout(new GridLayout(data.length+1, 2));
              JLabel answerLabel = new JLabel("Answers");
              countLabel.setHorizontalAlignment(SwingConstants.CENTER);
              countLabel.setFont(font1);
              JLabel questionLabel = new JLabel("Question");
              questionLabel.setFont(font1);
              radioPanel.add(answerLabel);
              radioPanel.add(questionLabel);
              for (int i = 0; i < data.length; i++)
                   theChoices[i] = new JRadioButton(data);
                   theChoices[i].setHorizontalAlignment(SwingConstants.LEFT);
                   // See the GuessListener class below for more information about it.
                   theChoices[i].addActionListener(new GuessListener(i));
                   guessedAnswer[i] = 0;
                   answerLabels[i] = new JLabel("" + guessedAnswer[i]);
                   answerLabels[i].setHorizontalAlignment(SwingConstants.CENTER);
                   group.add(theChoices[i]);
                   radioPanel.add(answerLabels[i]);
                   radioPanel.add(theChoices[i]);
              reset = new JButton("Next Question");
              reset.addActionListener(this);
              c.add(intro, BorderLayout.NORTH);
              c.add(radioPanel, BorderLayout.CENTER);
              c.add(reset, BorderLayout.SOUTH);
              theWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              theWindow.pack();
              theWindow.setVisible(true);
         // actionPerformed to reset the counts -- this is the ActionListener
         // implementation of the main class.
         public void actionPerformed(ActionEvent e)
              for (int i = 0; i < answerLabels.length; i++)
                   guessedAnswer[i] = 0;
                   answerLabels[i].setText("" + guessedAnswer[i]);
         // This ActionListener is used to update the count of the band that
         // was selected by the user. Rather than having a single object with
         // a test to see which JRadioButton was pressed, we instead assign a
         // separate instance of the GuessListener for each JRadioButton. In
         // order to know which count and label to update, we need to know the
         // index. This can be easily done with a constructor to tailor each
         // instance of the listener to the JRadioButton it is listening to.
         private class GuessListener implements ActionListener
              private int index;
              public GuessListener(int i)
                   index = i;
              public void actionPerformed(ActionEvent e)
                   guessedAnswer[index]++;
                   answerLabels[index].setText("" + guessedAnswer[index]);
         public static void main(String [] args)
              // Try adding and/or removing strings from the options array
              // and see how the window changes.
              int numQuestions;
              int numAns;
              int corrAns;
              String s;
              Scanner fileScan = new Scanner(new FileInputStream("Questions.txt"));
              numQuestions = filescan.nextInt();
              qs = new Question[numQuestions];
              for(int i = 0; i < numQuestions)
                   String s = filescan.next();
                   int numAns = filescan.nextInt();
                   String [theAns] = new String[numAns];
                   for(int j = 0; j < numAns; j++)
                        theAns[j] = new String(filescan.next());
                   int corrAns = filescan.nextInt();
                   ques[i] = new Question(s, theAns, corrAns);
              new Quiz(ques);
    the following is my question class to form each question and its answer...
    import java.util.*;
    import java.io.*;
    public class Question
         String ask;
         String [] answer;
         int correctAnswer;
         public Question(String q, String [] ans, int correct)
              ask = new String(q);
              answer = new String[ans.length];
              for (int i = 0; i < ans.length; i++)
                   answer[i] = new String(ans[i));
              correctAnswer = correct;
              return(ask, answer, correctAnswer);
    }thanks

    Are you sure this compiles? You define an array of Questions (not
    declared anywhere) as "qs" and later appear to use is as "ques".
    The braces in the main method are unmatched.
    If it doesn't compile, you won't get any runtime errors (because it
    won't run) but java will complain that the Quiz class doesn't exist
    (because it doesn't).

Maybe you are looking for

  • Message with Multiple IDoc's to be sent to Two FTP locations

    HI All, I need your valuable suggestions for the best approach.... Scenario is IDOC > PI>FILE All the Orders's(Orders05) created in SAP for every hour, IDOC's are collected and then a scheduled program sends all these idoc's every hour ... In PI i am

  • 3rd party payment integration with ADF application

    Hi ADF experts, We have a requirement to integrate our ADF application with 3rd party payment gateway. For this we have created 2 servlets(one to post data, and one for relay response) which will talk to payment gateway. Since we are using servelts,

  • Help for javac task in ant?

    Here I have 5+ folders, ervery has many java source files. And all the java source files in these folders is the same package name, also there may have same file name in different folder. And now I want the javac to compile these files and save the c

  • HELP!!!!  IWEB  UPLOADS FOREVER - IT NEVER FINISHES UPLOADING

    I have been working on iweb - problem free - for several weeks. Suddenly, whenever I try to upload, it will not finish. Right now, it has been uploading for 6 hours. If I try to quit iweb, it says, "sure you want to quit, still uploading." I did add

  • F4 Help Assignment For Custom Field

    Hi All... I'm trying to add F4 help to a custom field.  I have created a field of type CRMT_PERSON_RESP_LIST and I want to assign a partner to the field. I have assigned the F4 application 'CRMM_BUPA_SEARCH' to the field and I have setup the field in