'operator + cannot be applied to double'

public double getTotalPrice() {
        if (orderItems.size() == 0) {
            return 0.0;
        double total = 0.0;
        for (Iterator it = orderItems.iterator(); it.hasNext();) {
            OrderItem oi = (OrderItem) it.next();
             total += (oi.getCost()).multiply(BigDecimal.valueOf(oi.getPurchaseQty()));
        return total;
}ive got this method here and this part's got an error:
total += (oi.getCost()).multiply(BigDecimal.valueOf(oi.getPurchaseQty()));Error: operator + cannot be applied to double, <any>
any help is appreciated. thx

What type does this return?
(oi.getCost()).multiply(BigDecimal.valueOf(oi.getPurchaseQty()))At a glance, I'd guess BigDecimal. You can't use arithmetic operations like + on BigDecimal. You'd have to call its doubleValue method, or whatever there is that returns a double. Of course, since BigDecimal can hold numbers that double can't, that could give you bogus values, so you really need to make total a BigD as well, and call BigD's methods in place of +=, or else stick to numbers that fit in a double and don't use BigD at all.

Similar Messages

  • Re: cannot be applied to (double,java.lang.String)

    It's telling you what the problem is -- you're trying to pass a String in where a double is required. Java is a strongly typed language, which means that you can't expect types to change automatically into other types as needed.
    You could, I suppose, parse the string, assuming that it holds a representation of a double. But if you look at the method in question, you'll see that it doesn't even use its second (double) argument.
    So you should ask yourself:
    1) should that method really take two arguments?
    2) what is the second argument for, if I did use it?
    3) what is the best type to represent the second argument?
    (hint: with a name like "customerType", then an enum seems likely)
    [add]
    Too slow again.
    Though I'll also add: please wrap any code you post in [code][/code] tags. It makes your code much easier to read.
    Message was edited by:
    paulcw

    >  String n ;
    n = JOptionPane.showInputDialog(null, "Enter Month No.:");
    pow(double,double) in java.lang.Math cannot be
    applied to (double,java.lang.String)Read the error diagnostic carefully: the compiler found a pow() method
    in the Math class, but it takes two doubles as its arguments. You,
    however, supplied a double and a String as the parameter types.
    The method found by the compiler cannot be applied to your parameters.
    hint: you have to convert that String to a double,
    kind regards,
    Jos

  • Operator + cannot be applied to operands of type 'method group and 'int'

    Hello I have a problem that I'm trying to fire a bullet everytime I pressed the spacebar key, but I have this problem that is cropping up.
     if ((e.KeyCode == Keys.Space) && (playerOne.Bullet.Alive == false))
                                playerOne.Bullet.Alive = true;
                                playerOne.Bullet.getX = playerOne.getXposition + 15;
                                playerOne.Bullet.getY = playerOne.getYposition + 10;
    It says in the error list: "Opeartor '+' cannot be applied to operands of type 'method group' and 'int'", I have no clue. I'm also new to programming.

    I want to get the bullet to shoot where the player is, here is the code:
    class Player
            // attributes here  -   Int other words data types and variables:
            int health = 3;
            float xPosition;
            float yPosition;
            Bitmap playerGraphics;
            int score = 0;
            bool leftPressed;
            bool rightPressed;
            float Width = 50;
            public Bullet Bullet = new Bullet();
            // functions here:
            public void Init()
                // Get Player_Bat.png from resources, so that we can work with it:
                playerGraphics = new Bitmap(Green_Aliens.Properties.Resources.Player_Bat);
                health = 3;
                score = 0;
                xPosition = 375;
                yPosition = 540;
                leftPressed = false;
                rightPressed = false;
                Bullet Bullet = new Bullet();
            public float getWidth()
                return Width;
            public void toggleLeftPressed()
                if (leftPressed == true)
                    leftPressed = false;
                else
                    leftPressed = true;
            public void toggleRightPressed()
                if (rightPressed == true)
                    rightPressed = false;
                else
                    rightPressed = true;
            public bool getLeftPressed()
                return leftPressed;
            public bool getRightpressed()
                return rightPressed;
            public Bitmap getGraphics()
                return playerGraphics;
            public float getXposition()
                return xPosition;
            public float getYposition()
                return yPosition;
            public int getHealth()
                return health;
            public int getScore()
                return score;
            public void moveLeft()
                xPosition -= 10;
            public void moveRight()
                xPosition += 10;
            public void loseLife()
                health--;
            public void adScore(int valueAdd)
                score += valueAdd;
            //Resets the player to the start position:
            public void resetPosition()
                xPosition = 400;
                yPosition = 550;

  • HELPHomework operator = cannot be applied to boolean, int???????

    Hi im struggling ive been searching on the net but i just cant seem to figure a way to get my code to work properly. Basically a user has to input a percent and the program outputs a grade. 95 or higher = A+,
    90 or higher = A etc etc. this is my code
    import java.util.Scanner;
    public class GetGrades {
    public static void main(String[] args) {
         Scanner keyboard = new Scanner(System.in);
         System.out.println("Please enter your grade: ");
         int gradeOne = keyboard.nextint();
         String myGrade;
         System.out.println("Your letter grade: " + myGrade);
         if(gradeOne >= 95)
         myGrade= "A+";
         else if(95 > gradeOne >= 92)
         myGrade= "A";
         else if(92 > gradeOne >= 87)
         myGrade= "A-";
         else if(87 > gradeOne >= 80)
         myGrade= "B+";
         else if(80 > gradeOne >= 75)
         myGrade= "B";
         else if(75 > gradeOne >= 70)
         myGrade= "B-";
         else if(70 > gradeOne >= 60)
         myGrade= "C";
         else if(60 > gradeOne >= 50)
         myGrade= "D";
         else
         myGrade= "F";
    Can anyone please help :S

    String myGrade;
    System.out.println("Your letter grade: " + myGrade);The first line is declaring the variable, but is not setting a value to it so it is not pointing to anything (has no value not even an empty string). So, when you use the second line the compiler is saying that since the variable has not been initialized (at all) it can't.
    Try something like this:
    String myGrade = ""Nothing yet buddy :)";
    System.out.println("Your letter grade: " + myGrade);or move your printline to after you assign the value to it in the if statement.

  • Error messages!  area(double, double) cannot be applied to ( )

    I keep getting these error messages:
    area(double,double) in Rectangle cannot be applied to ()
              return "Area: " + Rectangle.area() + "\tCircumference: " + Rectangle.perimeter(); ^
    perimeter(double,double) in Rectangle cannot be applied to ()
              return "Area: " + Rectangle.area() + "\tCircumference: " + Rectangle.perimeter();
    ^
    setSides(double,double) in Rectangle cannot be applied to (double)
              R.setSides(input.nextDouble());
    ^
    3 errors
    Tool completed with exit code 1
    Can anybody tell me why it is doing this? Thanks in advance!
    import java.util.Scanner;
    public class Rectangle
         public double length;
         public double width;
         public Rectangle()
              length = 0;
              width = 0;
         public double getSides()
              return length;
              return width;
         public void setSides(double length, double width)
              this.length = length;
              this.width = width;
         public double area(double length, double width)
              double area = length * width;
              return area;
         public double perimeter(double length, double width)
              double perimeter = (length * 2) + (width * 2);
              return perimeter;
         public String toString()
              return "Area: " + Rectangle.area() + "\tCircumference: " + Rectangle.perimeter();
         public static void main(String [] args)
              Rectangle R = new Rectangle();
              Scanner input = new Scanner(System.in);
              System.out.println("Enter radius: ");
              R.setSides(input.nextDouble());
              System.out.println(R.toString());
    }

    Looking at your code more, it looks like what you want to do when you call area is get the area of the Rectangle based on the length and width it already has stored, not what you pass it. So if you take out the parameters like this:
    public double area() {
         double area = length * width;
         return area;
    }It will use the member variables length and width to calculate area.

  • Create(java.io.InputStream) in Scanner cannot be applied to (java.io.File)

    Ahhh!!!
    Ahem, when I try to compile the file below, "PhoneDirectory.java", I get the following compilation error message:
    PhoneDirectory.java:12: create(java.io.InputStream) in Scanner cannot be applied to (java.io.File)
        Scanner fin = Scanner.create(file);After quite a bit of tweaking... I'm right back where I started. I'm a seasoned programmer, as far as concepts are concerned, but rather new to JAVA.
    The error seems to be occuring where a new instance of "Scanner" is supposed to be created. It uses file I/O, and I had only used the Scanner class for the keyboard input in the past.
    Looking at the Scanner class, everything seems to be right to me. I'm probably missing some simple fundamental concept, and I've been pulling my hair out trying to get it... Please help me shed some light on this situation!
    =========
    PhoneDirectory.java
    =========
    import java.io.*;
    // Read a file of names and phone numbers
    // into an array. Sort them into ascending
    // order using bubble sort.
    // Print names and numbers before and after sort.
    public class PhoneDirectory {
      public static void main (String[] args) {
        PhoneEntry[] directory = new PhoneEntry[200];
        File file = new File("c:\\jessica\\phonenum.txt");
        Scanner fin = Scanner.create(file);
        int numberEntries = 0;
        // read array from file
        while (fin.hasNextInt())
          directory[numberEntries++] = new PhoneEntry(fin);
        // print array as read
        for (int i=0; i<numberEntries; i++)
          System.out.println(directory);
    // sort by ordering defined in PhoneEntry,
    // in this case lastName firstName
    bubbleSort(directory, numberEntries);
    // print sorted array
    System.out.println(
    "============================================");
    for (int i=0; i<numberEntries; i++)
    System.out.println(directory[i]);
    static void bubbleSort(PhoneEntry[] a, int size) {
    // bubbleSortr: simple to write, but very inefficient.
    PhoneEntry x;
    for (int i=1; i<size; i++)
    for (int j=0; j<size-i; j++)
    if (a[j].compareToIgnoreCase(a[j+1]) > 0) {
    // swap
    x = a[j]; a[j] = a[j+1]; a[j+1] = x;
    =========
    PhoneEntry.java
    =========
    class PhoneEntry {
    // number, name entry for a line in a Phone Directory
      protected int area;
      protected int prefix;
      protected int number;
      protected String firstName;
      protected String lastName;
      public String toString() {
      // format name and phone number to printable string
        String x = lastName + ", " + firstName;
        x = x +
        " . . . . . . . . . . . . . . .".substring(x.length())
        + "(" + area + ") " + prefix + "-" + number;
        return x;
      public int compareToIgnoreCase(PhoneEntry v) {
      // alphabetically compare names in this to names in v
      // return negative for this < v, 0 for ==,
      //        positive for this > v
        int m = lastName.compareToIgnoreCase(v.lastName);
        if (m == 0) m = firstName.compareToIgnoreCase(v.firstName);
        return m;
      public PhoneEntry(Scanner fin) {
      // input a PhoneDirectory entry. Must be space delimited
      // area prefix suffix lastname firstname
        // number
        area = fin.nextInt();
        prefix = fin.nextInt();
        number = fin.nextInt();
        // read rest of line
        String name = fin.nextLine();
        // split name into lastName firstName
        int p = name.indexOf(' ');
        if (p > 0) {
            lastName = name.substring(0,p);
            firstName = name.substring(p+1);
        else {
            lastName = name;
            firstName = "";
    }=========
    Scanner.java
    =========
        This class does input from the keyboard.  To use it you
        create a Scanner using
        Scanner stdin = Scanner.create(System.in);
         then you can read doubles, ints, or strings as follows:
        double d; int i; string s;
        d = stdin.nextDouble();
        i = stdin.nextInt();
        s = stdin.nextLine();
        An unexpected input character will cause an exception.
        You cannot type a letter when it's expecting a double,
        nor can you type a decimal point when it's expecting an int.
    import java.io.*;
    public class Scanner {
    // Simplifies input by returning
    // the next value read from the
    // keyboard with each call.
      private String s;
      private int start=0, end = 0, next;
      private BufferedReader stdin;
      Scanner(InputStream stream) {
        start = end = 0;
        // set up for keyboard input
        stdin = new BufferedReader(
        new InputStreamReader(stream));
      public static Scanner create(InputStream stream) {
        return new Scanner(stream);
      double nextDouble() {
         if (start >= end)
           try {
            s = stdin.readLine().trim() + " ";
              start = 0;
             end = s.length();
          catch (IOException e) {System.exit(1);}
         next = s.indexOf(' ',start);
         double d = Double.parseDouble(s.substring(start,next));
         start = next+1;
         return d;
      public int nextInt() {
         if (start >= end)
           try {
            s = stdin.readLine().trim() + " ";
              start = 0;
             end = s.length();
          catch (IOException e) {System.exit(1);}
         next = s.indexOf(' ',start);
         int d = Integer.parseInt(s.substring(start,next));
         start = next+1;
         return d;
      public String nextLine() {
         if (start >= end)
           try {
            s = stdin.readLine().trim() + " ";
              start = 0;
             end = s.length();
          catch (IOException e) {System.exit(1);}
         String t = s.substring(start,s.length()-1);
         start = end = 0;
         return t;
    }=========
    phonenum.txt
    =========
    336 746 6915 Rorie Tim
    336 746 6985 Johnson Gary
    336 781 2668 Hoyt James
    606 393 5355 Krass Mike
    606 393 5525 Rust James
    606 746 3635 Smithson Norman
    606 746 3985 Kennedy Amy
    606 746 4235 Behrends Leonard
    606 746 4395 Rueter Clarence
    606 746 4525 Rorie Lonnie

    I don't see a Scanner.create() method in the Scanner class but I do see a constructor with the signature you want. Change
    Scanner fin = Scanner.create(file);
    to
    Scanner fin = new Scanner(file);

  • Cannot be applied to (java.io.PrintWriter) error

    Hi guys I get the following errors when trying to compile my program and I was wondering how to solve it
    printPay() in PaySlip cannot be applied to (java.io.PrintWriter)
    slip.printPay(slipWrite)
    import java.io.*;
    public class PayApp
      public static void main(String[] args)
        boolean end_of_file = false;
        EmpInFile   f1 =  new EmpInFile(); 
        EmpOutFile  f2 =  new EmpOutFile();
        Employee    emp = null;       
        PaySlip     slip = null;           
        Report   sum = null;     
        PrintWriter slipWrite = null;
        PrintWriter sumWrite  = null;
        if (args.length != 4)    // correct number ?
          errExit("Names of Input employee file , output employee file, payslip file \n, and report file required");
         emp = new Employee();
         sum =   new Report();
         slip  = new PaySlip(emp,sum);
       try
           f1.openFile(args[0]);  
           f2.openFile(args[1]);  
           slipWrite = new PrintWriter(new FileWriter(args[2]));
           sumWrite =  new PrintWriter(new FileWriter(args[3]));
          catch(IOException e)
             System.err.println("error opening files" + e.toString());
             System.exit(1);
         while (!end_of_file )
            end_of_file = f1.readRecord(emp);
            if(!end_of_file)
               slip.printPay(slipWrite); 
               f2.addRecord(emp);  
            }// end if ! end
          }// end while
           System.out.println("All employees processed ");
           sum.printTotals(sumWrite);  
           sumWrite.flush();
           sumWrite.close();        
           slipWrite.flush();
           slipWrite.close();
           f1.closeFile();
           f2.closeFile();
      static void  errExit(String message)
       System.err.println(message);
       System.exit(1);
    public class PaySlip
    // declare variables
         private double gross;
         private double tax;
         private double taxcredits;
         private Employee emp;
         private Report rep;
         public PaySlip (Employee e, Report r)
         emp = e;
         rep = r;
         double gross = 0;
         double tax = 0;
         double taxcredits = 0;
         public void setGross(double gr)
         gross = gr;
         public void setTax(double tx)
         tax = tx;
         public void settaxCreds(double taxcreds)
         taxcredits = taxcreds;
         public void printPay()
         emp.calcPay(this);
         double netpay;
         netpay = gross - tax;
         System.out.println("____________________________________________________");
         System.out.println("               Payslip Information                  ");
         System.out.println("Employee Name: \t\t" +emp.getFirst() +" "+ emp.getLast());
         System.out.println("Employee Id: \t\t" +emp.getId());
         System.out.println("Net Pay: \t" +netpay);
         System.out.println("Year To Date Gross: \t" +emp.getYtdGross());
         System.out.println("Year To Date Tax: \t" +emp.getYtdTax());
         System.out.println("____________________________________________________");
         System.out.println("               Department Totals                    ");
         char dcode = emp.getDeptCode();
         rep.addToTotals(gross,tax,dcode);
    }Any help would be greatly appreciated.

    Post the actual error which would in include a line number when noting errors.
    slip.printPay(slipWrite); The method printPay() does not take parameters. So you can't put 'slipWrite" there.

  • Method cannot be applied error

    I am having trouble compiling my application because it says a sorting method I want to use cannot be applied to the array I want to sort.
    I have a class that was supplied by my instructor that contains a constuctor for an object called "automobile". This constructor has 4 args which are (string, string, double, double). The strings are for make and model of vehicle and the doubles are for gas tank size and range on a full tank. The constructor takes the double values and calculates the miles per gallon. In my application I am making an array of 15 vehicles called "automobile". When I print to an outpuBox the list of vehicles, everthing looks fine. The problem is I need to sort the array by the miles per gallon. Now I have made a seperate class the contains my "cocktail shaker sort", but when it seems that the array of vehicles I created cannot be used in the args of the sort method. Any help would be greatly appeciated. This thing was due a week ago and I've been pulling my hair for 3weeks.
    The error message is:
    Autos.java:64: cockTailSort(int[]) in CockTail cannot be applied to (Automobile[])
    CockTail.cockTailSort(automobile);
    1 error
    Below is my application and following that will be the cocktailshaker class.
    import javabook.*;
    import java.text.DecimalFormat;
    class Autos
    public static void main (String[] args){
    MainWindow mainWindow;
    InputBox inputBox;
    OutputBox outputBox;
    MessageBox messageBox;
    ResponseBox responseBox;
    String modelName, modelType;
    double gasTankCapacity, rangeOnFullTank;
    int count;
    mainWindow = new MainWindow ("Automobile input");
    inputBox = new InputBox (mainWindow);
    outputBox = new OutputBox (mainWindow);
    responseBox = new ResponseBox (mainWindow );
    messageBox = new MessageBox (mainWindow);
    messageBox.setVisible (false );
    mainWindow.setVisible ( true ) ;
    outputBox.setVisible ( true ) ;
    Automobile[] automobile = new Automobile [3];
    int i=0;
    count =1;
    for (i = 0 ; i < automobile.length ; i ++){
    modelName = inputBox.getString ("Enter Model Name for vehicle #" + count);
    modelType = inputBox.getString ("Model Type for #" + count);
    gasTankCapacity = inputBox.getDouble("Gas capacity for #" + count);
    rangeOnFullTank = inputBox.getDouble("Fulltank range for #" + count);
    automobile[ i ] = new Automobile ( modelName, modelType,gasTankCapacity,rangeOnFullTank );
    count ++;
    CockTail.cockTailSort(automobile);
    for (i = 0 ; i < automobile.length ; i ++){
    automobile.displayAutomobile(outputBox);
    Here is the sort:
    import javabook.*;
    class CockTail
    public CockTail()
    public static void cockTailSort (int a [] )
    boolean sorted = false;
    int top = a.length -1, bottom =0;
    for (int pass =1; bottom < top && !sorted; pass ++)
    sorted = true;
    if (pass % 2 != 0) // odd # passes
    for (int i = bottom; i < top; i ++)
    if (a[i] > a[i + 1])
    sorted = false;
    int temp = a[i];
    a[i] = a[i + 1];
    a[i + 1] = temp;
    top --;
    else // even-numbered passes
    for (int i = top; i > bottom; i--)
    if (a[i - 1] > a[i])
    sorted =false;
    int temp = a[i];
    a[i] = a[i - 1];
    a[i - 1] = temp;
    bottom ++;

    Well I changed it to what you said and it didn't work. I really appreciate your though.
    Here are the source codes :
    import javabook.*;
    import java.util.*;
    import java.text.DecimalFormat;
    class Autos
    * Setting data members and constructors
    public static void main (String[] args){
    MainWindow mainWindow;
    InputBox inputBox;
    OutputBox outputBox;
    MessageBox messageBox;
    ResponseBox responseBox;
    String modelName, modelType;
    double gasTankCapacity, rangeOnFullTank;
    int count;
    mainWindow = new MainWindow ("Automobile input");
    inputBox = new InputBox (mainWindow);
    outputBox = new OutputBox (mainWindow);
    responseBox = new ResponseBox (mainWindow );
    messageBox = new MessageBox (mainWindow);
    messageBox.setVisible (false );
    mainWindow.setVisible ( true ) ;
    outputBox.setVisible ( true ) ;
    outputBox.printLine("This program will ask for data for 15 vehicles and ");
    outputBox.printLine("calculate the Miles Per Galllon for each vehicle and ");
    outputBox.printLine("compare the MPGs to be displayed in a sorted list in an outpuBox.");
    outputBox.printLine("you will be asked to enter the vehicles model, model type");
    outputBox.printLine("gas tank capacity and total range on a full tank.");
    // create an automobile array
    Automobile[] automobile = new Automobile [3];
    * Loop for data inputs an array creation
    int i=0;
    count =1;
    for (i = 0 ; i < automobile.length ; i ++){
    modelName = inputBox.getString ("Enter Model Name for vehicle #" + count);
    modelType = inputBox.getString ("Model Type for #" + count);
    gasTankCapacity = inputBox.getDouble("Gas capacity for #" + count);
    rangeOnFullTank = inputBox.getDouble("Fulltank range for #" + count);
    automobile[ i ] = new Automobile ( modelName, modelType,gasTankCapacity,rangeOnFullTank );
    count ++;
    *Code for cocktail sort method call
    CockTail.cockTailSort(automobile); // Error in code
    * Display data and MPG's in outputBox
    for (i = 0 ; i < automobile.length ; i ++){
    automobile.displayAutomobile(outputBox);
    Here is the cocktail shaker sort:
    import javabook.*;
    import java.util.*;
    class CockTail
    //public CockTail()
    public static void cockTailSort (Automobile[] a )
    boolean sorted = false;
    int top = a.length -1, bottom =0;
    for (int pass =1; bottom < top && !sorted; pass ++)
    sorted = true;
    if (pass % 2 != 0) // odd # passes
    for (int i = bottom; i < top; i ++)
    if (a[i] .compareto( a[i + 1])==1)
    sorted = false;
    Automobile temp = a[i];
    a[i] = a[i + 1];
    a[i + 1] = temp;
    top --;
    else // even-numbered passes
    for (int i = top; i > bottom; i--)
    if (a[i] .compareto( a[i - 1])==1)
    sorted =false;
    Automobile temp = a[i];
    a[i] = a[i - 1];
    a[i - 1] = temp;
    bottom ++;
    Here is what I know of the Automobile class:
    // JBuilder API Decompiler stub source generated from class file
    // Aug 6, 2002
    // -- implementation of methods is not available
    // Imports
    import java.lang.String;
    import javabook.OutputBox;
    class Automobile {
    // Fields
    private String modelName;
    private String modelType;
    private double gasTankCapacity;
    private double rangeOnFullTank;
    private double milesPerGallon;
    // Constructors
    public Automobile() { }
    public Automobile(String p0, String p1, double p2, double p3) { }
    // Methods
    public int compareto(Automobile p0) { }
    public void displayAutomobile(OutputBox p0) { }

  • String cannot be applied to java.lang.String in NetBeans 6 !?!?

    Guys,
    I have a problem. I am calling some API from jar file. Here is the method prototype in API jar:
    public Operator getAdminOperator(String name, String password, int admin);
    when I call this method in NetBeans 6 like the following:
    admin.getAdminOperator(userName, password, 1);
    where userName and password are both string, I get the following error:
    getAdminOperator(String, String, int) in common.admin.AdminRemote cannot be applied to (java.lang.String, java.lang.String, int)
    WTF?!?! If i try the same code in NetBeans 5 it works, and it works in JavaStudioCreator, but NetBeans 6 does not takes it! And because of this error, I am not able to see the Design view in the JSF! The code compiles just fine and runs if I deploy it in the server though, but i need to see the Design view.
    ANY ideas what is going on?

    Then this "String" class must be some other class and not java.lang.String. Did you write the API in question? Does it have a "String" class in one of its namespaces? Or perhaps you wrote a class named "String" and didn't put it in a package? If that's not the case, then contact the writer and ask them.

  • A volume failed to mount/Operation cannot be completed

    We bought a MacBook on the weekend. Our Apple concierge insisted that we can keep our music, videos and photos on our Windows XP desktop and "share" the files on the Mac--in other words, we can pull down what we need to edit or save on the Mac as need be.
    We've set up the shared directories on the Windows machine, renamed the Workgroup to match the Mac and disabled the firewall. We've "connected to server" using Finder and can see the two shared directories we've set up.
    But when I click on either one of them, I get an error message: "A volume failed to mount. The volume "Mac" could not be mounted."
    After some time of being on the network, I see a Shared directory in Finder with my PC. If I click on the icon, the title bar says: "Connected as: Guest". The window displays the same two directories as above but when I click on one or the other I get an error message: "The operation cannot be completed because the original item for "Mac" cannot be found."
    I've called Apple technical support and the agent's response was: I don't think you can do that. Just copy your files to the Mac using DVDs.
    Any ideas? We don't want to have to transfer a lifetime of photos, video and music to our laptop--we want to use the XP desktop as our hub.

    I'm having the same trouble. From an Intel Mac Mini running 10.5.3 I've been able to access smb shares fine on an old PC running XP pro. These are shared volumes on external drives on the PC. I can still access them fine from an old PowerBook G4 running 10.5.3, but while I can see computers on the network, if I try to connect to a share on the computer I get the message "the operation cannot be completed because the original item for <share name> cannot be found". If I try to mount it via a shortcut, I get the message "A volume failed to mount. The volume <share name> could not be mounted.
    In the console, I'm seeing things like:
    6/2/08 10:45:01 PM com.apple.coreservicesd[58] NOTE: Using non-mach-based version of client -> server communication, via direct function calls.
    but I don't know if that has anything to do with this or not.
    Has anyone heard of a fix for this?
    Thanks,
    Mark

  • Error message during copy of new version, it says the operation cannot be completed because the item foxfire is in use.

    During downloading of 7.0 Foxfire, during the copy I get an error message that says the operation cannot be completed because the item Foxfire is in use.

    If there are problems with updating or with the permissions then easiest is to download the full version and trash the currently installed version to do a clean install of the new version.
    Download a new copy of the Firefox program and save the disk image (dmg) file to the desktop
    * Firefox 7.0.x: http://www.mozilla.com/en-US/firefox/all.html
    * Trash the current Firefox application to do a clean (re-)install
    * Install the new version that you have downloaded
    Your profile data is stored elsewhere in the Firefox Profile Folder, so you won't lose your bookmarks and other personal data.
    * http://kb.mozillazine.org/Profile_folder_-_Firefox

  • The operation cannot be completed because it is in use

    i have a macbook with yosemite running.I also have a wdtv live with a 1tb hdd on it.I could transfer files from my mac to the hdd over wifi with no problem till i upgraded to yosemite.It tells me when i transfer a large file the operation cannot be completed because it is in use.Small files can be transferred with no problem at all.When i transfer them through direct usb to the hdd no problem at all.What can be the solution to this problem???

    If there are problems with updating or with the permissions then easiest is to download the full version and trash the currently installed version to do a clean install of the new version.
    Download a new copy of the Firefox program and save the disk image (dmg) file to the desktop
    * Firefox 7.0.x: http://www.mozilla.com/en-US/firefox/all.html
    * Trash the current Firefox application to do a clean (re-)install
    * Install the new version that you have downloaded
    Your profile data is stored elsewhere in the Firefox Profile Folder, so you won't lose your bookmarks and other personal data.
    * http://kb.mozillazine.org/Profile_folder_-_Firefox

  • The operation cannot complete because of an unkown error while exporting to png

    Adobe Illustrator CS5
    Windows 7 64bit
    I am getting the following error while trying to export a png
    "The operation cannot complete because of an unkown error. [13]"
    I tried disabling all startup items, rebooting, copying and pasting to a new document to no avail.
    Please help

    Here is what I tried and it worked
    Save the file as pdf with the "Preserve Illustrator Editing capabilities" checked.  Rename the file from .pdf to .ai
    New file can now export without any problems.
    Wierd.  But thanks to everyone who posted

  • In trying to update to Firefox 3.6.11 on an intel mac g5, I get this message: the operation cannot be completed because you do not have sufficient privileges for some of the items -- any suggestions? thanks!

    In trying to update to Firefox 3.6.11 on an intel mac g5, I get this message: the operation cannot be completed because you do not have sufficient privileges for some of the items -- any suggestions? thanks!

    You can try to repair the permissions for the Firefox application files and folders.
    You can also do this:
    * Download a new copy of the Firefox program: http://www.mozilla.com/firefox/all.html
    * Trash the current Firefox application to do a clean (re)install.
    * Install the new version that you have downloaded.
    Your profile data is stored elsewhere in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder], so you won't lose your bookmarks and other personal data.

  • Installed update of Firefox, but cannot drag into applications folder, it indicates that "The operation cannot be completed because you do not have sufficient privileges", so how can I complete the install?

    I try to drag the app into the applications folder where an old app of firefox exists and it asks me if I want to replace it and after i say yes it gives me the operation cannot be completed message.

    If there are problems with updating or with the permissions then easiest is to download the full version and trash the currently installed version to do a clean install of the new version.
    Download a new copy of the Firefox program and save the disk image (dmg) file to the desktop
    *Firefox 9.0.x: http://www.mozilla.org/en-US/firefox/all.html
    *Trash the current Firefox application to do a clean (re-)install
    *Install the new version that you have downloaded
    Your profile data is stored elsewhere in the Firefox Profile Folder, so you won't lose your bookmarks and other personal data if you uninstall and (re)install Firefox.
    *http://kb.mozillazine.org/Profile_folder_-_Firefox

Maybe you are looking for