Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

First time using Java 1.5: New compiler error, please help

Status
Not open for further replies.

kook04

Programmer
Jun 26, 2001
58
US
I am converting some software that was writting under Java 1.3.1 to Java 1.5, and I am getting two compile errors that I have never seen before. Both are related to import statements.

Here they are:

1) "<class name> is already defined in a single type import".

This one is happening with classes which import two classes with the same name. Of course, the imported classes are in different packages, and this worked in Java 1.3.1.

2) "import requires canonical name for <class name>.<inner class name>".

This happens when importing inner classes. Again, this worked in Java 1.3.1.

If anyone can provide some help, it would be greatly appreciated.

Thanks.

------
KJR
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top