Help me stop terminal

I must have done something wrong. I used a command suggested in boxee discussions to retrieve log files off my networked apple TV but it looks like terminal is going through my laptop hard disk instead. It's been running for at least 30 minutes with text scrolling like ./Music/iTunes/iTunes Music/...
How do I stop the process? Can I just quit terminal? Is there a command that I can put in to get it to stop while it is in the middle of something?

control + C will stop most processes in the terminal.

Similar Messages

  • PLEASE HELP!!! My 'Apple mobile device helper has stopped working'!

    Today i bought the new 3G iPhone so i went online to download the new 7.7 iTunes software. Now when i go into my iTunes a Windows pop up appears telling me that my 'Apple mobile device helper has stopped working' and that it is diagnosing the problem. The thing is that it doesn't diagnose the problem, the same box just keeps popping up over and over again.
    I am not very computer literate and have tried everything that i can think of but nothing has worked.
    Please can someone help because i'm absolutely dying to use my new iPhone; i queued up from 6 am to get my hands on it! :0(

    I'm just a simple user. I don't know how to fix it any more than any of the other posters with this problem. I've looked around in control panel, done some poking and prodding with services and processes, and can't find a reasonable way to stop the messages without completely hosing up iTunes. I know the messages are annoying as ****, and nobody likes the idea, but sitting around and doing nothing is sometimes a whole lot better then doing something that makes it worse. See if you can find a document from Apple that tells you how to go back to the previous version of iTunes. I've seen that course of action mentioned several times for previous releases of iTunes upgrades, so the instructions for it must exist in another forum.
    I just think, from the number of posts, that Apple is going to have to get a fix out pretty quickly, because this error pretty much shuts down their products on the Windows platform. They can't afford to let it go on for very long.

  • "Mobile Device helper has stopped working" after installing most recent

    OK. Like a thousand other threads that have been posted over the past week or so on this topic and having tried most of the suggestions, I find myself at a loss.
    After most recent update (which I installed on Monday) from 3.1.2 to 3.1.3 all **** has broken loose between my *iPhone, iTunes & Outlook*. This all came to light just hours after the install. . . . I noticed that my phone wasn't syncing - at all, it just "hung" there then I went into my contacts in Outlook - gone. . . UGH, EEK, OK, so they're still on my iPhone BUT I can't get to them in Outlook. After loosing most of yesterday and all of today I am at the mercy of someone who might know how to resolve this issue.
    _*Steps I have taken :*_
    I have un-installed and reinstalled iTunes 5 times, no luck, I've restarted, yada yada yada. I've hidden my Norton's Internet Security, allowed iTunes, etc. *Still no luck*. Take in mind, all was great after months of perfect syncing, etc. no problems whatsoever . . .
    *The two messages that I continue to get when I open iTunes and connect my phone:*
    1) "Mobile Device helper has stopped working"
    2) " Unable to load data-class information from Sync Services. Reconnect or try again later".
    The most recent error message under "Problems Reports & Solutions" on my start menu read:
    Product: MobileDeviceHelper
    Problem: Stopped working
    Date: 4/7/2010 3:42 PM
    Status: Not Reported
    Problem signature
    Problem Event Name: APPCRASH
    Application Name: AppleMobileDeviceHelper.exe
    Application Version: 16.691.14.1
    Application Timestamp: 4ba3b8fe
    Fault Module Name: CoreFoundation.dll
    Fault Module Version: 1.550.17.21
    Fault Module Timestamp: 4b8cb530
    Exception Code: c0000005
    Exception Offset: 0000db6b
    OS Version: 6.0.6002.2.2.0.768.3
    Locale ID: 1033
    This is the same message that I have received the last 10 times under Mobile Device Helper.
    *Please PLEASE please*, does anyone know how to resolve this problem?
    *Thank you SO MUCH for any insight.*
    -signed, UGH!!!

    Hi,
    I have had the same experience... uninstalled and reinstalled iTunes and all Apple components only to now be in a position where I can't sync my iphone at all (before I started trying various solutions I could still sync music... now nothing!) and I continually get the messages "mobile device helper has stopped working" and then "iTunes was unable to load dataclass information from Sync Services. Reconnect or try again later".
    I even tried reinstalling iTunes 9.0 but somehow I don't have the old library saved - means I lose all the ratings, playlists etc.
    Really frustrating and disappointing.

  • Mobile Device Helper has stopped working

    I have just purchased an iPhone 3Gs, I have the lastest version of iTunes (9.1) and am operating on 32-bit Windows Vista using an Acer laptop.
    First, the iPhone was not recognised - so re-installed iTunes, downloaded Service Pack 2 for vista, reinstalled iTunes. Did't work. Finally found a forum that lead me to delete a problem file for Acer laptops (can't remember its name now) but then my iPhone was now recognised!
    Secondly, tried to sync my windows contacts (all my old contacta list from old phone) then had syncing problems..through more forums that error message stopped but now I have a new one that I can't get past...
    'Mobile Device Helped has stopped working' comes up repeatedly and will not let me to anything with iTunes as it freezes until I end task in Task manager.
    I have looked into other forums that talk of deleting the Apple Mobile Device, but it doesn't seem to me to be the rigt decision as the majority of people have just had to reinstall iTunes as it wont recognise the phone without the file.
    It seems that the new iTunes doesn't like Windows Vista.
    Please can anyone help me get past this point before I lose the will to live!! (it's been over 5hours now!!!!)
    Thanks

    Sort of the same issue.
    Windows Vista 64bit Home Premium.
    I just launched iTunes for the first time after installing 9.1. When I connected my iPhone, iTunes told me that I needed to install a newer version of Apple Mobile Device, which entailed removing/reinstalling iTunes and AMD. I remember there being an order to which applications should be removed, so I did that, but got stuck at AMD. I wasn't able to remove it. There was no error message, it just automatically rolled back the uninstall process and quit. I did some research and saw someone recommend using the Windows Install Cleanup Utility. I used that to remove AMD, and it worked. Next on the list was Apple Application Support (?), which also could not be uninstalled by normal means. So I used WIC on that as well. iTunes, Bonjour, Quicktime, and Apple Software update I was able to remove via the Control Panel. I rebooted, reinstalled iTunes, and when it began the install process for AMD I got this message:
    "Could not open key:
    Unknown\Components\DA42BC89BF25F5BD0AF18C3B9B1A1EE8\3F55235DF871F046A8F862841205 6EF. Verify that you have sufficient access to that key, or contact your support personnel."
    Got the same message for Apple Application Support. As a result, neither was installed.
    Prior to doing any of this, I had disabled AMD in Services, which didn't help. I have since re-enabled it, and it is still running in Services, although it does not show up in the list on programs to uninstall.
    After all this, I read in another forum that simply doing a Repair on AMD would solve the problem, but since I am unable to reinstall it, I cannot test it out.
    Message was edited by: Zachary Prewitt

  • I made a dual boot of windows 7 and mac os x lion in my macbook pro .i installed m icrosoft support software also. now, can i install windows updates? do i turn on the automatic updating of updates? does hot fix of microsoft helps in stop freezing?

    i made a dual boot of windows 7 and mac os x lion in my macbook pro .i installed m icrosoft support software also. now, can i install windows updates? do i turn on the automatic updating of updates? does hot fix of microsoft i.e, " support.microsoft.com/kb/979491" helps in stop freezing in dual boot mechanism?

    Windows has a software updater built into Windows and when you install the Boot Camp drivers then it will install an Apple software updater also. I believe Windows is set to automatically download and install your updates as does the Apple software Updater. They both will update the individual files it needs to periodically.
    "Microsoft updates" and "Windows updates" are basically the same thing in Windows. Are you talking about the "Windows support software" when downloading from Boot Camp Assistant? Apple installs a software updater for it's Boot Camp drivers in Windows 7 so you can do it manually or automatically.
    The "Hot Fix" your referring to is only for certain motherboards built from other Windows only computer manufacturers and does NOT pertain to any Apple computers.
    If you have a problem with your computer then it's best to ask a specific question so we can help better.

  • Can't seem to sync my phone with iCal because I get a message that says:No writable calendar. I tried the suggestions I found in Help including a Terminal command to no avail.

    Can't seem to sync my phone with iCal because I get a message that says:No writable calendar. I tried the suggestions I found in Help including a Terminal command to no avail.

    I can only suggest you now need to somehow link your mobile to sync with the new calendar 'On my Mac'.
    I have a work Blackberry whose calendar I sync with an iCal calendar 'On my Mac' using a usb lead and the Blackberry Desktop Manager for Mac. This free piece of software from Blackberry, automatically starts up as soon as I connect the usb to the iMac and it then prompts me to select which calendar 'On the iMac', which is writable, that I want my Blackberry to sync to.

  • HT201493 How do I get my old apple ID/email from popping up and asking to verifie it's getting annoying? I've change everything to my new email an my old one keeps popping up please help me stop it from popping up all the time?

    How do I get my old apple ID/email from popping up and asking to verifie it's getting annoying? I've change everything to my new email an my old one keeps popping up please help me stop it from popping up all the time?

    Did you change the ID you are using for iCoud?  If so, did you delete the account, then sign back in with your new ID on your device?

  • Help with stopping KeyListerner

    Hi there,
    I need help with stopping KeyListener{}. Ive made this applet, which functions in a game. Once the player has achieved the goal, i have a results message appear. but if you hold UP arrow key, the message flashes and the image keeps moving, prolonging the message to appear. I've tried a if{} block, but it doesn't work.
    iam using DirectionKeyListener implements KeyListener {} with keyPressed (KeyEvent event) {}. The if {}block (mentioned before) i put into the KeyEvent section so it, for example, x == 9, it would work, otherwise display the message.
    Thanks in advance
    Landon

    yeah i include them but i dont ultilise them.
    i use the keyPressed (KeyEvent event) {}
    the code looks something like this:
    public void keyPressed (KeyEvent event) {
    if (current == 9){
    //all the normal events
    } else {
    // display results
    public void keyTyped (KeyEvent event) {}
    public void keyReleased (KeyEvent event) {}
    current is the varible that changes when the race is completed. It changes and then should trigger the new event. Iam also using paint(), if that might interfere.
    again, thanks in advance

  • Adobe Dreamweaver CC 2014 Helper has stopped working

    When I try to import an Flash SWF file created with CC 2014 I get an error that says Adobe Dreamweaver CC 2014 Helper has stopped working.  Then I get the option to check online for a solution and close the program or just a second option to just close the program.
    Any suggestions to a fix?

    I insured that Flash 64 bit was installed on my computer.
    This problem must have something to do with embedding a Flash file. I could not recreate the problem on other client's websites. I pulled all the Flash code and the problem went away. Of course I want to include a Flash file so it's still an issue for me.
    CODE I PULLED:
    <script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
    <script type="text/javascript">
    swfobject.registerObject("FlashID");
        </script>
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="250px" id="FlashID" title="animatedDog">
                <param name="movie" value="dog.swf">
                <param name="quality" value="high">
                <param name="wmode" value="opaque">
                <param name="swfversion" value="10.1.0.0">
                <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
                <param name="expressinstall" value="Scripts/expressInstall.swf">
                <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
                <!--[if !IE]>-->
                <object type="application/x-shockwave-flash" data="dog.swf" width="100%" height="250px">
                  <!--<![endif]-->
                  <param name="quality" value="high">
                  <param name="wmode" value="opaque">
                  <param name="swfversion" value="10.1.0.0">
                  <param name="expressinstall" value="Scripts/expressInstall.swf">
                  <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
                  <div><img src="/images/2014/noFlash.gif" alt="Missing Adobe Flash player" /></div>
                  <!--[if !IE]>-->
                </object>
                <!--<![endif]-->
              </object>
             <br><img src="images/2014/sidePhotos/photo.jpg" alt=""><br>

  • How do I unprescribe from FIT Radio app. I tried, but it keeps charging my card every month. I DON'T want it anymore. Can you please help me stop this issueand cancel it completely.

    Hi my name is Natalia R. I had subscribed to FIT Radio, and got charged monthly. Now, I do not want the app anymore. I have tried canceling it, but it does not allow me. How do I unsubscribe from FIT Radio app. I tried, but it keeps charging my card every month. I DON'T want it anymore. Can you please help me stop this issue and cancel it completely without any further charger to my card.
    Thanks,
    Natalia R.
    <Personal Information Edited By Host>

    The following may help: Manage your auto-renewing subscriptions - Apple Support

  • RIM.Desktop Helper has stopped working

    Hi there,
    I just download Desktop Software v6 to my laptop HP window7 64 bit. when i installed, it open the WELCOME window and before i can press the Get Started button, it pop up another window saying RIM.Desktop Helper has stopped working  and the windows is checking but after that it closed.
    What should i do?
    Many thanks

    Hmm. That may be something in your calendar database is corrupt. Was your device ever synched before? There is a way of clearing the calendar database. So if you have your device synching with Outlook, after it's cleared from the BlackBerry, you could try synching again.
    To clear the calendar database you can go into Desktop Manager | Backup and Restore | Advanced. On the right hand side select the calendar database and hit the Clear button. Afterwards try synching again
    If someone has been helpful please consider giving them kudos by clicking the star to the left of their post.
    Remember to resolve your thread by clicking Accepted Solution.

  • "unfortunately package access helper has stopped"?

    I'm not even sure how to phrase this.
    The message "unfortunately package access helper has stopped" has started to pop up whenever I access my settings. I own a brand new Samsung Galaxy S4, and i've looked everywhere for a solution, and can't seem to find one. Can anyone give me a solution for this error message? I would love to not have to restore my phone to it's factory settings.

        We want to make sure you have the full access to your device, thatlifeisbeauty. Does this happen when you are in a certain application? If so, please follow these steps to clear the application cache. Here are the steps http://vz.to/1jNR0uO
    RobinD_VZW
    Follow us on twitter @VZWSupport

  • Keep getting error installation helper has stopped working for readstep2

    keep getting error installation helper has stopped working for readstep2

    attach a screenshot of that error message, FAQ: How do I capture and post a screen shot or... | Adobe Community

  • In using Mail between my Yahoo emails i kep getting cut off telling me that my present password no longer works. This is more than annoying since i transfer files between various Yahoo accounts for my filing purposes. Help me stop this abuse. Please.

    In using Mail and moving between my Yahoo emails i keep getting cut off telling me that my present password no longer works. But i have been getting my work done and suddelnly my password no loner is acceptalbe even upon re-entering it many times.This is more than annoying since i transfer files between various Yahoo accounts for my filing purposes. Help me stop this abuse. Please.

    Ah yes school boy error there out of frustration and discontent..
    My issue is with music/apps/films etc not downloading from iTunes / App Store.
    They initially fail and message is displayed stating unable to download / purchase at this time, yet if I retry it says I've already purchased (?) or alternatively I go to the purchased section and there they are waiting with the cloud symbol..
    However some items get frozen in the download window and cannot be retried or deleted. Message appears stating to tap to retry, but even if you stole every bath and sink in the uk you'd still not have enough taps.
    I post here as the iTunes guys are useless in there 'help' and have only advised posting here or phoning apple, at my expense, to explain a problem that could be rectified by forwarding my original email to a techie. However the tech team apparently don't have an email address as they're from ye olde Middle Ages..!
    Anyways I digress.
    So I tried sync to pc, but instead of showing the file as ready to listen/use/view, the iCloud symbol shows and I'm back to square one as the item is unable to download..
    At frustration station waiting for a train from pain...
    All my software is up to date, and had all worked fine prior to the last big iOS update that resulted in all the changes in display and dismay.
    Answers in a postcard :-)
    Much love

  • Please help, java program terminating unexpectedly without reason

    ok, so I have a project I'm working on, here's its description:
    Create a new project named FML_Pig where F is your first initial, M is your middle initial, and L is your last initial. For example, if your name is Alfred Edward Neuman then you would name your project AEN_Pig. If necessary, add a new Java file to this project named FML_Pig.
    Add a java file to the project named FML_Dice.
    Design and implement a Dice class as follows. The Dice class has 2 twenty&#8209;sided dice with numbers on the faces (1 � 20) and 2 twenty-six-sided dice with letters on the faces (a � z).
    import java.util.Random;
    public class FML_Dice
    private static Random gen = new Random();
    private final static int NUM_SIDES = 20;
    private int die1, die2, numSnakeEyes, numVowels, totalPoints;
    private char die3, die4;
    Part 1
    Add a rollDice() method to your FML_Dice class that sets die1 and die2 to a random number between 1 and 20 and it sets die3 and die4 to a random character between �a� and �z�.
    Helpful Hint:
    dice3 = (char)(�a� + gen.nextInt(26)); // sets dice3 to a random char between �a� and �z�.
    Part 2
    Write a constructor that sets die1 and die2 to a random number between 1 and 20 and it sets die3 and die4 to a random character. Your constructor can simply call rollDice() to do this. It should also initialize numSnakeEyes, numVowels, and totalPoints to 0 (after you roll the dice).
    Part 3
    Write methods getDie1(), getDie2(), getDie3(), and getDie4() that returns the value of the respective die. Write a method numSnakes() that returns the number of snake eyes that have been rolled. Write a method numVowels() that returns the number of vowels that have been rolled. Write a method totalPts() that returns the totalPoints.
    Part 4
    Write a toString() method that overwrites the default toString() method. It should return a String representation of the value of all 4 die. For example, 17 2 h w.
    Part 5
    Write a method updateTotals that updates numVowels, numSnakeEyes, and totalPoints based on the current values of die1, die2, die3, and die4. numVowels should be incremented by 1 if either die3 or die4 are a vowel. However, if both die3 and die4 are vowels, the totalPoints should be reset to 0 and numVowels should be reset to 0 also. numSnakeEyes should be incremented by 1 if either die1 or die2 have a face value of 1 (this is not truly a snake eyes, but it gives better odds for the game). totalPoints should be incremented by the sum of die1 and die2 multiplied by (numSnakeEyes + 1).
    Part 6
    Write a main program (use the one in FML_Pig.java) that plays a game of Pig. In this game, two people play against each other. Player1 begins by rolling the dice. The total of die1 and die2 is added to his total score. Player1�s turn continues until he/she rolls a total of 4 vowels then the turn switches to Player2. Whenever a turn switches to the other player, the number of vowels is reset to zero. Also, if at any time both die3 and die4 are vowels, the total score is reset to 0 and the turn switches to the other player. (So the turn switches to the other player whenever the total number of vowels reaches four or there are two vowels rolled at the same time.)
    If a player rolls snakeeyes (for our game, snakeeyes occurs whenever either of the dice have a face value of one � in reality, both die1 and die2 should have a face value of one but then snakeeyes would occur only once every 400 rolls), then his point values are doubled from that point on (all future rolls for the rest of the game, point values for this player are doubled). When a player rolls snake eyes again, point values are tripled for that roll and all future rolls. (Three snake eyes, quadrupled, etc.)
    (continued on the next page)
    Be sure to display the results of the roll for each turn.
    First player to get to 2000 points wins the game and gets to oink like a pig.
    Note: Both players need their own set of Dice since the Dice keeps track of the totalPoints, the number of snake eyes rolled so far, and the number of vowels rolled so far for that particular player. You can do this simply by declaring it that way in the main program:
    Dice player1 = new Dice();
    Dice player2 = new Dice();
    You may add additional methods and instance variables to the class as needed. For example, I would probably write a private helper method isVowel() that is passed a char argument ch and returns true if ch is a vowel.
    Also, you can have the computer play for both player 1 and player 2. Simply loop it until somebody wins. Print out the result for each turn including who rolled the dice (player 1 or player 2), what they rolled, how many snakeeyes do they have, how many points did they get for this turn, and how many total points do they have.
    When you are completely finished, hand in just the java files (FLM_Dice & FLM_Pig). If you happened to write any other classes, make sure they are named with the FML format, and turn these in as well. I do not need EasyReader or p.
    Oink! Oink!
    This pig won the game --------->
    so here's my code:
    this isn't my code but is required to compile my code: // package com.skylit.io;
    import java.io.*;
    *  @author Gary Litvin
    *  @version 1.2, 5/30/02
    *  Written as part of
    *  <i>Java Methods: An Introduction to Object-Oriented Programming</i>
    *  (Skylight Publishing 2001, ISBN 0-9654853-7-4)
    *   and
    *  <i>Java Methods AB: Data Structures</i>
    *  (Skylight Publishing 2003, ISBN 0-9654853-1-5)
    *  EasyReader provides simple methods for reading the console and
    *  for opening and reading text files.  All exceptions are handled
    *  inside the class and are hidden from the user.
    *  <xmp>
    *  Example:
    *  =======
    *  EasyReader console = new EasyReader();
    *  System.out.print("Enter input file name: ");
    *  String fileName = console.readLine();
    *  EasyReader inFile = new EasyReader(fileName);
    *  if (inFile.bad())
    *    System.err.println("Can't open " + fileName);
    *    System.exit(1);
    *  String firstLine = inFile.readLine();
    *  if (!inFile.eof())   // or:  if (firstLine != null)
    *    System.out.println("The first line is : " + firstLine);
    *  System.out.print("Enter the maximum number of integers to read: ");
    *  int maxCount = console.readInt();
    *  int k, count = 0;
    *  while (count < maxCount && !inFile.eof())
    *    k = inFile.readInt();
    *    if (!inFile.eof())
    *      // process or store this number
    *      count++;
    *  inFile.close();    // optional
    *  System.out.println(count + " numbers read");
    *  </xmp>
    public class EasyReader
      protected String myFileName;
      protected BufferedReader myInFile;
      protected int myErrorFlags = 0;
      protected static final int OPENERROR = 0x0001;
      protected static final int CLOSEERROR = 0x0002;
      protected static final int READERROR = 0x0004;
      protected static final int EOF = 0x0100;
       *  Constructor.  Prepares console (System.in) for reading
      public EasyReader()
        myFileName = null;
        myErrorFlags = 0;
        myInFile = new BufferedReader(
                                new InputStreamReader(System.in), 128);
       *  Constructor.  opens a file for reading
       *  @param fileName the name or pathname of the file
      public EasyReader(String fileName)
        myFileName = fileName;
        myErrorFlags = 0;
        try
          myInFile = new BufferedReader(new FileReader(fileName), 1024);
        catch (FileNotFoundException e)
          myErrorFlags |= OPENERROR;
          myFileName = null;
       *  Closes the file
      public void close()
        if (myFileName == null)
          return;
        try
          myInFile.close();
        catch (IOException e)
          System.err.println("Error closing " + myFileName + "\n");
          myErrorFlags |= CLOSEERROR;
       *  Checks the status of the file
       *  @return true if en error occurred opening or reading the file,
       *  false otherwise
      public boolean bad()
        return myErrorFlags != 0;
       *  Checks the EOF status of the file
       *  @return true if EOF was encountered in the previous read
       *  operation, false otherwise
      public boolean eof()
        return (myErrorFlags & EOF) != 0;
      private boolean ready() throws IOException
        return myFileName == null || myInFile.ready();
       *  Reads the next character from a file (any character including
       *  a space or a newline character).
       *  @return character read or <code>null</code> character
       *  (Unicode 0) if trying to read beyond the EOF
      public char readChar()
        char ch = '\u0000';
        try
          if (ready())
             ch = (char)myInFile.read();
        catch (IOException e)
          if (myFileName != null)
            System.err.println("Error reading " + myFileName + "\n");
          myErrorFlags |= READERROR;
        if (ch == '\u0000')
          myErrorFlags |= EOF;
        return ch;
       *  Reads from the current position in the file up to and including
       *  the next newline character.  The newline character is thrown away
       *  @return the read string (excluding the newline character) or
       *  null if trying to read beyond the EOF
      public String readLine()
        String s = null;
        try
          s = myInFile.readLine();
        catch (IOException e)
          if (myFileName != null)
            System.err.println("Error reading " + myFileName + "\n");
          myErrorFlags |= READERROR;
        if (s == null)
          myErrorFlags |= EOF;
        return s;
       *  Skips whitespace and reads the next word (a string of consecutive
       *  non-whitespace characters (up to but excluding the next space,
       *  newline, etc.)
       *  @return the read string or null if trying to read beyond the EOF
      public String readWord()
        StringBuffer buffer = new StringBuffer(128);
        char ch = ' ';
        int count = 0;
        String s = null;
        try
          while (ready() && Character.isWhitespace(ch))
            ch = (char)myInFile.read();
          while (ready() && !Character.isWhitespace(ch))
            count++;
            buffer.append(ch);
            myInFile.mark(1);
            ch = (char)myInFile.read();
          if (count > 0)
            myInFile.reset();
            s = buffer.toString();
          else
            myErrorFlags |= EOF;
        catch (IOException e)
          if (myFileName != null)
            System.err.println("Error reading " + myFileName + "\n");
          myErrorFlags |= READERROR;
        return s;
       *  Reads the next integer (without validating its format)
       *  @return the integer read or 0 if trying to read beyond the EOF
      public int readInt()
        String s = readWord();
        if (s != null)
          return Integer.parseInt(s);
        else
          return 0;
       *  Reads the next double (without validating its format)
       *  @return the number read or 0 if trying to read beyond the EOF
      public double readDouble()
        String s = readWord();
        if (s != null)
          return Double.parseDouble(s);
          // in Java 1, use: return Double.valueOf(s).doubleValue();
        else
          return 0.0;
    }same with this:
    public class p
         public static void l(String S)
          { System.out.println(S);}
         public static void o(String S)
          {System.out.print(S);}
         public static void l(int i)
          { System.out.println(i);}
         public static void o(int i)
          {System.out.print(i);}
         public static void l(boolean b)
          { System.out.println(b);}
         public static void o(boolean b)
          {System.out.print(b);}
        public static void l(char c)
          { System.out.println(c);}
         public static void o(char c)
          {System.out.print(c);}     
         public static void l(double d)
          { System.out.println(d);}
         public static void o(double d)
          {System.out.print(d);} 
        public static void l(Object obj)
          { System.out.println(obj.toString());}
         public static void o(Object obj)
          {System.out.print(obj.toString());}
         public static void l()
          {System.out.println();}
    }       here's my code:
    import java.util.*;
    public class JMM_Pig
         public static void main(String[] args)
              int winner=0;
              int pts=0;
                   JMM_Dice player1=new JMM_Dice();
                   JMM_Dice player2=new JMM_Dice();
                   p.l("Player 1 rolls the dice...");
                   player1.rollDice();
                   player1.updateTotals();
                   boolean loop=true;
                   while(loop)
                   while(player1.numVowels()<=4)
                        p.l("Player 1 continues his turn...");
                        player1.rollDice();
                        player1.updateTotals();
                        p.l("Player 1 rolled a "+player1.getDie1()+" and a "+player1.getDie2()+" and a '"+player1.getDie3()+"' and a '"+player1.getDie4()+"'");
                        p.l("Player 1 rolled "+player1.currvowels()+" vowels.");
                        p.l("Player 1 has "+player1.totalvowels()+" total vowels.");
                        //if(player1.getMagic()==1)
                        //player1.totalPoints=(player1.totalPoints+player1.getDie1()+player1.getDie2())*player1.mult;
                        //pts=(player1.totalPts()+player1.getDie1()+player1.getDie2())*player1.getMult();
                        //player1.setTpts(pts);
                        //if(player1.getMagic()!=1)
                             //player1.totalPoints=player1.totalPoints+player1.getDie1()+player1.getDie2();
                        //pts=player1.totalPts()+player1.getDie1()+player1.getDie2();
                        //player1.setTpts(pts);
                        p.l("Player 1 has "+player1.numSnakes()+" snake eyes.");
                        p.l("Player 1 earned "+player1.ptsreturn()+" points this turn.");
                        p.l("Player 1 has "+player1.totalPts()+" total points.");
                        pts=0;
                        if(player1.totalPts()>=2000)
                             winner=1;
                             player1.setNv(4);loop=false;
                        if((player1.isavowel(player1.getadice()))&&player1.isavowel(player1.getadice2()))
                             player1.setTpts(0);player1.setNv(0);player1.setNv(4);
                   p.l("Player 1's turn has ended...");
                   player1.setNv(0);
                   p.l("Player 2 rolls the dice...");
                   player2.rollDice();
                   player2.setTpts(player2.totalPts()+player2.getDie1()+player2.getDie2());
                   while(player2.numVowels()<=4)
                        p.l("Player 2 continues his turn...");
                        player2.rollDice();
                        player2.updateTotals();
                        p.l("Player 2 rolled a "+player2.getDie1()+" and a "+player2.getDie2()+" and a '"+player2.getDie3()+"' and a '"+player2.getDie4()+"'");
                        p.l("Player 2 rolled "+player2.currvowels()+" vowels.");
                        p.l("Player 2 has "+player2.totalvowels()+" total vowels.");
                        //if(player1.getMagic()==1)
                        //player1.totalPoints=(player1.totalPoints+player1.getDie1()+player1.getDie2())*player1.mult;
                        //pts=(player1.totalPts()+player1.getDie1()+player1.getDie2())*player1.getMult();
                        //player1.setTpts(pts);
                        //if(player1.getMagic()!=1)
                             //player1.totalPoints=player1.totalPoints+player1.getDie1()+player1.getDie2();
                        //pts=player1.totalPts()+player1.getDie1()+player1.getDie2();
                        //player1.setTpts(pts);
                        p.l("Player 2 has "+player2.numSnakes()+" snake eyes.");
                        p.l("Player 2 earned "+player2.ptsreturn()+" points this turn.");
                        p.l("Player 2 has "+player2.totalPts()+" total points.");
                        pts=0;
                        if(player2.totalPts()>=2000)
                             winner=2;
                             player2.setNv(4);loop=false;
                        if((player2.isavowel(player2.getadice()))&&player2.isavowel(player2.getadice2()))
                             player2.setTpts(0);player2.setNv(0);player2.setNv(4);
                   p.l("Player 2's turn has ended...");
                   player2.setNv(0);
                   if(player1.totalPts()>=2000)
                        winner=1;
                        loop=false;
                   if(player2.totalPts()>=2000)
                        winner=2;
                        loop=false;
                   }  //main loop
                   if(winner==1)
                        p.l("It ended with the following statistics...");
                        p.l("Player 1's score was: "+player1.totalPts()+" and Player 2's score was: "+player2.totalPts());
                        p.l("Player 1 had: "+player1.numSnakes()+" snake eye(s) and Player 2 had: "+player2.numSnakes()+" snake eye(s)");
                        p.l("Player 1 wins, oink oink!");
                   if(winner==2)
                        p.l("It ended with the following statistics...");
                        p.l("Player 1's score was: "+player1.totalPts()+" and Player 2's score was: "+player2.totalPts());
                        p.l("Player 1 had: "+player1.numSnakes()+" snake eye(s) and Player 2 had: "+player2.numSnakes()+" snake eye(s)");
                        p.l("Player 2 wins, oink oink!");
    and dice class:
    import java.util.*;
    public class JMM_Dice {
         private static Random gen = new Random();
        private final static int NUM_SIDES = 21;
        private int die1, die2, numSnakeEyes, numVowels, totalPoints;
        private char die3, die4;
        private int dice=0;
           //dice=
           private int dice2=0;
           //dice2=;
           private String adice="";
           //adice=;
           private String adice2="";
           //adice2;
           private int magic=0;
           private int mult=0;
           private int currvowels=0;
           private int totalvowels=0;
      public static EasyReader key = new EasyReader();
      public JMM_Dice()
          dice=0;dice2=0;
           String alpha="abcdefghijklmnopqrstuvwxyz";
          adice="";adice2="";
           rollDice();
           numSnakeEyes=0;numVowels=0;totalPoints=0;
      public void setTpts(int tpts)
           this.totalPoints=tpts;
      public void setNv(int nv)
           this.numVowels=nv;
      public int getDie1()
           return dice;
      public int getDie2()
           return dice2;
      public String getDie3()
           return adice;
      public String getDie4()
           return adice2;
      public int numSnakes()
           return numSnakeEyes;
      public void setSnakes(int s)
           this.numSnakeEyes=s;
      public String getadice()
           return this.adice;
      public String getadice2()
           return this.adice2;
      public int numVowels()
           return numVowels;
      public int getMagic()
           return this.magic;
      public int getNv()
           return this.numVowels;
      public void setMagic(int mag)
           this.magic=mag;
      public int getMult()
           return this.mult;
      public void setMult(int m)
           this.mult=m;
      public int totalPts()
           return totalPoints;
      public String toString()
           return dice+""+dice2+""+adice+""+adice2;
      public boolean isavowel(String str)
           if(str.equals("a")||str.equals("e")||str.equals("i")||str.equals("o")||str.equals("u"))
                return true;
           else
                return false;
      public int ptsreturn()
           return dice+dice2;
      public int currvowels()
           int tmp=currvowels;
           currvowels=0;
           return tmp;
      public int totalvowels()
           return numVowels;
      public void updateTotals()
           if(adice.equalsIgnoreCase("a")||adice.equalsIgnoreCase("e")||adice.equalsIgnoreCase("i")||adice.equalsIgnoreCase("o")||adice.equalsIgnoreCase("u")||adice2.equalsIgnoreCase("a")||adice2.equalsIgnoreCase("e")||adice2.equalsIgnoreCase("i")||adice2.equalsIgnoreCase("o")||adice2.equalsIgnoreCase("u"))
                numVowels++;currvowels++;
           if((isavowel(adice))&&isavowel(adice2))
                totalPoints=0;numVowels=0;
           if(dice==1||dice2==1)
                numSnakeEyes++;
           int fd=dice;
           int sd=dice2;
           int sum=fd+sd;
           totalPoints+=sum*(numSnakeEyes+1);
      public void rollDice()
           dice=gen.nextInt(20)+1;
           dice2=gen.nextInt(20)+1;
           String alpha="abcdefghijklmnopqrstuvwxyz";
           adice=String.valueOf(alpha.charAt(gen.nextInt(26)));
           adice2=String.valueOf(alpha.charAt(gen.nextInt(26)));
      public static void sleep (int wait)
      {     long timeToQuit = System.currentTimeMillis() + wait;
           while (System.currentTimeMillis() < timeToQuit)
                ;   // take no action
    }the program works fine except it's supposed to terminate when one of the two AIs get a score of 2000, right now it terminates no matter what score the AIs get and no matter what I've tried to do it keeps doing that...can someone please tell me why it's terminating so oddly? Thanks! :)

    Here's how my code works in a nutshell, the main program starts with the boolean loop=true;
                   while(loop)
                   {then comes the loops for the two AIs, first the player 1 AI goes with this loop: while(player1.numVowels()<=4)
                   {there the player 1 roles the dice and it keeps going until player 1 gets a total of 2000 points at which time this is supposed to execute: if(player1.totalPts()>=2000)
                             winner=1;
                             player1.setNv(4);loop=false;
                        }, player1.setNv(4); sets numVowels to 4 so that the inner loop exits, loop=false exits the other loop and winner=1; specifies that player 1 won which is used outside of the loops here: if(winner==1)
                        p.l("It ended with the following statistics...");
                        p.l("Player 1's score was: "+player1.totalPts()+" and Player 2's score was: "+player2.totalPts());
                        p.l("Player 1 had: "+player1.numSnakes()+" snake eye(s) and Player 2 had: "+player2.numSnakes()+" snake eye(s)");
                        p.l("Player 1 wins, oink oink!");
                   if(winner==2)
                        p.l("It ended with the following statistics...");
                        p.l("Player 1's score was: "+player1.totalPts()+" and Player 2's score was: "+player2.totalPts());
                        p.l("Player 1 had: "+player1.numSnakes()+" snake eye(s) and Player 2 had: "+player2.numSnakes()+" snake eye(s)");
                        p.l("Player 2 wins, oink oink!");
                   } the same thing happens for player 2 if player 1 didn't already get 2000 points...but the if statement despite everything pointing to the variables containing the right values don't seem to be working, as shown by the example program output I posted it just ends at any random number...hopefully this helps make figuring out what's wrong easier :) ...so can anyone please help me out? thanks! :)

Maybe you are looking for

  • Custom cursor using startDrag

    Hello everyone, I have a movieclip following my mouse to act as a custom cursor. I am using startDrag on the movie clip and mouse.hide() What I am trying to resolve is the following: I have several hidden simple button objects in the background of my

  • Workflow Wizard (JDev) an BPEL 10.1.2.0.2 midtier install

    Hi, I have a RHEL4 based AS environment set up for BPEL as follows: 1. Infrastructure install of AS 10.1.2.0.2 2. Midtier install of AS 10.1.2.0.2 3. BPEL Midtier install into (2) and configured to use OID for LDAP and Metdata Repos for dehydration 4

  • Using a dongle with hotspots

    Cna you use the dongle when out and about with hotspots? do you have to log in differently? i.e. other than email and password. Does a dongle help with the connection?

  • Safari problem with acrobat reader

    When I click on pdf files to view them in Safari the page shows up in black. What can I do to get the page to pop up?

  • JAXB xsd error

    I am trying to create JAXB project. I have a schema file for a XML. I am getting several errors in the schema (xsd) file because of the way the xml structure. One of my xml file elemnets is as follows. <m:properties>     <d:Id m:type="Edm.Int32">19</