Data class is ambiguous

hi i get the following error when i compile my code. it says that my Date class is ambihuous???
icomm server\src\icommserver\admin.java:268: reference to Date is ambiguous, both class java.util.Date in java.util and class java.sql.Date in java.sql match..
here is my code below:
package icommserver;
import java.sql.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.net.*;
import java.io.*;
import java.util.*;
import javax.swing.tree.*;
import javax.swing.event.*;
import java.text.*;
//get todays date
                 GregorianCalendar thisday = new GregorianCalendar();
                 Date d1 = thisday.getTime();
                 DateFormat df = DateFormat.getDateInstance();
                 today = df.format(d1);

Did you actually read the compiler's diagnostic? It says this:reference to Date is ambiguous, both class java.util.Date in java.util
and class java.sql.Date in java.sql match..There are two Data classes in two different packages; when you define
a Date object, which one do you want? You have to specify this Date
object using its fully qualified name, i.e. it has to include its full package name.
kind regards,
Jos

Similar Messages

  • Error on Desktop: iTunes unable to load data class information from sync services.

    Error on Desktop; iTunes unable to load data class information from sync services.

    Hi there Randall112,
    You may find the troubleshooting steps in the article below helpful.
    iTunes for Windows: "Unable to load data class" or "Unable to load provider data" sync services alert
    http://support.apple.com/kb/ts2690
    -Griff W. 

  • How to get maximal value from the data/class for show in Map legend

    I make WAD report that using Map Web Item.
    I devide to four (4) classes for legend (Generate_Breaks).
    I want to change default value for the class by javascript and for this,
    I need to get maximal value from the class.
    How to get maximal value from the data/class.
    please give me solution for my problem.
    Many Thx
    Eddy Utomo

    use this to get the following End_date
    <?following-sibling::../END_DATE?>
    Try this
    <?for-each:/ROOT/ROW?>
    ==================
    Current StartDate <?START_DATE?>
    Current End Date <?END_DATE?>
    Next Start Date <?following-sibling::ROW/END_DATE?>
    Previous End Date <?preceding-sibling::ROW[1]/END_DATE?>
    ================
    <?end for-each?>
    o/p
    ==================
    Current StartDate 01-01-1980
    Current End Date 01-01-1988
    Next Start Date 01-01-1990
    Previous End Date
    ================
    ==================
    Current StartDate 01-01-1988
    Current End Date 01-01-1990
    Next Start Date 01-01-2005
    Previous End Date 01-01-1988
    ================
    ==================
    Current StartDate 01-01-2000
    Current End Date 01-01-2005
    Next Start Date
    Previous End Date 01

  • When trying to sync my I Phone 4 to I tunes I am getting a message: Unable to Data class information from Sync Services. What does this mean?

    When I-tunes is trying to sync my phone, I get a message regarding Data Class Information from Sync Services saying they were unable to do this.  I have no idea what this means.  I have not been having any problems with syncing info from my computer to phone until just now.  I am trying to install new alert tones from an app that I purchased.  The alert ones are now in my library on I-tunes and they play but they are not syncing to my phone.  The snycing options is not available in my library and when I try to manually sync these tones, nothing is happening.  I recently purhcased ringtones from the I-tunes store and from my phone and they downloaded with no problems and are synced onto my computer and are showing up in the same library list as the tone alerts which I cannot seem to sync.  I have no idea why this is.  Please help!

    In the course of your troubleshooting to date, have you worked through the following document?
    iTunes for Windows: "Unable to load data class" or "Unable to load provider data" sync services alert

  • TS2529 iTunes was unable to load data class information from Sync Services. Reconnect or try again later is the error message I am getting when i connect my iphone 4 to my windows based computer. Any help out there?

    iTunes was unable to load data class information from Sync Services. Reconnect or try again later. This is the message when I try to connect my iphone 4 to my computer. If anyone could help me with this, I would appreciate it.

    iOS: Device not recognized in iTunes for Windows
    http://support.apple.com/kb/TS1538
    iOS: Device not recognized in iTunes for Mac OS X
    http://support.apple.com/kb/ts1591

  • I keep getting this error message: ITunes was unable to load data class information from Synch Services. Reconnect or try again later. What does that mean? Can I fix it? or do I have to wait for the next update?

    I keep getting this error message: ITunes was unable to load data class information from Synch Services. Reconnect or try again later. What does that mean? Can I fix it? or do I have to wait for the next update?

    See TS2690: iTunes for Windows: "Unable to load data class" or "Unable to load provider data" sync services alert.
    tt2

  • Was unable to load data class info from sync services.  try again later.

    Since installing the latest version of itunes (11.1.5.5) whenever I have either mine or my wife's iphones (4 and 5c, both with the latest 7.1.1) turned on and I start iTunes, I receive the error message saying that itunes was unable to load data class info from sync services.  try again later.
    If I leave the phones turned off and open iTunes, I am able to sync my old ipod so it appears to be an issue with the software on the phones? 
    I'm just not sure where to start.  I've made sure that itunes has the latest version and no more updates are available.
    Thanks in advance,
    jamey8420

    this is on a windows 7 machine, btw.

  • ITunes was unable to load data class information from Sync Services. Reconnect or try again later.

    Ever since I upgraded to iTunes 10.4 I've been getting this dreaded message on many occasions when I try to sync my iPhone 4 or iPad 2 with my Win 7 64 bit machine. "iTunes was unable to load data class information from Sync Services. Reconnect or try again later." What happens is that local content (music, videos etc) will sync properly to my iPhone, but other content (such as Outlook information, MobileMe stuff, etc) will not.
    I have uninstalled and completely purged all Apple data from my PC (including hidden files and folders under Common Files and in the Registry) and reinstalled iTunes. Yet after one or two syncs, the same problem resurfaces. The other weird part is that the Sync Services crap-out message will happen after I do a successful sync, leave the iPhone connected to the PC, and don't even touch the computer for several hours.
    I've actually developed a very tedious work around that seems to restore syncing if for a short time.
    - Undock/unconnect all Apple devices from the PC.
    - Close iTunes, MobileMe control panel, and Safari (if you have it).
    - Start Task Manager (Ctrl + Alt + Del) and shut down iTunesHelper.exe and SyncServer.exe
    - Open up a Windows Explorer window (like My Computer) and under Tools, Folder Options, View, toggle on Show Hidden Files and toggle off Hide Protected Operating System FIles
    - In WIndows Explorer, navigate to "C:\Users\<your name>\App Data\Roaming\Apple Computer". Rename the folder Sync Services to something else, like Sync Services_Old.
    - In WIndows Explorere, navigate to "C:\Program Files (x86)\Common Files\Apple\Mobile Device Support" and double-click on AppleSyncNotifier.exe.
    - Go back to your Folder Options and turn off SHow Hidden Files and toggle on Hide Protected Operationg System Files
    Now you can start up iTunes again and connect your device. It should sync properly again (at least, until it doesn't once more).
    Does anyone at Apple have any idea about this error or a solution?

    I actually spent a fair amount of time on the phone with a senior Apple tech last week. He directed me to this topic:
    http://support.apple.com/kb/HT1923?viewlocale=en_US
    It's important that you go through the steps EXACTLY as described here and in the proper order. Also make sure MobileMe control panel is uninstalled (if you have it).
    Interestingly, when I went through this procedure and then reinstalled iTunes 10.4 64-bit  (didn't do MobileMe or Safari at this stage, but QT is automatically installed) everything worked perfectly. The aforementioned error messages disappeared and all is working flawlessly, as it should.
    I hope my expereince will help! Give it a try.

  • ITunes was unable to load data class information from sync services.

    I get the error message "iTunes was unable to load data class information from sync services. Reconnect or try again later" after reinstalling iTunes. I cancel the message and iTunes proceeds to sync with my iPhone 4. The phone and iTunes software are the latest releases. My PC is running Windows 8.1, which had to be reinstalled after the system crashed, requiring a total reinstall of all software.

    Doublechecking. You've tried the following document?
    iTunes for Windows: "Unable to load data class" or "Unable to load provider data" sync services alert

  • Itunes was unable to load data class information from sync services.Reconnect and try again later.

    when I open itunes I get message " itunes was unable to load data class information from sync services. reconnect or try again later "
    I am unable to sync my ipad 2 or iphone 4 through itunes. I have tried all suggested options, removing itunes and related components from control panel + verified completely uninstalled from C program files + then reinstalling latest version of itunes (version 11.3.1.2). Also tried running itunes as administrator. Also tried reset sync history in itunes  Also tried system restore on windows 7 from earlier period.Still get the same above message.
    I run 64bit windows 7. Have recently renewed my Norton Intenet Security. Everything was OK up till then. Could this have anything to do with it.

    A quick cursory browse seems to point that the problem is on Apples end since the last update of iTunes, theres loads of forum posts about it but Apple themselves arent responding as yet other then the usual "unplug, delete sync data, reconnect or completely uninstall iTunes" spiel which doesnt work so hopefully they will fix it sooner or later

  • When I connect my iphone4s to itunes on  my laptop I get this error...itunes was unable to load data class info from sync serv

    When I connect my iphone4s to itunes on  my laptop I get this error...itunes was unable to load data class info from sync serv

    In the course of your troubleshooting to date, have you worked through the following document?
    iTunes for Windows: "Unable to load data class" or "Unable to load provider data" sync services alert

  • Itunes-error "Itunes was unable to load data class information from sync services"

    Something is going wrong when ever i want to plug in my ipod-using itunes. It loads for like 5 minutes then a error message pops up saying "Itunes was unable to load data class from sync services. reconnect or try again later."
    Though it works when i restart the computer but i dont want to have to restart the computer everytime i want to sync my ipod to itunes.
    I have uninstalled itunes too and downloaded it again and still keeps doing this.

    OK.  Try this article:
    iTunes for Windows: "Unable to load data class" or "Unable to load provider data" sync services alert
    http://support.apple.com/kb/TS2690

  • "iTunes was unable to load data class information from Sync Services.  Reconnect or try again later." Can't sync w/ Contacts. iTunes delays/freezes when 3GS connected....

    Tried: uninstall/re-install of iTunes, iPhone restore, ran diagnostics, turned off firewall....even called Apple, no answers...

    iTunes for Windows: "Unable to load data class" or "Unable to load provider data" sync services alert
    http://support.apple.com/kb/TS2690

  • I get this message when i try to sync and download my iphone:  itunes was unable to load data class information from sync services, reconnect or try again later.  what does that mean and who do you fix it

    I get this message when i try to sync and download my iphone,   ITUNES was unable to load data class information from sync services,  reconnect or try again later.    this has happened twice.  i have not downloaded by phone in several months.  the first time i got this message i did not understand i and left my phone plug in for 12 hrs and it never did anything.   today.  when i got the message i just unplugged it.
    help

    http://support.apple.com/kb/TS2690?viewlocale=en_US&locale=en_US

  • HT1386 my ipad won't sink; I continually get message:  itunes was unable to load data class information from Sync Services. Reconnect or try again later.  I have done both several times and still receive same messaage.

    My iPad won't sink with my computer.  I continually receive this message: "iTunes was unable to load data class information from Sync Services.  Reconnect or try again later."  I have tried this over a number of days and receive the same message.  Any suggestions??

    IOS: Syncing with iTunes
    http://support.apple.com/kb/HT1386
    Apple - Support - iPad - Syncing
    http://www.apple.com/support/ipad/syncing/
    ITunes: Syncing media content to your iOS devices
    http://support.apple.com/kb/ht1351
    There are some similar posts on the right side of this page (More Like This). Look at those posts.
     Cheers, Tom

Maybe you are looking for

  • PO REPORT TO SHOW PO'S TO BE ACTIONED

    Hi SAP experts, When PO's are created in SAP, they usually go to an Approver for approval. However, if there is a problem with the PO, example (wrong coding), the PO is rejected and sent back to the Approver to rectify the error.  A message gets sent

  • Opening .jpg with "Open with" command after installing PSE 8.0

    Can anyone tell me how to get PSE 8.0 to appear in the list of available programs (using Vista) when right clicking on a photo? All my previous versions of PSE (6.0, 7.0) have appeared in the list. While Photoshop Premiere elements is there, since I

  • MacBook Pro will not detect displays. . .

    I found this link, and it best discribes what is happening on my macbook. I have a thunderbolt to cdmi cord that I use on my TV. Then all of a sudden, it just stopped working. . . My screen flashes black for about a second like its about to connect t

  • OID 10g and 11g

    A general question on OID: It seems OID 10g was packed with OAS (Oracle Application Server) whereas OID 11g is with Oracle Fusion Middleware, is it correct? or did I miss anything. Thanks

  • Help about adobe products

    Hi i'm Iron.J from west nile in the northern part of Uganda. I'm still a beginer but i feel i have the talent if i have the knoledge about the adobe products especially premere pro. So any body who is a senior and would to help me out is welcomed