Solved

getting an error "defined in a single-type import in java"

Posted on 2004-09-27
3
2,691 Views
Last Modified: 2008-01-09
Hi,
I am getting this error.. any idea..

compileBean:
    [mkdir] Created dir: /home/hsadek/adminconsole/bal/svrucache/classes
    [javac] Compiling 4 source files to /home/hsadek/adminconsole/bal/svrucache/classes
    [javac] /vobs/svru/common/dbal/src/java/com/verizon/svru/adminconsole/dbaccess/ApplicationToggleListDAOImpl.java:20: java.util.Date is already defined in a single-type import
    [javac] import java.sql.Date;
    [javac] ^
0
Comment
Question by:phantom2005
3 Comments
 
LVL 4

Accepted Solution

by:
aratani earned 500 total points
ID: 12162867
That is a URL that explains what a single-type import is,

http://www.janeg.ca/scjp/lang/import.html

Also, I think the error means that you have already imported java.util.Date somewhere else. Are you sure you don't have import java.util.*; or something else in the file. Or have another class named Date.

I hope that would work

AJ
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here we come across an interesting topic of coding guidelines while designing automation test scripts. The scope of this article will not be limited to QTP but to an overall extent of using VB Scripting for automation projects. Introduction Now…
Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

939 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

4 Experts available now in Live!

Get 1:1 Help Now