Java doesn't recognize VectorList methods

I get the following error trying to use Vector methods.
----jGRASP exec: javac -g /home/eugene/javafiles/book.java
book.java:20: cannot find symbol
symbol  : method elementAt(int)
location: interface java.util.List<java.lang.String>
               temp += author.elementAt( i ) + " ";
                             ^
1 error
----jGRASP wedge: exit code for process is 1.
----jGRASP: operation complete.
import java.util.*;
public class book
     private String title = "";
//     String author[] = new String[ 4 ];
/* Make author private */
     List<String> author = new Vector<String>();
     String publisher = "";
     int isbn = 0;
     double price = 0;
     int stock = 0;
/*  ---------------------------------------- HERE IS THE PROBLEM CODE --------------------------------------- */     
     String showAuthor()
          String temp = "";
          int i;
          for (i = 0; i < author.size(); i++)
               temp += author.elementAt( i ) + " ";
          return temp;     
     String showTitle()
          return title;
     void changeTitle( String input )
          title = input;
     String showPublisher()
          return publisher;
     void changePublisher( String input )
          publisher = input;
     int showIsbn()
          return isbn;
     void changeIsbn( int input )
          isbn = input;
     double showPrice()
          return price;
     void changePrice( double input )
          price = input;
     int showStock()
          return stock;
     void changeStock( int input )
          stock = input;
     book( String title, String publisher, int isbn, double price, int stock, String ... author )
          if ( author.length > 4 )
               throw new IllegalArgumentException( "You have too many authors" );
//          else if ( author.length == 0 )
//               throw new IllegalArgumentException( "You have no authors" );
          this.title = title;
          this.publisher = publisher;
          this.isbn = isbn;
          this.price = price;
          this.stock = stock;
          this.author = new ArrayList<String>( Arrays.asList( author ) );
     public static void main( String[] args )
          book test = new book( "title", "publisher", 123, 12.20, 4, "eugene", "vadim" );
          System.out.println( test.title );
}

yougene wrote:
     List<String> author = new Vector<String>();
Since you explicitly defined your reference to be of type List<String> you can only call methods that List has. And elementAt(int) is a method that's not existing in the List interface.
Use .get(int) instead.

Similar Messages

  • Java Doesn't Recognize Something That Exists?

    I'm writing an XML checker for a homework assignment. I'm using a stack which uses a double linked list which uses nodes with a generic data type.
    I ran into a problem after testing the program for the first time. I got a NullPointerException error at the instance where I tried to add a new node to the head. After a little digging I found out that apparently Java doesn't remember that I set the successor of "head" to be "tail". I've already spent 20 minutes going over the code that sets the tail as head's successor but I just can't see what I did wrong.
    Exception in thread "main" java.lang.NullPointerException
         at DLLNode.setNext(DLLNode.java:59)
         at DLLNode.<init>(DLLNode.java:17)
         at DLL.<init>(DLL.java:20)
         at Stack.<init>(Stack.java:11)
         at ParseTokens.<init>(ParseTokens.java:9)
         at Driver.main(Driver.java:16)The program is already too long to post here and broken up into multiple classes, so I will only post the important stuff. Note: Token is just a Record class that keeps two Strings, type and tagName for the xml tag to store.
    DLLNode.java //node with generic datatype T
         private T data;
         private DLLNode<T> successor;
         private DLLNode<T> predecessor;
         public DLLNode(T d, DLLNode<T> next, DLLNode<T> prev) {
              this.setNodeData(d);
              this.setNext(next); //line 17
              this.setPrev(prev);
           public T getNodeData() {
                return this.data;
           public void setNodeData(T newData) {
                this.data = newData;
           public DLLNode<T> getNext() {
                return this.successor;
           public void setNext(DLLNode<T> newNext) {
                this.successor = newNext;
                System.out.println(newNext.toString()); //zeroed in on the problem being here; throws NullPointerException; line 59
           public DLLNode<T> getPrev() {
                return this.predecessor;
           public void setPrev(DLLNode<T> newPrev) {
                this.predecessor = newPrev;
           }DLL.java //manages the DLLNode objects
         private DLLNode<T> head;
         private DLLNode<T> tail;
    //other vars
         public DLL() {
              this.setHead(new DLLNode<T>(null, tail, null)); //problem is probably here; after this, java doesn't see tail as head's successor; //line 20
              this.setTail(new DLLNode<T>(null, null, head));
              this.setSize(0);
           public void setHead(DLLNode<T> value) {
                this.head = value;
           public void setTail(DLLNode<T> value) {
                this.tail = value;
         public boolean addAtHead(T dllData) {
              DLLNode<T> newNode = new DLLNode<T>(dllData, this.head.getNext(), this.head);          
              this.getHead().getNext().setPrev(newNode); //original NullPointerException thrown here at the first instance of this method being used
              this.getHead().setNext(newNode);
              this.setSize(this.getSize() + 1);
              return ((newNode != null) && (newNode.getNext() != null) &&
                        (newNode.getPrev() != null));
         }Stack.java //manages a DLL object as a stack
         private DLL<T> dll;
         public Stack() {
              dll = new DLL<T>(); //line 11
              this.setSize(dll.getSize());
           public void push(T data) {
                dll.addAtHead(data); //original NullPointerException at first instance of push() being used
           }ParseTokens.java //class to actually go through the xml and list what it finds
         private Stack<Token> stack;
         public ParseTokens() {
              stack = new Stack<Token>(); //original error; line 9
         }Driver.java //main
    ParseTokens parse = new ParseTokens();//line 16Thank you for any help.
    Edited by: WhoCares357 on Feb 16, 2010 5:10 PM
    Edited by: WhoCares357 on Feb 16, 2010 5:17 PM

    A user on another forum h(http://preview.tinyurl.com/yjqx4a9) helped me find the problem. I had to create the head and tail first and then point them at each other. Thanks for all the help here.
    @flounder Even though I've already solved my problem I am still confused by what you're saying. The double linked list I created has two placeholders so that I don't have to worry about how many nodes are included. To connect my new node I start at the head and point at whatever is connected to the head (whether it is the tail or another node) to set the successor and predecessor for the new node. I then break the old connections (from the head to the old node after it) and connect them to the new node. I don't see a problem in this, but I am most likely not understanding your concern.
    I don't really want to let this go, because there might be a problem in my code that I don't see right now.
    @AndrewThompson64 I'll use that the next time I have a problem. Thanks.

  • Java doesn't recognize jasperReport classes

    Hi guys could you please help me with my program it doesn't work so you guys might rectify the problem. Here is my code and errors:
    package helloWorld;
    import java.io.*;
    import java.sql.*;
    import javax.swing.*;
    import java.util.*;
    import net.sf.jasperreport.engine.JasperCompileManager;
    import net.sf.jasperreport.engine.JasperFillManager;
    import net.sf.jasperreport.engine.JasperPrintManager;
    import net.sf.jasperreport.engine.JasperExportManager;
    import net.sf.jasperreport.view.JasperDesignViewer;
    class jasperExample
    public static void main(String[] args)
    System.out.println("Hello World! for Jasper Example");
    try
    JasperDesign jasperDesign = JasperManager.loadXmlDesign(samke.xml);
    JasperReport jasperReport = JasperCompileManager.compileReport(jasperDesign);
    Connection con1 = DriverManager.getConnection("com.mysql.jdbc.Driver","root","");
    Statement s1 = con1.createStatement();
    java.util.Map parameters = new java.util.HashMap();
    parameters.put("Tittle","Test JasperReport");
    JasperPrint report = JasperFillManager.fillReport(jasperReport, parameters, con1);
    JasperExportManager.exportReportToPdfFile(report,"report1.pdf");
    JasperViewer.viewReport(report);
    catch(Exception ex)
    System.out.print("Error!");
    These are the errors
    C:\Unify\NXJ\j2sdk\bin>javac sbo.java
    sbo.java:6: package net.sf.jasperreport.engine does not exist
    import net.sf.jasperreport.engine.JasperCompileManager;
    ^
    sbo.java:7: package net.sf.jasperreport.engine does not exist
    import net.sf.jasperreport.engine.JasperFillManager;
    ^
    sbo.java:8: package net.sf.jasperreport.engine does not exist
    import net.sf.jasperreport.engine.JasperPrintManager;
    ^
    sbo.java:9: package net.sf.jasperreport.engine does not exist
    import net.sf.jasperreport.engine.JasperExportManager;
    ^
    sbo.java:10: package net.sf.jasperreport.view does not exist
    import net.sf.jasperreport.view.JasperDesignViewer;
    ^
    sbo.java:19: cannot resolve symbol
    symbol : class JasperDesign
    location: class helloWorld.jasperExample
    JasperDesign jasperDesign = JasperManager.loadXmlDesign(samke.xml);
    ^
    sbo.java:19: cannot resolve symbol
    symbol : variable samke
    location: class helloWorld.jasperExample
    JasperDesign jasperDesign = JasperManager.loadXmlDesign(samke.xml);
    ^
    sbo.java:19: cannot resolve symbol
    symbol : variable JasperManager
    location: class helloWorld.jasperExample
    JasperDesign jasperDesign = JasperManager.loadXmlDesign(samke.xml);
    ^
    sbo.java:20: cannot resolve symbol
    symbol : class JasperReport
    location: class helloWorld.jasperExample
    JasperReport jasperReport = JasperCompileManager.compileReport(jasperDesign);
    ^
    sbo.java:20: cannot resolve symbol
    symbol : variable JasperCompileManager
    location: class helloWorld.jasperExample
    JasperReport jasperReport = JasperCompileManager.compileReport(jasperDesign);
    ^
    sbo.java:26: cannot resolve symbol
    symbol : class JasperPrint
    location: class helloWorld.jasperExample
    JasperPrint report = JasperFillManager.fillReport(jasperReport, parameters, c
    on1);
    ^
    sbo.java:26: cannot resolve symbol
    symbol : variable JasperFillManager
    location: class helloWorld.jasperExample
    JasperPrint report = JasperFillManager.fillReport(jasperReport, parameters, c
    on1);
    ^
    sbo.java:27: cannot resolve symbol
    symbol : variable JasperExportManager
    location: class helloWorld.jasperExample
    JasperExportManager.exportReportToPdfFile(report,"report1.pdf");
    ^
    sbo.java:28: cannot resolve symbol
    symbol : variable JasperViewer
    location: class helloWorld.jasperExample
    JasperViewer.viewReport(report);
    ^
    14 errors
    Help me guys I am burning

    1. right click ur "my computer" icon.
    2. then properties -> advanced -> Enviroment variable
    3. user variable - > add
    4. add two variavle
    i.
    Name : JAVA_HOME
    Value : jdk home
    ii
    Name : PATH
    Value : .; jdk bin path ; tomcat path

  • Is there an EASY way to submit podcasts to the itunes store? i've tried creating podcasts in garageband, then somewhere after wordpress  itunes  doesn't recognize the feed. my process has been (i am open to suggestions for other free and EASY services/me

    is there an EASY way to submit podcasts to the itunes store? i've tried creating podcasts in garageband, then somewhere after wordpress  itunes  doesn't recognize the feed.
    my process has been (i am open to suggestions for other free and EASY services/methods):
    garageband : create & edit audio. add 1400x1400 image.
    share to itunes.
    drag file to desktop.
    upload .m4a file to google drive.
    create a link post in wordpress using "podcast" tag & create "podcast" category.
    click on "entries rss" in wordpress, which takes me to the rss subscribe page (which is basically just my wordpress address with "/feed" at the end.
    i copy this url.
    go to itunes store > then "submit a podcast"
    itunes gives me the error message "we had difficulty downloading episodes from your feed."
    when i try to subscribe to my podcast in itunes, it does, but gives me no episodes available.
    i went back into wordpress and changed settings/ reading settings to : "full text" from "summary"
    still the same error message.
    i added a feedburner step after wordpress but got the same errors. i don't think i should have to add feedburner.
    wordpress seems to be encapsulating the rss, what am i doing wrong?
    this so much easier when you could go directly from garage band to iweb to mobileme; i miss those apple days (also idisk).

    if anyone has a super EASY process, i would LOVE to know what it is. EASY, meaning no html and also free. there are many free online storage systems available, many of which i currently use. the above process was just me trying to figure it out, if you have an easier method, please share. thank you so much!

  • ITunes doesn't recognize my iPhone 4s

    iTunes doesn't recognize my iPhone 4s.
    Whenever I plug my iPhone into my computer it starts to charge like normal but iTunes does not recognize it. I've tried all of the troubleshooting steps provided by Apple (Downloading the latest iTunes version, reinstalling iTunes, updating the software on my phone, restarting my computer, etc). I've also looked at various tutorials on different websites that showed other methods. Among these methods were going into the control panel Device Manager or the Services program and taking certain steps within said programs. It seems I have tried everything under the sun to get iTunes to recognize my iPhone and so far nothing has worked. I have no idea what to do which is why I've resorted to this. Anybody know what might be going on? I'm running Windows 7 64 bit on my computer with the latest iTunes installed as previously stated. I've also just installed iOS 5.1.1 on my iPhone and this has not changed anything. If anyone has any idea what is going on and would like to tell me how to fix it, it would be much appreciated. Thanks.

    If you've gone through this article and made sure the Apple Mobile device service is installed and running, you should look at the security software on your computer.
    To make sure it isn't the security software, you can either follow the steps in the article below, or you could just uninstall it and test again. Then reinstall it again when you're done.
    iTunes: Troubleshooting security software issues

  • Using Photoshop Elements to edit raw.  Doesn't recognize file type

    I recently downloaded photoshop elements to use as my editor within Iphoto. I've set it up as the default editor in preferences, and made the appropriate change in the advanced settings within Iphoto so that it exports edits in RAW. When I attempt to edit by double clicking, Photoshop Elements gives me a msg that it can't open file because it does not recognize the file type. Does anyone know why this would be? I am using a Nikon D60. I haven't downloaded the Nikon software onto the computer (not sure if that has anything to do with it). Does photoshop elements need anything additional? Any help appreciated.
    Thx
    Richie

    Richie:
    As Terence mentioned we can help with using PSE within iPHoto but why PSE doesn't recognize the D60 files is an Adobe issue. I believe there are Adobe plugins available to handle RAW files. Check the Adobe site for those. For using PSE to edit jpgs within iPhoto this may be of some help:
    Using Photoshop (or Photoshop Elements) as Your Editor of Choice in iPhoto.
    1 - select Photoshop as your editor of choice in iPhoto's General Preference Section's under the "Edit photo:" menu.
    2 - double click on the thumbnail in iPhoto to open it in Photoshop. When you're finished editing click on the Save button. If you immediately get the JPEG Options window make your selection (Baseline standard seems to be the most compatible jpeg format) and click on the OK button. Your done.
    3 - however, if you get the navigation window that indicates that PS wants to save it as a PS formatted file. You'll need to either select JPEG from the menu and save (top image) or click on the desktop in the Navigation window (bottom image) and save it to the desktop for importing as a new photo.
    This method will let iPhoto know that the photo has been editied and will update the thumbnail file to reflect the edit..
    NOTE: With Photoshop Elements 6 the Saving File preferences should be configured: "On First Save: Save Over Current File". Also I suggest the Maximize PSD File Compatabilty be set to Always.
    If you want to use both iPhoto's editing mode and PS without having to go back and forth to the Preference pane, once you've selected PS as your editor of choice, reset the Preferences back to "Open in main window". That will let you either edit in iPhoto (double click on the thumbnail) or in PS (Control-click on the thumbnail and seledt "Edit in external editor" in the Contextual menu). This way you get the best of both worlds
    2 - double click on the thumbnail in iPhoto to open it in Photoshop. When you're finished editing click on the Save button. If you immediately get the JPEG Options window make your selection (Baseline standard seems to be the most compatible jpeg format) and click on the OK button. Your done.
    3 - however, if you get the navigation window that indicates that PS wants to save it as a PS formatted file. You'll need to either select JPEG from the menu and save (top image) or click on the desktop in the Navigation window (bottom image) and save it to the desktop for importing as a new photo.
    This method will let iPhoto know that the photo has been editied and will update the thumbnail file to reflect the edit..
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger or later), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 6 and 7 libraries and Tiger and Leopard. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.
    Note: There now an Automator backup application for iPhoto 5 that will work with Tiger or Leopard.

  • IPad doesn't recognize PayPal

    I bought apps from the Apps Store on my iPad2 for 2 or 3 days and then it suddenly began refusing to download even free apps.  The error message states that my iPad2 doesn't recognize PayPal.  I tried setting up a credit card as my iTunes payment option (PayPal wasn't listed as an option) and then I canceled my iTunes subscription with PayPal- still nothing.  Now I'm stuck.  Any ideas?  I'd really prefer the PayPal option if possible.  Thanks.
    LaJoyce

    I'm afraid that you'll probably have to use either a credit card or one of Apple's approved payment methods. Please click here for more information. Hope this helps

  • Tried to update software and came back 3hrs later and there is nothing on my ipod, no apps, music says it doesn't recognize and need to recover Please help!!

    tried to update ipod and came back 3hrs later and there is nothing on my ipod.  all apps and music etc are gone and computer doesn't recognize my ipod and need to recover.  Please help!!

    See this older post from another forum member Zevoneer covering the different methods and software available to assist you with the task of copying content from your iPod back to your PC and into iTunes.
    https://discussions.apple.com/thread/2452022?start=0&tstart=0
    B-rock

  • Forte doesn't recognize classes are compiled

    In the Sun One Studio 4 Update 1 IDE, my Java source files are displayed in the Explorer window with the uncompiled badge icons next to them, even though the classes are already compiled. If I select a file to compile it, the IDE will compile it, and put the compiled class in the target directory correctly. But the uncompiled icon is still displayed. If I select the file again and compile, the IDE compiles it again, instead of giving me the message that the file is up to date.
    Has anyone seen this problem?

    Add the output dir to classpath.Did you ever use forte? It doesn't recognize classpath. It looks at the mounted directories and jars instead. And I do have the output dir mounted - otherwise, the compiler couldn't put the compiled classes in the right place.

  • Jar doesn't recognize another jar

    Hi I packed my java class and additional files into a jar file, using the eclipse.
    The class I packed uses another jar file. it works fine.
    the problem is with my new jar that I created, since it doesn't recognize the other jar that the class uses and can't use it,
    Although I included the other jar in my class path in the eclipse.
    i don't know how to make that the new jar will know the other jar.
    thanks.

    gimbal2 wrote:
    ...Jar files have their own classpath that you cannot override. ...Since you have provided the correct strategy to pursue in this instance, I will simply point out (OP please stop reading ..now!) that it is possible to side step the default behaviour of the -jar option by not including that option when starting an app.
    E.G.
    prompt:java -jar main.jar
    NoClassDefFoundError Other.class
    prompt:java -cp main.jar;other.jar com.our.main
    Other.class processing..

  • FCP doesn't recognize VTR mode on HVX camera

    I'm new to FCP7 and can't figure out why log and capture doesn't recognize the VTR mode on my Panasonic HVX. I turn on the camera, switch it to VTR (by pressing the MCR/VCR button) and the launch FCP with my MBP connected to the camera by FireWire. When I launch L&amp;C and the click on the now button, I get a black screen that says the camera must be in VTR mode. Yet when I launch iMovie, the capture window will play and record the video on the camera just fine. The video is on a miniDV tape. I don't have a P2 card so can't try that method.

    L&C!  Did that work?
    Works for you & I can do it from my MBP, but evidently not from my iPad.  Weird.
    OK...the thing you need to do first in FCP is choose the DV/NTSC Easy Setup. THEN try to capture from tape.
    Yeah, did that first.  I'll try again when I get home tonight.

  • Eclipse doesn't recognize TomEE

    According to 'TomEE and Eclipse' on Apache's website, it should be easy to run TomEE on Eclipse. I downloaded version 1.7.2 of TomEE-webproject from TomEE's download section and unpacked it in my home directory, as described in the YouTube-video on 'TomEE and Eclipse', and tested by running ~/apache-tomee-webprofile-1.7.2/bin/startup.sh. When navigating to localhost:8080, everything seems fine (the page displays "Apache Tomcat (TomEE)/7.0.62 (1.7.2)").
    However, when trying to install a new server in Eclipse, by choosing New Runtime... in the new Dynamic Web Project dialog and browsing for a Tomcat 7.0 directory, I can't select the root of the tomcat-webprofile directory (Eclipse complains that "unknown version of Tomcat was specified") and 'Finish' remains grey (and a Tomcat version is suggested to download and install). Apparently, Eclipse doesn't recognize the TomEE directory as a Tomcat directory.
    I'm using Eclipse 4.5.0 (Mars) in Arch Linux. Tomcat 7 and 8 installed by the system are correctly recognized.
    NOTE: Sorry for not including hyperlinks, but I'm not yet allowed to post links to non-eclipse.org sites.

    On 08/03/2015 12:24 PM, Marcel Korpel wrote:
    > [snip]
    > To be frank, I got a bit irritated by bad support of Eclipse for servlet
    > containers capable of JSF (if I'm clear; tried Glassfish but got tons of
    > NullPointerExceptions) and Maven problems, so now I'm trying NetBeans +
    > Glassfish, which work fine, so far. The IDE is not as neat and
    > configurable as Eclipse, but they work fine together.
    Marcel,
    A few years ago, I took some careful notes as I made my way through some
    JSF stuff. While I experienced some frustration, it was more with the
    general Faces community and not at all with Eclipse. I would have said
    then that Eclipse was just the table top; the different Faces proposals
    (Rich, My-, etc.) were frustratingly documented, ill available, hard to
    find a complete set, etc. It's not so much Eclipse's fault.
    I assume you downloaded Eclipse IDE for Java EE Developers. I used just
    plain Tomcat.
    In any case, and I know these notes are several years old, feel free to
    look through them for any help or clues you might find (bottom/middle
    half of left column).
    http://www.javahotchocolate.com/topics.html
    Lars Vogel's got some great tutorials on web programming including
    Tomcat and JSF:
    http://www.vogella.com/tutorials/web.html
    Hope this helps and doesn't confuse.
    Cheers

  • For some reason, since last nite, my Ipod doesn't recognize when i have turned OFF the hold...it still reads as hold

    my Ipod doesn't recognize when i have turned OFF the hold...it still reads as hold..any ideas?
    thanks

    A Reset (in link from previous post) is not a Restore.  It does not erase the iPod.  A Reset is THE method to "re-boot the whole system."
    The reason for the Hold switch has nothing to do with turning an iPod ON or OFF.  It exists because most iPods have touch-based controls.  The Hold switch is there to lock the controls, in situations when the iPod is playing music and you don't want to inadvertently touch the controls while handling the iPod.
    Pressing and holding the Play/Pause button turns an iPod OFF.  But I hardly ever manually turn OFF my iPod (except for my iPod shuffle).  I just stop playing music and leave it alone.  The display backlight goes off by itself within a few seconds, and if the controls are not touched, the iPod soon goes into the same power saving mode as turning it OFF manually.

  • Doesn't recognize AVCHD files!

    FCE suddenly doesn't recognize AVCHD files. I've been able to import using Log And Capture before. Now it suddenly doesn't even recognize the files. I dragged them to the desktop and still no luck. What the ****!!???

    My issue is with the AVCHD recognition.
    Background:
    I have been using a card reader and popping the cards in there for import. Have not had any problems with this method up until this point. I have also copied the AVCHD folder to the desktop and imported from there with no issues. Suddenly FCE does not recognize either.
    I did a complete reinstall of SL because I have been having a few other issues apart from FCE. I have done this with all previous upgrades of OSX on the advice of most Mac pros. Have not had any issues with those installs. With SL I did the upgrade without the complete reinstall. It seemed to work fine but I started running in to several system quirks. So to take that out of the equation I wiped the drive and did the clean install. So far so good. I back up my system drives at least once a month so I have everything saved.
    However... FCE still will not recognize the AVCHD files, either from the card or from the desktop. I will try from the camera via USB.
    Thanks again.

  • Itunes 10.6 doesn't recognize my iphone 4s 32gb, could you please help me?

    I bought an iPhone 4s 32gb from Singapore. I'm living in Chennai, India. To connect it to my computer (windows XP,), I have downloaded iTunes 10.6.1.7. Unfortunately iTunes is not recognizing my iPhone.  I had tried to troubleshoot it by reinstalling iTunes (2 times). I have restarted the apple mobile device from control panel. I try connecting my iphone in another usb port. but no use. I don't know what am I missing?.  iTunes opens on my computer. but doesn't recognize my device. when I click on help. it says an "unknown error has occurred. your computer is not connected to internet. please check your internet connection and try again later". I don't know what to do? could you please help me? thank you so much for your help and time.
    I did the apple's diagnostics test on my computer. I'm pasting the result for your info.
    Microsoft Windows XP Professional Service Pack 3 (Build 2600)
    System manufacturer System Product Name
    iTunes 10.6.1.7
    QuickTime not available
    FairPlay 1.14.37
    Apple Application Support 2.1.7
    iPod Updater Library 10.0d2
    CD Driver 2.2.0.1
    CD Driver DLL 2.1.1.1
    Apple Mobile Device 5.1.1.4
    Apple Mobile Device Driver not found.
    Bonjour 3.0.0.10 (333.10)
    Gracenote SDK 1.9.5.502
    Gracenote MusicID 1.9.5.115
    Gracenote Submit 1.9.5.143
    Gracenote DSP 1.9.5.45
    iTunes Serial Number 0013AC2C0E8DEF50
    Current user is an administrator.
    The current local date and time is 2012-06-12 20:13:12.
    iTunes is not running in safe mode.
    WebKit accelerated compositing is enabled.
    HDCP is not supported.
    Core Media is supported.
    Video Display Information
    Intel(R) G41 Express Chipset
    **** External Plug-ins Information ****
    No external plug-ins installed.
    **** Network Connectivity Tests ****
    Network Adapter Information
    Adapter Name:        {D85300A1-330D-41ED-AC5A-EC032B22FBF0}
    Description:            Atheros AR8121/AR8113/AR8114 PCI-E Ethernet Controller - Packet Scheduler Miniport
    IP Address:             192.168.1.3
    Subnet Mask:          255.255.255.0
    Default Gateway:    192.168.1.1
    DHCP Enabled:      Yes
    DHCP Server:         192.168.1.1
    Lease Obtained:     Tue Jun 12 19:48:36 2012
    Lease Expires:       Wed Jun 13 07:48:36 2012
    DNS Servers:         192.168.1.1
    Active Connection: LAN Connection
    Connected:             Yes
    Online:                    Yes
    Using Modem:        No
    Using LAN:             Yes
    Using Proxy:           No
    Firewall Information
    Windows Firewall is on.
    iTunes is enabled in Windows Firewall.
    Connection attempt to Apple web site was unsuccessful.
    The network connection timed out.
    Basic connection to the store failed.
    The network connection timed out.
    Connection attempt to Gracenote server was successful.
    The network connection timed out.
    iTunes has never successfully accessed the iTunes Store.
    **** CD/DVD Drive Tests ****
    No drivers in LowerFilters.
    UpperFilters: GEARAspiWDM (2.2.0.1),
    G: Optiarc DVD RW AD-7220A, Rev 1.01
    Drive is empty.
    **** Device Connectivity Tests ****
    iPodService 10.6.1.7 is currently running.
    iTunesHelper 10.6.1.7 is currently running.
    Apple Mobile Device service 3.3.0.0 is currently running.
    Universal Serial Bus Controllers:
    Intel(R) N10/ICH7 Family USB Universal Host Controller - 27C8.  Device is working properly.
    Intel(R) N10/ICH7 Family USB Universal Host Controller - 27C9.  Device is working properly.
    Intel(R) N10/ICH7 Family USB Universal Host Controller - 27CA.  Device is working properly.
    Intel(R) N10/ICH7 Family USB Universal Host Controller - 27CB.  Device is working properly.
    Intel(R) N10/ICH7 Family USB2 Enhanced Host Controller - 27CC.  Device is working properly.
    No FireWire (IEEE 1394) Host Controller found.
    **** Device Sync Tests ****
    No iPod, iPhone, or iPad found.

    Well, you do not mention what computer OS you are using, so here are the support documents for both.
    Windows:     http://support.apple.com/kb/TS1538
    OS X:     http://support.apple.com/kb/TS1591

Maybe you are looking for

  • Repost: Where is the Weather widget in the iOS 7 Notification Center?

    I will award ten points to a verified "no" or "yes" with a brief explanation how to enable. I understand it is not a full widget, but that's what Apple used to call it in iOS 5 and 6. Anyway, let me give more information. I cleared all of my notifica

  • In transaction code BBP_PD the status of the workitem is not updating showi

    Hi Gurus, We have implemented N-Step BADI BBP_WFL_APPROV_BADI For Approvals Levels in SRM. Work flow is triggering correctly and workitem is sent at all the levels. But in transaction code BBP_PD the status of the workitem is not updating showing the

  • UNDO tablespace getting full

    My undo tablespace is getting full because of uncommited deletes performed by jdbc thin client sessions. How can I solve this problem permanently? Size of undo tablespace is 5.5GB I am facing an undo tablespace full issue Below are the sessions which

  • Time Machine Overwrite Old HD Clone Files?

    I've just bought a MacBook after my beloved G4 iBook gave up the ghost in January. Before it died, I managed to clone the hard drive onto an external USB HD with a freeware program. I had also hoped to migrate at least some of the old iBook files ont

  • Bug? Two Doubles not detected as equal v8.6

    Try this: -  Create a while loop -  Wire in a double, 0. -  Make this value a shift register -  Inside the while loop, continously add .1 -  Also, wire the shifted value to a "Equals?" comparison -  Wire this to stop the while loop when the shift reg