Solved

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

Posted on 2004-09-27
3
3,002 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: 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 a problem I had getting the GPS LocationListener working.
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
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…
Starting up a Project

696 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