File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Cannot find java.util.Map interface in Java SE 6 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Cannot find java.util.Map interface in Java SE 6" Watch "Cannot find java.util.Map interface in Java SE 6" New topic
Author

Cannot find java.util.Map interface in Java SE 6

chinomso ikwuagwu
Greenhorn

Joined: Mar 28, 2006
Posts: 11
My code was written in java SE 5. After setting source level and library source level to Java SE 6
and making the necessary changes, I discovered that references to the Map interface both in my
code and in the Java API for Java SE 6 were flagged by my IDE with the following error
(Cannot find symbol, symbol=map, location=package java.util).
Also there was no source for the Map interface in the Java API for Java SE 6.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42276
    
  64
(Cannot find symbol, symbol=map, location=package java.util).

Java is case-sensitive, so you need to spell it correctly.

http://java.sun.com/javase/6/docs/api/java/util/Map.html


Ping & DNS - my free Android networking tools app
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18896
    
  40

My code was written in java SE 5. After setting source level and library source level to Java SE 6 ...



I would be interested to know how this original code worked in Java 5 !!

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Cannot find java.util.Map interface in Java SE 6