Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2004-09-27
3
Medium Priority
?
3,208 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 2000 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

What do responsible coders do? They don't take detrimental shortcuts. They do take reasonable security precautions, create important automation, implement sufficient logging, fix things they break, and care about users.
We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
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…

597 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