Scanner program "unstable"

i used to have a PC - bought a mac last week b/c my pc crashed totally. i have a hp all in one scanner/printer. the printer works fine with mac, but can't get scanner to work. downloaded driver from HP and when i try to scan something it says "program unstable" please shut down. hp won't help me because i am out of warranty. anyone have any probs like this? solution?

You don't provide any info about the all-in-one so we are at a loss to offer more assistance that a proven Mac scanner app. Without the model of the HP device we have no way of knowing if the software provided by HP is Intel compatible. This has been the experience of many folks with all-in-one devices. The printer works OK, but the scanner doesn't.
Apple does its best to provide up-to-date device drivers, but ultimately it is HPs responsibility to develop and provide them.

Similar Messages

  • Lack of scanner programs for command line with pdf support

    I cant seam to find a cli scanner program capable of scanning multiple pages and save it as pdf. Am I blind and stupid? Is there really no options for scanning from commandline?
    I rather be wrong and stupid right now!

    Nope I have an Canon mp190. But thanks for the tip anyways

  • Epson Scanner program won't open

    Hi all,
    This is the one time out of many I have had problems with my Epson Perfection 4490 Photo scanner. Whenever I use any of the four buttons on the from (Scan, Print, Email, or Scan as PDF), the EScanAssist program opens, then the EPSON Scan program opens. However, the window for scanning doesn't open, and when I right-click the program, I find it is no longer responding.
    I've read about clearing out old files that corrupted the program or something similar, and did this about two or three months ago. Will I need to redo this procedure, or is there a more common, permanent fix I can do? I'm willing to try anything at this point, so any help is appreicated. If you need more information, please just ask!
    Thanks!
    - Justin
    Extra Information:
    Scanner:
    Epson Perfection 4490 Photo
    Using Apple Software Update, I most likely have most recent driversI've updated them since I originally cleared out the files
    Computer:
    iMac (7,1) with Intel Core 2 Duo Processor
    Running most recent Snow Leopard (10.6.8)
    If you need anything else, just ask.

    I just used this article from before, and I was able to scan again. I ran Software Updater, and it said everything was good, so I guess I never updated my drivers.
    Is there a permanent fix to this? If there is, please let me know, as I would appreciate having to not do this again. Thanks!

  • Scanner program for warehouse cycle count inventory

    Hello Expert,
    We have Handling unit management, Warehouse. We are using standard SAP cycle count procedure to count bins and to carry out physical inventory.
    We would like to use scanner/ RF to carry out physical inventory to reduce time and efforts.
    Can you please provide me some detail about different programs that are already available for warehouse cycle counts?
    I would like to know which program would be ideal for us to use to replace our manual cycle counts.
    Please provide all possible detail
    Thank you very much for your help.
    Regards,
    NEal

    If you start here:
    Mobile Data Entry (LE-MOB) - SAP Library
    and go through the inventory counting menu it will explain in great detail the available options.
    As per standard LM58 can be used for system guided and LM60 can be used for user initiated counting process.
    There is a great deal of information about creating and assigning inventory count documents,counting, recounting and clearing of differences that is easy to find please make some effort to search for such information before posting.

  • 10.4.8 - suddenly my scanner program "Vuescan" won't start up

    I have and Epson Expression 836XL (large format, flatbed scanner) and have been using it for over 2 years with no problems. I use Hamrick's Vuescan to run it since Epson refused to update drivers for this older model scanner. I was using it on the day that the 10.4.8 update came out with no problems whatsoever. Then I installed the update, restarted at least 4 or 5 times, and ever since the update Vuescan won't start. I click on the program's icon, I get the little start up window for the program and then I get the spinning rainbow wheel of death.
    I have repaired all permissions on all of my hard drives, verified them all, and still no change. The scanner connects to the mac via a scsi to firewire converter. Could this have something to do with it? My instinct is to say no since it's the program itself that is getting hung. I would think that might be it if the program started and then didn't recongnize the scanner, but that's not the case. Has anyone else experienced anything similar? By the way, I'm NOT on an intel based mac.
    You gotta love updates!!!

    I installed the recent software update 10.4.8 through the software update mode. Previously I was using Photoshop Elements 3 to scan items with my Epson 2450 Precision Photo FireWire scanner-- and had absolutely no problem with my scanner accessing it through PhotoShop Elements 3 when using Mac OS 10.4.7.
    Now I can not scan a thing. I go to Photoshop Elements and when I import a Twain or Epson 25450 Scan, Photoshop Elements 3 can not find the scanner.
    I worked with the Epson People at a charge and now they tell me that there is something wrong with the scanner. The green LED keeps on blinking when I turn the power switch on and it should stop after a while indicating the scanner is ready to scan.
    I have removed and reinstalled the scanner software several times and even removed it from my Mac OS 9 system--just in case that was the issue.
    I am really frustrated now--
    I called AppleCare and they told me they do not support issues with upgrades.
    I think there is indeed something wrong here.
    Any suggestions.
    POWER MAC G-4 (933 MHz QuickSilver)   Mac OS X (10.4.5)   iSite
    POWER MAC G-4 (933 MHz QuickSilver)   Mac OS X (10.4.5)   iSite

  • Scanner program error

    I get the following error during the scan of a document that is a picture 'there was an error in the scanning software'.
    Is suggested restar the program, restart  PC and reinstall the HP software.
    I've done all the suggested actions but without positive results.
    If I make a copy directly from the scanner resulting print everything works properly (the copy is printed).
    What could be the problem ??
    Thanks for the support
    Maurizio

    Hi Waterboy71,
    I made all attempts at solution suggested in the link you sent me, but without any positive results !!!! if you do not start the program "hp solution center" and I perform the scan of a document from the printer operation, the scan is performed perfectly and the file saved in the PC. It seems to me that there must be some problem in the program that handles the scan (the part that allows you to add, remove and manage the various pages of a scanned document).
    The following are details of the error message that appears in the pop-up:
    There was an error in the scanning software. Try one of the following. After each operation, scan again.
    - Restart the program
    - Restart the computer
    - Reinstall the HP Photosmart came with the device.
    Hidden information error: 4, (3,42,0)
    The only alternative I see, if I do not find a solution to this problem, is to install any program (not hp) which allows me to manage a multi-page document. Hoping that it works well and does not give me other problems.
    Do you have other suggestions for me?
    Many thanks!!!
    Ciao Maurizio

  • CS6 Programs unstable Frequent crashes in the Apps

    Just purchased the Creative Cloud subscription and unless I run all the programs in Admin mode I get ferquent crashes.
    Dynamic Link does not work in Premiere and I cannot even import a PSD file into Premiere unless I start the program in Admin mode.
    Is their a fix?
    eg When importing a PSD file into Premiere I get " Adobe Media Core CS6 has stopped working" "APPCRASH  PhotoshopServer.exe "
    When sending a Premiere Sequence to Encore using Dynamic Link "Adobe Encore has stopped working" "APPCRASH Encore.exe"
    Never had these issues with CS5 Master Suite.
    Message was edited by: Roy Hessey

    As I said earlier such issues come up because of permissions , may be your CS5 files and folders have the correct permission however CS6 files and folders don't.
    As you have Windows 7 , you may try to uninstall your CS6 , log in with the Hidden Admin account and then install the software.
    To know the steps to unhide the hidden admin account check this link :- http://www.howtogeek.com/howto/windows-vista/enable-the-hidden-administrator-account-on-wi ndows-vista/
    Once you have installed the software in Admin account , login back in your normal standard account and then check.

  • Inventory Program Pt 2 - I have most of it, but I can't get it finished.

    Hello. I am currently stumped. I am already a day late with this assignment and I cannot figure out the logic to use to calculate the overall value of the entire inventory. I'm pasting my code here in the hopes that someone can tell me what it is I'm not thinking of. I also need to do a bubblesort to display the inventory sorted by name of the computer game listed; with several arrays, I don't know how I'm going to keep the related information together. Please help!
    /*                       Inventory Program Part 2
    Modify the Inventory Program so the application can handle multiple items. Use an
    array to store the items. The output should display the information one product
    at a time, including the item number, the name of the product, the number of units
    in stock, the price of each unit, and the value of the inventory of that product.
    In addition, the output should display the value of the entire inventory.
    Create a method to calculate the value of the entire inventory.
    Create another method to sort the array items by the name of the product.   */
    package InventoryPart2; // Comment out later
    import java.util.Scanner; // Program uses class Scanner to accept user input
    public class InventoryPt2 // Main method begins execution of Java application
         public static void main (String args [])
            // create Scanner to obtain input from command window
              Scanner input = new Scanner( System.in );
            computerGame gameInfo = new computerGame(); // Instantiates the computerGame object
            invValue inventoryValue = new invValue(); // Instantiates the invValue object
            // Initialize arrays for storage of inventory information
            // Need to perform bubble sort on each array in an index-controlled loop
            String gameNumber[] = new String[100];
            String gameName[] = new String[100];
            int gameStock[] = new int[100];
            double gamePrice[] = new double[100];
            double gameStockVal[] = new double[100];
            // Show Program Welcome Message
         System.out.println(); // White space
         System.out.println( "Welcome to the Computer Game Inventory Program!!!");
            System.out.println();
            System.out.println( "      Copyright 2009 by Some Guy");
            System.out.println(); // White space
         System.out.println(); // White space, again
              // Prompt for the number of games
              System.out.print( "How many different computer games are you entering? "); // Prompt for input
              int maxCount = input.nextInt(); // Read input
              input.nextLine(); // Clear-out
            int counter = 0;
            do // Begin a loop to collect information about each game entered
            System.out.println();
            System.out.print( "Please enter an item ID number: ");
            gameInfo.setNumber(input.next());
            gameNumber[counter] = gameInfo.getNumber();
            System.out.println();
            System.out.print( "Please enter a name for the game: ");
            gameInfo.setName(input.next());
            gameName[counter] = gameInfo.getName();
            System.out.println();
            System.out.print( "Please enter the number on-hand: ");
            gameInfo.setStock(input.nextInt());
            gameStock[counter] = gameInfo.getStock();
            System.out.println();
            System.out.print( "Please enter the price of this game: $");
            gameInfo.setPrice(input.nextDouble());
            gamePrice[counter] = gameInfo.getPrice();
            System.out.println();
            gameStockVal[counter] = gameInfo.thisItemVal();
            counter = counter + 1;
            while ( counter < maxCount ); // End loop
            counter = 0;
            //double totalValue = 0 + gameStockVal[counter];
            do
            System.out.println( "          Item number: " + gameNumber[counter] );
            System.out.println( "            Game name: " + gameName[counter] );
            System.out.println( "      Number in stock: " + gameStock[counter] );
            System.out.print  ( "           Price each: $" );
            System.out.printf( "%1.2f", gamePrice[counter] );
            System.out.println();
            System.out.print  ( "Total value this item: $" );
            System.out.printf( "%1.2f", gameStockVal[counter] );
            System.out.println();
            System.out.println();
            counter = counter + 1;
            while ( counter < maxCount );
            System.out.print( "The total value of all inventory is: $" );
            System.out.printf ( "%1.2f", ??? );
            System.out.println();
            System.out.println();
        } // End main method
    } // End class InventoryPt2
    class computerGame
        private String number; // Declaration of variables
        private String name;
        private int stock;
        private double price;
       public computerGame() // Default constructor
            number = "";
            name = "";
            stock = 0;
            price = 0.00;
        // Parameterized constructor
        public computerGame( String number, String name, int stock, double price )
            this.number = number;
            this.name = name;
            this.stock = stock;
            this.price = price;
        public void setNumber ( String number ) // Method to store and return the game's ID number
                this.number = number;
            String getNumber()
                return number;
        public void setName ( String name ) // Method to store and return the game's name
                this.name = name;
            String getName()
                return name;
        public void setStock ( int stock ) // Method to store and return how many of a game are in stock
                this.stock = stock;
            int getStock()
                return stock;
        public void setPrice ( double price ) // Method to store and return a game's price
                this.price = price;
            double getPrice()
                return price;
        public double thisItemVal()
                return ( stock * price );
    class invValue
        double totalValue;
        public invValue() // Default constructor
            totalValue = 0.00;
        public invValue( double totalValue ) // Parameterized constructor
            this.totalValue = totalValue;
        public void setValue ( double totalValue )
            this.totalValue = totalValue;
        public double getValue()
            return totalValue;
    }

    This is a place to ask questions, not a place for others to complete your homework. Accept the grade and learn from your mistake/s. Gl with the future.
    Mel

  • Can't get Scanner to work.

    I have an PH PSC 1610 which is a scanner and printer. Printing works great, but can't get the scanner funtion to work. Downloaded the HP OSX drivers, but nothing happens after running the intallation. All scanner programs iLife and HP's say no scanning device found. Not sure where to look. I would if were a PC, but I'm new to macs.
    Thanks!

    Did you download and install the universal binary software? If not then that's your problem. You must use the universal binary software on an Intel Mac.
    You can also try using Vuescan which does support your scanner model.
    Why reward points?(Quoted from Discussions Terms of Use.)
    The reward system helps to increase community participation. When a community member gives you (or another member) a reward for providing helpful advice or a solution to their question, your accumulated points will increase your status level within the community.
    Members may reward you with 5 points if they deem that your reply is helpful and 10 points if you post a solution to their issue. Likewise, when you mark a reply as Helpful or Solved in your own created topic, you will be awarding the respondent with the same point values.

  • Help with Payroll program

    Hello I need help with the following code for a Payroll program.
    //CheckPoint: Payroll Program Part 3
    //Java Programming IT215
    //Arianne Gallegos
    //05/02/2007
    //Payroll3.java
    //Payroll program that calculates the weekly pay for an employee.
    import java.util.Scanner; // program uses class Scanner
    public class Payroll3
         private string name;
         private double rate;
         private double hours;
         // Constructor to store Employee Data
         public EmployeeData( String nameOfEmployee, double hourlyRate, double hoursWorked )
              name = nameOfEmployee;
              rate = hourlyRate;
              hours = hoursWorked;
         } // end constructor
    } //end class EmployeeData
       // main method begins execution of java application
       public static void main( String args[] )
          System.out.println( "Welcome to the Payroll Program! " );
          boolean quit = false; // This flag will control whether we exit the loop below
          // Loop until user types "quit" as the employee name:
          while (!quit)
           // create scanner to obtain input from command window
            Scanner input = new Scanner ( System.in );
            System.out.println();  // outputs a blank line
            System.out.print( "Please enter the employee name or quit to terminate program: " );
            // prompt for and input employee name
            String nameOfEmployee = input.nextLine(); // read what user has inputted
            if ( nameOfEmployee.equals("quit")) // Check whether user indicated to quit program
              System.out.println( "Program has ended" );
              quit = true;
    else
              // User did not indicate to stop, so continue reading info for this iteration:
              float hourlyRate; // first number to multiply
              float hoursWorked; // second number to multiply
              float product; // product of hourlyRate and hoursWorked
              System.out.print( "Enter hourly rate: " ); // prompt
              hourlyRate = input.nextFloat(); // read first number from user
              while (hourlyRate <= 0) // prompt until a positive value is entered
                 System.out.print( "Hourly rate must be a positive value. " +
                   "Please enter the hourly rate again: " ); // prompt for positive value for hourly rate
                  hourlyRate = input.nextFloat(); // read first number again
              System.out.print( "Enter hours worked: " ); // prompt
              hoursWorked = input.nextFloat(); // read second number from user
              while (hoursWorked <= 0) // prompt until a positive value is entered
                 System.out.print( "Hours worked must be a positive value. " +
                   "Please enter the hours worked again: " ); // prompt for positive value for hours worked
                  hoursWorked = input.nextFloat(); // read second number again
              product = (float) hourlyRate * hoursWorked; // multiply the hourly rate by the hours worked
              // Display output for this iteration
              System.out.println(); // outputs a blank line
              System.out.print( nameOfEmployee ); // display employee name
              System.out.printf( "'s weekly pay is: $%,.2f\n", product);  // display product
              System.out.println(); // outputs a blank line
          // Display ending message:
          System.out.println( "Thank you for using the Payroll program!" );
          System.out.println(); // outputs a blank line
       } // end method main
    } // end class Payroll3I am getting the following errors:
    Payroll3.java:18: invalid method declaration; return type required
    public EmployeeData( String nameOfEmployee, double hourlyRate, double hours
    Worked )
    ^
    Payroll3.java:28: class, interface, or enum expected
    public static void main( String args[] )
    ^
    Payroll3.java:33: class, interface, or enum expected
    boolean quit = false; // This flag will control whether we exit the loop b
    elow
    ^
    Payroll3.java:36: class, interface, or enum expected
    while (!quit)
    ^
    Payroll3.java:42: class, interface, or enum expected
    System.out.println(); // outputs a blank line
    ^
    Payroll3.java:43: class, interface, or enum expected
    System.out.print( "Please enter the employee name or quit to terminate p
    rogram: " );
    ^
    Payroll3.java:45: class, interface, or enum expected
    String nameOfEmployee = input.nextLine(); // read what user has inputted
    ^
    Payroll3.java:48: class, interface, or enum expected
    if ( nameOfEmployee.equals("quit")) // Check whether user indicated to q
    uit program
    ^
    Payroll3.java:51: class, interface, or enum expected
    quit = true;
    ^
    Payroll3.java:52: class, interface, or enum expected
    ^
    Payroll3.java:57: class, interface, or enum expected
    float hoursWorked; // second number to multiply
    ^
    Payroll3.java:58: class, interface, or enum expected
    float product; // product of hourlyRate and hoursWorked
    ^
    Payroll3.java:60: class, interface, or enum expected
    System.out.print( "Enter hourly rate: " ); // prompt
    ^
    Payroll3.java:61: class, interface, or enum expected
    hourlyRate = input.nextFloat(); // read first number from user
    ^
    Payroll3.java:64: class, interface, or enum expected
    while (hourlyRate <= 0) // prompt until a positive value is entered
    ^
    Payroll3.java:68: class, interface, or enum expected
    hourlyRate = input.nextFloat(); // read first number again
    ^
    Payroll3.java:69: class, interface, or enum expected
    ^
    Payroll3.java:72: class, interface, or enum expected
    hoursWorked = input.nextFloat(); // read second number from user
    ^
    Payroll3.java:75: class, interface, or enum expected
    while (hoursWorked <= 0) // prompt until a positive value is entered
    ^
    Payroll3.java:79: class, interface, or enum expected
    hoursWorked = input.nextFloat(); // read second number again
    ^
    Payroll3.java:80: class, interface, or enum expected
    ^
    Payroll3.java:86: class, interface, or enum expected
    System.out.println(); // outputs a blank line
    ^
    Payroll3.java:87: class, interface, or enum expected
    System.out.print( nameOfEmployee ); // display employee name
    ^
    Payroll3.java:88: class, interface, or enum expected
    System.out.printf( "'s weekly pay is: $%,.2f\n", product); // display
    product
    ^
    Payroll3.java:89: class, interface, or enum expected
    System.out.println(); // outputs a blank line
    ^
    Payroll3.java:91: class, interface, or enum expected
    ^
    Payroll3.java:96: class, interface, or enum expected
    System.out.println(); // outputs a blank line
    ^
    Payroll3.java:98: class, interface, or enum expected
    } // end method main
    ^
    The problem I am having is getting the constructor to work with the rest of the program can someone please point out to me how to correct this. I have read my textbook as well as tutorials but I just don't seem to get it right. Please help.
    P.S. I have never taken a programming class before so please be kind.

    Ok, I changed the name of the constructor:
    //CheckPoint: Payroll Program Part 3
    //Java Programming IT215
    //Arianne Gallegos
    //04/23/2007
    //Payroll3.java
    //Payroll program that calculates the weekly pay for an employee.
    import java.util.Scanner; // program uses class Scanner
    public class Payroll3
         private string name;
         private float rate;
         private float hours;
         // Constructor to store Employee Data
         public void Payroll3( string nameOfEmployee, float hourlyRate, float hoursWorked )
              name = nameOfEmployee;
              rate = hourlyRate;
              hours = hoursWorked;
         } // end constructor
    } //end class EmployeeData
       // main method begins execution of java application
       public static void main( String args[] )
          System.out.println( "Welcome to the Payroll Program! " );
          boolean quit = false; // This flag will control whether we exit the loop below
          // Loop until user types "quit" as the employee name:
          while (!quit)
           // create scanner to obtain input from command window
            Scanner input = new Scanner ( System.in );
            System.out.println();  // outputs a blank line
            System.out.print( "Please enter the employee name or quit to terminate program: " );
            // prompt for and input employee name
            String nameOfEmployee = input.nextLine(); // read what user has inputted
            if ( nameOfEmployee.equals("quit")) // Check whether user indicated to quit program
              System.out.println( "Program has ended" );
              quit = true;
    else
              // User did not indicate to stop, so continue reading info for this iteration:
              float hourlyRate; // first number to multiply
              float hoursWorked; // second number to multiply
              float product; // product of hourlyRate and hoursWorked
              System.out.print( "Enter hourly rate: " ); // prompt
              hourlyRate = input.nextFloat(); // read first number from user
              while (hourlyRate <= 0) // prompt until a positive value is entered
                 System.out.print( "Hourly rate must be a positive value. " +
                   "Please enter the hourly rate again: " ); // prompt for positive value for hourly rate
                  hourlyRate = input.nextFloat(); // read first number again
              System.out.print( "Enter hours worked: " ); // prompt
              hoursWorked = input.nextFloat(); // read second number from user
              while (hoursWorked <= 0) // prompt until a positive value is entered
                 System.out.print( "Hours worked must be a positive value. " +
                   "Please enter the hours worked again: " ); // prompt for positive value for hours worked
                  hoursWorked = input.nextFloat(); // read second number again
              product = (float) hourlyRate * hoursWorked; // multiply the hourly rate by the hours worked
              // Display output for this iteration
              System.out.println(); // outputs a blank line
              System.out.print( nameOfEmployee ); // display employee name
              System.out.printf( "'s weekly pay is: $%,.2f\n", product);  // display product
              System.out.println(); // outputs a blank line
          // Display ending message:
          System.out.println( "Thank you for using the Payroll program!" );
          System.out.println(); // outputs a blank line
       } // end method main
    } // end class Payroll3I still get the following error codes:
    C:\IT215\Payroll3>javac Payroll3.java
    Payroll3.java:28: class, interface, or enum expected
    public static void main( String args[] )
    ^
    Payroll3.java:33: class, interface, or enum expected
    boolean quit = false; // This flag will control whether we exit the loop b
    elow
    ^
    Payroll3.java:36: class, interface, or enum expected
    while (!quit)
    ^
    Payroll3.java:42: class, interface, or enum expected
    System.out.println(); // outputs a blank line
    ^
    Payroll3.java:43: class, interface, or enum expected
    System.out.print( "Please enter the employee name or quit to terminate p
    rogram: " );
    ^
    Payroll3.java:45: class, interface, or enum expected
    String nameOfEmployee = input.nextLine(); // read what user has inputted
    ^
    Payroll3.java:48: class, interface, or enum expected
    if ( nameOfEmployee.equals("quit")) // Check whether user indicated to q
    uit program
    ^
    Payroll3.java:51: class, interface, or enum expected
    quit = true;
    ^
    Payroll3.java:52: class, interface, or enum expected
    ^
    Payroll3.java:57: class, interface, or enum expected
    float hoursWorked; // second number to multiply
    ^
    Payroll3.java:58: class, interface, or enum expected
    float product; // product of hourlyRate and hoursWorked
    ^
    Payroll3.java:60: class, interface, or enum expected
    System.out.print( "Enter hourly rate: " ); // prompt
    ^
    Payroll3.java:61: class, interface, or enum expected
    hourlyRate = input.nextFloat(); // read first number from user
    ^
    Payroll3.java:64: class, interface, or enum expected
    while (hourlyRate <= 0) // prompt until a positive value is entered
    ^
    Payroll3.java:68: class, interface, or enum expected
    hourlyRate = input.nextFloat(); // read first number again
    ^
    Payroll3.java:69: class, interface, or enum expected
    ^
    Payroll3.java:72: class, interface, or enum expected
    hoursWorked = input.nextFloat(); // read second number from user
    ^
    Payroll3.java:75: class, interface, or enum expected
    while (hoursWorked <= 0) // prompt until a positive value is entered
    ^
    Payroll3.java:79: class, interface, or enum expected
    hoursWorked = input.nextFloat(); // read second number again
    ^
    Payroll3.java:80: class, interface, or enum expected
    ^
    Payroll3.java:86: class, interface, or enum expected
    System.out.println(); // outputs a blank line
    ^
    Payroll3.java:87: class, interface, or enum expected
    System.out.print( nameOfEmployee ); // display employee name
    ^
    Payroll3.java:88: class, interface, or enum expected
    System.out.printf( "'s weekly pay is: $%,.2f\n", product); // display
    product
    ^
    Payroll3.java:89: class, interface, or enum expected
    System.out.println(); // outputs a blank line
    ^
    Payroll3.java:91: class, interface, or enum expected
    ^
    Payroll3.java:96: class, interface, or enum expected
    System.out.println(); // outputs a blank line
    ^
    Payroll3.java:98: class, interface, or enum expected
    } // end method main
    ^
    27 errors
    Any other suggestions?

  • Help with Inventory Program

    Hello,
    I am new to Java programming and I need some assistance in trying to complie my program correctly. I would greatly appreciate it.
    I have started my program, but keep getting the same two compile errors.
    C:\Program Files\Java\Product.java:91: illegal start of expression
    public InventoryPart1(String name, double number, double units, double price)
    ^
    C:\Program Files\Java\Product.java:113: class, interface, or enum expected
    }//end class InventoryPart1
    My assignment ask:
    Choose a product that lends itself to an inventory (for example, products at your workplace, office supplies, music CDs, DVD movies, or software).
    Create a product class that holds the item number, the name of the product, number of units in stock and the price of each unit.
    Create a Java application that displays the product number, the name of the product, number of units in stock, the price of each unit, and the value of inventory (the number of units multiplied by price of each unit). Pay attention to the good programming practices in the text to ensure your source code is readable and well documented.
    This is what I have so far.
    * Product.java
    * @author Amy Summers
    * A class created as a Product
    * which hold information with a constructor
    //Create and manipulate a Product class.
    import java.util.Scanner;//program uses Scanner
    class Product
    private String nameIn;
    private double numberIn;//item number
    private double unitsIn;//number of units in stock
    private double priceIn;//price of each unit
         //four-argument constructor
    public Product( String nameIn, double numberIn,
    double unitsIn, double priceIn )
    //implicit call to Object constructor occurs here
         nameIn = nameIn;
         numberIn = numberIn;
         unitsIn = unitsIn;
         priceIn = priceIn;
              }//end four-argument Product constructor
              // set product name
              public void setNameIn (String name)
    name = nameIn;
              }//end method setNameIn
              //return product name
              public String getNameIn()
         return nameIn;
              }//end method getNameIn
              // set number
              public void setNumberIn (double number)
              number = numberIn;
              }//end method setNumberIn
              //return number
              public double getNumberIn()
         return numberIn;
              }//end method getNumberIn
                   //set units
                   public void setUnitsIn ( double units)
                   units = unitsIn;
                   }//end method setUnitsIn
                   //return units
                   public double getUnitsIn()
                   return unitsIn;
                   }//end method getUnitsIn
                   //set price
                   public void setPriceIn (double price)
                   price = priceIn;
                   }//end method set priceIn
                   //return price
                   public double getPriceIn()
                   return priceIn;
                   }//end method getPriceIn               
    }//end class Product
    * InventoryPart1.java
    * @author Amy Summers
    public class InventoryPart1
         private String Productname;//product name for this
    InventoryPart1     
         //constructor initializes productName
         public InventoryPart1(String name, double number,
    double units, double price)
              Product myProduct1 = new Product
    ();//initializes productName
                   System.out.printf("%s%s\n", "Name",
                   getnameIn() );//display name
                   System.out.printf("%s%
    s\n", "Number",
                   getnumberIn() );//display number
                   System.out.printf("%s%s\n", "Units",
                   getunitsIn() );//display units
                   System.out.printf("$%.2f\n", "Price",
                   getpriceIn() );//display price
                   value = unitsIn * priceIn;//mulitple
    numbers
                   System.out.printf("$%.2f\n",
    value);//display inventory value
         }//end main method
    }//end class InventoryPart1

    * Product.java
    * @author Amy Summers
    * A class created as a Product
    * which hold information with a constructor
    //Create and manipulate a Product class.
    import java.util.Scanner;//program uses Scanner
    class Product
          private String nameIn;
          private double numberIn;//item number
          private double unitsIn;//number of units in stock
          private double priceIn;//price of each unit
           //four-argument constructor
        public Product( String nameIn, double numberIn, double unitsIn, double priceIn )
                //implicit call to Object constructor occurs here
                     nameIn = nameIn;
                     numberIn = numberIn;
                     unitsIn = unitsIn;
                     priceIn = priceIn;
                    }//end four-argument Product constructor
                    // set product name
                    public void setNameIn (String name)
                name = nameIn;
                   }//end method setNameIn
                   //return product name
                    public String getNameIn()
                    return nameIn;
                    }//end method getNameIn
                    // set number
                    public void setNumberIn (double number)
                  number = numberIn;
                    }//end method setNumberIn
                     //return number
                    public double getNumberIn()
                    return numberIn;
                   }//end method getNumberIn
                   //set units
                   public void setUnitsIn ( double units)
                   units = unitsIn;
                   }//end method setUnitsIn
                   //return units
                   public double getUnitsIn()
                   return unitsIn;
                   }//end method getUnitsIn
                   //set price
                   public void setPriceIn (double price)
                   price = priceIn;
                   }//end method set priceIn
                   //return price
                   public double getPriceIn()
                   return priceIn;
                   }//end method getPriceIn               
    }//end class Product
    * InventoryPart1.java
    * @author Amy Summers
    public class InventoryPart1
         private String Productname;//product name for this InventoryPart1     
         //constructor initializes productName
         public InventoryPart1(String name, double number, double units, double price)
              Product myProduct1 = new Product();//initializes productName
                   System.out.printf("%s%s\n", "Name",
                   getnameIn() );//display name
                   System.out.printf("%s%s\n", "Number",
                   getnumberIn() );//display number
                   System.out.printf("%s%s\n", "Units",
                   getunitsIn() );//display units
                   System.out.printf("$%.2f\n", "Price",
                   getpriceIn() );//display price
                   value = unitsIn * priceIn;//mulitple numbers
                   System.out.printf("$%.2f\n", value);//display inventory value
         }//end main method
    }//end class InventoryPart1Sorry about that.

  • F4200 All-in-One scanner suddenly not working

    I have been very happy with my HP Deskjet F4200 All-in-One printer/scanner.
    Suddenly today the scanner refuses to wrok.
    I get a report:
    ERROR
    The scan cannot be performed because another program has control of the HP imaging device.  Try the following steps.  After each step, try scanning again.
    - Restart the program.
    - Close all programs that may be using the device.
    - Reboot the computer.
    I do NOT have any other program open.  I closed the printer/scanner program, shut down the computer - but problaem remains.       What do I do now?
    Do I uninstall and reinstall??  Or something else??
    Please someone advise
    Ruth
    This question was solved.
    View Solution.

    Hi @Rufels 
    I would be happy to help you scan from your F4200 again. The following document addresses the very issue you have described; 'Another program has control of the scanner' Message Displays on the Computer When Scanning.
    I hope this helps.
    Please click the Thumbs up icon below to thank me for responding.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Sunshyn2005 - I work on behalf of HP

  • Need help with inventory program!!! someone please help me!!!

    Ok I have to write this inventory program for one of my classes.
    For part one i needed to Create a product class that holds the item number, the name of product, the number of units in stock, and the price of each unit.
    Then create a java application that displays all of the above info plus the total value of the inventory. I have done this so far with success.
    For part two i needed to modify the program so the application can handle multiple items. Use an array to store the items. The output should display the information one product at a time including the item number, the name of the product, the number of units in stock, the price per unit, and the value of the inventory of that product. In addition, the output should display the value of the entire inventory.
    so create a method to calculate the value of the entire inventory.(i did this)
    and create another method to sort the array items by the name of the product. ( i did this)
    The program compiles and runs fine except it is not doing anything from part two. It just does the same thing that it did when i wrote part one.
    Does anyone know why or what i need to do to my code.
    Here is my code.
    import java.util.Scanner; // program uses class Scanner
    import java.util.Arrays;
    class ProductList
      Product[] products = new Product[100]; // an array of 100 pruducts
      private void populate() {
        products[0] = new Product(0, "Good Luck Chuck"      , 25, 4.95);
        products[1] = new Product(1, "The Bourne Identity"  ,  3, 7.95);
        products[2] = new Product(2, "The Reaping"          ,  5, 8.99);
          products[3] = new Product(3, "Deja Vu"              ,  2,12.99);
          products[4] = new Product(4, "I Know Who Killed Me" ,  3,10.95);
      private void sortByTitle() {
      private void print() {
        for(int i=0; i<products.length; i++) {
          System.out.println(products);
    private void printTotalInventoryValue() {
    System.out.println("Total Inventory Value = "+calculateTotalInventoryValue());
    private double calculateTotalInventoryValue() {
    double total = 0D;
    for(int i=0; i<products.length; i++) {
    total += products[i].calculateInventoryValue();
    return total;
    public static void main( String args[] ) {
    ProductList list = new ProductList();
    list.populate();
    list.sortByTitle();
    list.print();
    list.printTotalInventoryValue();
    } class Product
    private int id;
    private String title;
    private int stock;
    private double price;
    public Product(int id, String title, int stock, double price) {
    setId(id);
    setTitle(title);
    setStock(stock);
    setPrice(price);
    public int getId() { return this.id; }
    public void setId(int id) { this.id = id; }
    public String getTitle() { return this.title; }
    public void setTitle(String title) { this.title = title; }
    public int getStock() { return this.stock; }
    public void setStock(int stock) { this.stock = stock; }
    public double getPrice() { return this.price; }
    public void setPrice(double price) { this.price = price; }
    public double calculateInventoryValue() {
    return getStock() * getPrice();
    public class Inventorypt2
    private String ProductInfo; // call class product info
    public static void main(String args[])
    //create Scanner to obtain input from command window
    Scanner input = new Scanner( System.in );
    int num; // product's item number
    int stock; // number of items in stock
    double price; // price each of item
    ProductInfo product; // product information instance
    System.out.println(); // blank line
    String name = "go";
    // loop until sentinel value read from user
    while ( !name.equalsIgnoreCase ("stop") )
    System.out.print( "Enter DVD title, or STOP to quit: "); // prompt
    name = input.nextLine(); // read item name from user or quit
    System.out.print( "Enter the item number: "); // prompt
    num = input.nextInt(); // read item number from user
    while ( num <=0 ) //loop until item number is positive
    System.out.println ("Item number must be positive. Please re-enter item number: ");//prompt user to re-enter item number
    num = input.nextInt(); // read item number
    } //end while
    System.out.print( "Enter the quantity in stock: "); // prompt
    stock = input.nextInt(); // read stock quantity from user
    while ( stock <0 ) //loop until stock is positive
    System.out.println ("Quantity in stock can not be less than zero. Please re-enter the quantity in stock: ");//prompt user to re-enter quantity in stock
    stock = input.nextInt(); // read stock quantity from user
    } //end while
    System.out.print( "Enter the price of DVD: "); // prompt
    price = input.nextDouble(); // read item price from user
    while ( price <=0 ) //loop until price is positive
    System.out.println ("Product price must be positive. Please re-enter the price of the product: ");//prompt user to re-enter product price
    price = input.nextDouble(); // read item price from user
    } //end while
    product = new ProductInfo( num, name, stock, price); // initialize ProductInfo variables
    System.out.println(); // blank line
    System.out.printf( "Item Name: %S\n", product.getName());
    System.out.printf( "Item Number: %s\n", product.getNum());
    System.out.printf( "Qty. in Stock: %s\n", product.getStock());
    System.out.printf( "Price Each: $%.2f\n", product.getPrice());
    System.out.printf( "Total Value in Stock: $%.2f\n", product.getInventoryTotal());
    System.out.println(); // blank line
    System.out.print( "Enter DVD title, or STOP to quit: "); // prompt
    name = "";
    while ( name.equals("") )
    name = input.nextLine(); // read new product name from user or quit
    } //end while
    System.out.println(); // blank line
    System.out.println("Good Bye!"); // exit message
    Edited by: jay1981 on Mar 16, 2008 2:07 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    You will get more help if your code is formatted better:
    * Only post code that is already formatted correctly including indentations.
    * Get rid of all those comments cluttering up your code.
    * Make sure your posted code compiles without need for any changes. Yours doesn't at present. Where is the ProductInfo class?
    Again, you want it easy for a volunteer here to read your post, otherwise he/she simply won't do it. Good luck.

  • Employee payroll program problems

    I have done good so far but now im stuck and lost on how to take my program to the next step, kids got sick and i missed like a week of school so im behind. I am suppose to modify the Payroll Program so that it uses a class to store and retrieve the employee?s name, the hourly rate, and the number of hours worked. Use a constructor to initialize the employee information, and a method within that class to calculate the weekly pay. Once stop is entered as the employee name, the application should terminate. I am lost on the bold part..
    here is what I have:
    //Calculates weekly pay for an employee
    import java.util.Scanner; // program uses class Scanner
         public class BeemansPayroll
         private double rate;
         private double hours;
         private String name;
         //Used to save info
    public BeemansPayroll(String Name, double PayRate, double Hours)
         String name = Name;
         double rate = PayRate;
         double hours = Hours;
    private static void Quit()
    System.out.println("Thank You for using Beeman's Payroll");
    System.exit(0);
    // main method begins execution of Java application
    public static void main(String args[])
    // create Scanner to obtain input from command window
    Scanner input = new Scanner(System.in);
    String name = "";
    do {
    System.out.print("Enter Employee Name or stop to quit: ");
    // prompt for name
    name = input.next(); // get name
              if (name.equals("stop"))
    System.out.println("Thank You for using Beeman's Payroll");
    Quit();
    } //end if
    else
    double PayRate;
    double Hours;
    double Pay;
         System.out.print("Please enter Employee payrate:$ "); // prompt
         PayRate = input.nextDouble(); // read first number from user
              while (PayRate <= 0)
                        System.out.println ("Invalid amount, Payrate must be positive");
                        System.out.print("Please enter valid payrate:$ ");
                        PayRate = input.nextDouble();
                   } //end if      
    System.out.print("Please enter Employee hours: "); // prompt
    Hours = input.nextDouble(); // read second number from user
                             while (Hours <= 0)
                        System.out.println ("Invalid amount, Hours must be positive");
                        System.out.print("Please enter hours worked: ");
                        Hours = input.nextDouble();
                   } //end if
    Pay = PayRate * Hours; // multiply numbers
    System.out.printf("Employee Pay for the week %s, is $%.2f\n", name,
    (PayRate * Hours)); // display product
    } //end else
    }while (!name.equals("stop"));
    Quit();
    } // end method main
    } // end class Beeman's Payroll

    john774077 wrote:
    Like I said, I am lost, with all that is going on I have done the reading 4 times , Then try reading a different source such as the Sun Java tutorials. They are excellent and there is no substitute to your reading and learning. We can help you debug an error in your code, but we are not a tutorial service nor a homework production service. Note also that we are all volunteers.
    on top of kids getting sick and taking three algebra all at once. I advice you to not go on and on about this. This is not our problem and won't affect how or if someone helps you. If anything continued mention of this will turn many away who would otherwise help you.
    How or where do I go about breaking it down?You are redeclaring the variables in your constructor, i.e.,:
    String name = Name;  // don't do thisDon't do this because you'll never change the class's name variable this way. Instead in the constructor do something like this for each variable:
    name = Name;or
    this.name = Name;Later you will need to read up on Java naming conventions.
    As for creating the method, you should read up on method creation in your text book or tutorial. That'll give you a better explanation than we can, I think.

  • What kind of BarCODE scanner works well with LabVIEW ?

    Currently I am working on a project need the use of Barcode Scanner to scan BarCODE. In our project, the minimum range requirement would be 30 feet. I noticed some posts here indicate there are some problems for barcode scan applications in LV to some specific Barcode scanner models. .
    So, I would like to know if someone has successful experience for wireless or usb barcode scanner programming using LV,  and the Barcode scanner model.
    I would prefer wireless Barcode scanner.
    Thanks in advance.

    Hey Michenglaoxu,
    I thinkt he best thing to do is look at a similar thread where someone was just looking for tips on where to get started and someone actually recommends a product. I can't guarantee the validity of his suggestion, but I thought you may find that link useful.
    Good luck!
    Regards,
    Nick D.

Maybe you are looking for