Solved

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

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

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…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

757 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

24 Experts available now in Live!

Get 1:1 Help Now