Solved

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

Posted on 2004-09-27
3
2,886 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

A short article about problems I had with the new location API and permissions in Marshmallow
This is about my first experience with programming Arduino.
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 …

749 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