aspose 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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 39535
    
  27
(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 - updated with new look and Ping home screen widget
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18101
    
  39

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
 
Similar Threads
running a servlet without IDE
Cannot Find Symbol
Session Tracker
missing classes
Unable to utilize method on Character?